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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    padding-left: 2rem;
    padding-right: 2rem;
}

.stats-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.stats-header h1 {
    font-size: 1.8rem;
    color: #203890;
    font-weight: 600;
}

.date-update {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

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

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
    border: 1px solid #e9ecef;
    position: relative;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: #203890;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper i {
    color: white;
    font-size: 1.5rem;
}

.stat-card h2 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 700;
    color: #203890;
    margin-bottom: 0.5rem;
}

.stat-value {
    line-height: 1.2;
    word-wrap: break-word;
}

.stat-value.hidden {
    display: none;
}

.unit {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

.loader {
    width: 30px;
    height: 30px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #203890;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

#error {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e80539;
    text-align: center;
    padding: 2rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .stats-container {
        margin: 1rem;
        padding: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card p {
        font-size: 1.5rem;
    }

    .icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .icon-wrapper i {
        font-size: 1.2rem;
    }

    .loader {
        width: 24px;
        height: 24px;
    }

    .stat-value {
        font-size: 1.2rem;
    }
}

.call-details {
    font-size: 0.8em;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 12px;
    color: #666;
}

.call-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.call-details i {
    font-size: 0.9em;
}

.other-details {
    font-size: 0.8em;
    margin-top: 8px;
    gap: 12px;
    color: #666;
}