:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --surface-bg: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.25);
    --success-color: #10b981;
    --font-main: 'Inter', sans-serif;
}

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

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    padding: 2rem;
    -webkit-font-smoothing: antialiased;
}

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

.glass-header {
    background: var(--surface-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.6s ease-out;
}

.header-logo {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: #fff;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.group-card {
    background: var(--surface-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 1.5rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.group-header,
.station-list {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.chart-container {
    padding-left: 0.5rem;
    padding-right: 1rem;
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px var(--accent-glow);
    border-color: var(--accent-color);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface-border);
}

.group-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.station-item {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
}

.station-item:last-child {
    margin-bottom: 0;
}

.station-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.station-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.station-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.metric.bikes {
    color: var(--accent-color);
}

.metric.docks {
    color: var(--success-color);
}

.chart-container {
    position: relative;
    height: 180px;
    width: 100%;
    margin-top: 1rem;
}

.loader {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 3rem;
    grid-column: 1 / -1;
    animation: pulse 1.5s infinite;
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        gap: 1rem;
    }

    body {
        padding: 0.5rem;
    }

    .glass-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .group-card {
        padding: 1.0rem 0;
        border-radius: 12px;
    }

    .group-header,
    .station-list {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .chart-container {
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }
}