:root {
    --primary-color: #006D77;
    --secondary-color: #83C5BE;
    --accent-color: #FF7F50;
    --background-color: #F8F9FA;
    --card-background: #FFFFFF;
    --text-color: #2D3436;
    --text-muted: #636E72;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --font-heading: 'Montserrat', sans-serif;
    --font-family: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

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

header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

header h1,
.chart-title,
.control-group label,
label {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
}

header h1 {
    font-size: 2rem;
}

.logo {
    height: 40px;
}

.controls-card {
    background: var(--card-background);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

select,
.pills {
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #FFFFFF;
    transition: border-color 0.2s;
    width: 100%;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.pills-container {
    display: flex;
    gap: 10px;
    background: #F1F3F5;
    padding: 4px;
    border-radius: 10px;
}

.pill {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    user-select: none;
}

.pill.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 109, 119, 0.3);
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

@media (max-width: 1100px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: var(--card-background);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.chart-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-title {
    font-size: 1.1rem;
}

.download-btn {
    background: #F1F3F5;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #E9ECEF;
}

#daily-ridership-chart {
    height: 450px;
    width: 100%;
}

.scroll-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

#change-metrics-chart {
    width: 100%;
}

/* Custom Scrollbar */
.scroll-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: fit-content;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #F3F3F3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

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

.hidden {
    display: none !important;
}