:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #bb86fc;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #bb86fc, #03dac6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #888;
    margin-bottom: 20px;
}

.btn {
    background: rgba(187, 134, 252, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--accent);
    color: #000;
}

.btn.active {
    background: var(--accent);
    color: #000;
    font-weight: bold;
}

.btn-group {
    display: inline-flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 12px;
}

header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    /* allow wrapping on small screens */
    gap: 10px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

#dateLabel {
    color: #fff;
    font-weight: 500;
    min-width: 150px;
    text-align: left;
    margin-left: 10px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h2 {
    margin-top: 0;
    font-weight: 500;
    color: var(--accent);
}

.section-title {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.chart-container {
    margin-bottom: 0;
    /* Reset margin as grid gap handles it */
}

h3 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

canvas {
    max-height: 250px;
}