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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fafafa;
    font-weight: 400;
}

header {
    background: #ffffff;
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid #e1e5e9;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.last-updated {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.controls {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid #e1e5e9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.controls label {
    font-weight: 600;
    margin-right: 1rem;
    color: #374151;
    font-size: 0.95rem;
}

select {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 280px;
}

select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

select:hover {
    border-color: #9ca3af;
}

#chartContainer {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e1e5e9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.placeholder {
    padding: 4rem 2rem;
    text-align: center;
    color: #6b7280;
}

.placeholder h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #374151;
    font-weight: 600;
}

.placeholder p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.description {
    margin-top: 2rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.description h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.description ul {
    list-style: none;
    padding: 0;
}

.description li {
    margin-bottom: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.description li strong {
    color: #1f2937;
    font-weight: 600;
}

iframe {
    width: 100%;
    height: 700px;
    border: none;
}

.stats {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stats h3 {
    margin-bottom: 2rem;
    text-align: center;
    color: #1f2937;
    font-size: 1.375rem;
    font-weight: 600;
}

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

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-card h4 {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    text-align: center;
    color: #1f2937;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-row span:first-child {
    font-weight: 500;
}

.stat-row span:last-child {
    font-weight: 600;
    color: #1f2937;
}

/* Clean scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 768px) {
    header {
        padding: 2rem 1rem 1.5rem;
    }
    
    header h1 {
        font-size: 1.875rem;
    }
    
    main {
        padding: 1rem 0.75rem;
    }
    
    .controls {
        padding: 1.5rem 1rem;
    }
    
    .controls label {
        display: block;
        margin-bottom: 0.75rem;
        margin-right: 0;
    }
    
    select {
        width: 100%;
        min-width: unset;
    }
    
    .stats {
        padding: 2rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    iframe {
        height: 500px;
    }
    
    .placeholder {
        padding: 3rem 1rem;
    }
}
