* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #0066cc 0%, #00bcd4 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0,188,212,0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: #0066cc;
    background-color: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero {
    background: linear-gradient(135deg, #004a99 0%, #008fb3 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,188,212,0.2);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-box button {
    background-color: #00bcd4;
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #00acc1;
}

.stats {
    padding: 60px 0;
    background-color: white;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-card p {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.latest-blocks,
.latest-transactions {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.latest-blocks h2,
.latest-transactions h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

td {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

td a {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #666;
}

tr:hover {
    background-color: #f9f9f9;
}

a {
    color: #00bcd4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #00acc1;
    text-decoration: underline;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00bcd4;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #00acc1;
    text-decoration: none;
}

.block-detail,
.transaction-detail {
    padding: 60px 0;
    background-color: white;
}

.detail-card {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.detail-card h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.detail-item {
    display: flex;
    margin-bottom: 20px;
}

.detail-item .label {
    width: 200px;
    font-weight: 600;
    color: #666;
}

.detail-item .value {
    flex: 1;
    word-break: break-all;
}

.about {
    padding: 60px 0;
    background-color: white;
}

.about h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.about-content ul {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.about-content li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.about-content li::before {
    content: "✓";
    color: #00bcd4;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 12px;
    background-color: rgba(0,188,212,0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    background: linear-gradient(135deg, #0066cc 0%, #00bcd4 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 -2px 15px rgba(0,188,212,0.3);
}

footer p {
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

footer a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin-left: 0;
        margin-right: 20px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .search-box button {
        border-radius: 4px;
    }

    .stats .container {
        grid-template-columns: 1fr;
    }

    .detail-item {
        flex-direction: column;
    }

    .detail-item .label {
        width: 100%;
        margin-bottom: 5px;
    }
}