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

:root {
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --accent: #0f3460;
    --text: #eee;
    --text-muted: #aaa;
    --green: #00c853;
    --yellow: #ffd600;
    --red: #ff1744;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent) 100%);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 3px solid var(--accent);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

.last-update {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Status Overview */
.status-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.status-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid;
}

.status-card.good {
    border-color: var(--green);
}

.status-card.warning {
    border-color: var(--yellow);
}

.status-card.danger {
    border-color: var(--red);
}

.status-card .count {
    display: block;
    font-size: 3rem;
    font-weight: bold;
}

.status-card.good .count { color: var(--green); }
.status-card.warning .count { color: var(--yellow); }
.status-card.danger .count { color: var(--red); }

.status-card .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Highway List */
.highway-list, .incidents {
    margin: 2rem 0;
}

.highway-list h2, .incidents h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent);
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    border-color: var(--text-muted);
}

/* Highway Cards */
.highway-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s;
}

.highway-card:hover {
    transform: translateX(5px);
}

.highway-badge {
    background: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 80px;
    text-align: center;
}

.highway-info {
    flex: 1;
}

.highway-route {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.highway-details {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.highway-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.highway-status.free {
    background: rgba(0, 200, 83, 0.2);
    color: var(--green);
}

.highway-status.slow {
    background: rgba(255, 214, 0, 0.2);
    color: var(--yellow);
}

.highway-status.jam {
    background: rgba(255, 23, 68, 0.2);
    color: var(--red);
}

/* Incidents */
.incident-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--red);
}

.incident-card.warning {
    border-color: var(--yellow);
}

.incident-card.info {
    border-color: #2196f3;
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.incident-title {
    font-weight: 600;
}

.incident-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.incident-location {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.incident-delay {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--yellow);
}

/* Footer */
footer {
    background: var(--bg-card);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

    .highway-card {
        flex-wrap: wrap;
    }

    .highway-badge {
        min-width: auto;
    }
}
