        body {
            padding: 20px;
            background-color: #f8f9fa;
            min-height: 100vh;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            color: #2c3e50;
        }

        .main-container {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
            padding: 32px;
            border: 1px solid #e9ecef;
        }

        .title-section {
            text-align: center;
            margin-bottom: 30px;
            color: #2c3e50;
        }

        .title-section h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: #2c3e50;
        }

        .title-section p {
            font-size: 1.1rem;
            color: #6c757d;
            font-weight: 400;
        }

        .layout-container {
            display: flex;
            gap: 20px;
            min-height: 600px;
        }

        .alerts-panel {
            flex: 1;
            max-height: 80vh;
            overflow-y: auto;
            padding-right: 10px;
        }

        .map-panel {
            flex: 1;
            position: sticky;
            top: 20px;
        }

        #mapContainer {
            height: 600px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            border: 1px solid #e9ecef;
        }

        .alert-card {
            border-left: 4px solid #6c757d;
            margin-bottom: 15px;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .alert-card:hover {
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .alert-card.critical {
            border-left-color: #dc3545;
        }

        .alert-card.warning {
            border-left-color: #ffc107;
        }

        .alert-card.info {
            border-left-color: #17a2b8;
        }

        .alert-card.success {
            border-left-color: #28a745;
        }

        .alert-badge {
            font-size: 0.7rem;
            padding: 3px 8px;
            border-radius: 12px;
            font-weight: 600;
            text-transform: uppercase;
            border: 1px solid transparent;
        }

        .badge-critical {
            background: #fff5f5;
            color: #dc3545;
            border-color: #f5c6cb;
        }

        .badge-warning {
            background: #fffbf0;
            color: #fd7e14;
            border-color: #ffeaa7;
        }

        .badge-info {
            background: #f8f9fa;
            color: #6c757d;
            border-color: #dee2e6;
        }

        .badge-success {
            background: #f8fff9;
            color: #28a745;
            border-color: #c3e6cb;
        }

        .traffic-status {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .traffic-light {
            background: #d4edda;
            color: #155724;
        }

        .traffic-moderate {
            background: #fff3cd;
            color: #856404;
        }

        .traffic-heavy {
            background: #f8d7da;
            color: #721c24;
        }

        .traffic-unknown {
            background: #e2e3e5;
            color: #495057;
        }

        .expressway-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }

        .expressway-chip {
            background: #6c757d;
            color: white;
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
        }

        .expressway-chip:hover {
            background: #495057;
        }

        .expressway-chip.active {
            background: #28a745;
        }

        .loading-spinner {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 200px;
        }

        .refresh-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .last-updated {
            text-align: center;
            color: #6c757d;
            font-size: 0.9rem;
            margin-bottom: 20px;
        }

        .stats-row {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 15px;
            margin-bottom: 25px;
        }

        .stat-card {
            background: white;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            border: 1px solid #e9ecef;
            transition: all 0.2s ease;
        }

        .stat-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transform: translateY(-1px);
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 5px;
            color: #2c3e50;
        }

        .stat-label {
            font-size: 0.85rem;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 500;
        }

        .stat-critical .stat-number {
            color: #dc3545;
        }

        .stat-warning .stat-number {
            color: #fd7e14;
        }

        .stat-info .stat-number {
            color: #6c757d;
        }

        .stat-success .stat-number {
            color: #28a745;
        }

        .stat-waze .stat-number {
            color: #17a2b8;
        }

        .incident-type {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .time-ago {
            font-size: 0.8rem;
            color: #6c757d;
            font-style: italic;
        }

        .alert-details {
            font-size: 0.9rem;
            line-height: 1.4;
            margin: 8px 0;
        }

        .location-info {
            background: #f8f9fa;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 0.85rem;
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .source-badge {
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            border: 1px solid transparent;
        }

        .source-waze {
            background: #f8f9fa;
            color: #495057;
            border-color: #dee2e6;
        }

        .source-google {
            background: #f8f9fa;
            color: #495057;
            border-color: #dee2e6;
        }

        .source-simulated {
            background: #f8f9fa;
            color: #6c757d;
            border-color: #dee2e6;
        }

        .waze-marker {
            background: #f8f9fa;
            color: #495057;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 600;
            border: 1px solid #dee2e6;
        }

        @media (max-width: 991.98px) {
            .layout-container {
                flex-direction: column;
            }
            
            .map-panel {
                position: relative;
                top: 0;
            }
            
            #mapContainer {
                height: 400px;
            }
            
            .alerts-panel {
                max-height: none;
                order: 2;
            }
            
            .map-panel {
                order: 1;
            }

            .stats-row {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 575.98px) {
            body {
                padding: 15px;
            }
            
            .main-container {
                padding: 20px;
            }
            
            .title-section h1 {
                font-size: 1.8rem;
            }
            
            .stats-row {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .stat-card {
                padding: 12px;
            }
            
            .stat-number {
                font-size: 1.3rem;
            }
        }

        .alert-header {
            display: flex;
            justify-content: between;
            align-items: flex-start;
            gap: 10px;
        }

        .alert-icon {
            font-size: 1.2rem;
            margin-right: 8px;
        }

        .crash-icon {
            color: #dc3545;
        }

        .construction-icon {
            color: #ffc107;
        }

        .traffic-icon {
            color: #6c757d;
        }

        .breakdown-icon {
            color: #fd7e14;
        }

        .weather-icon {
            color: #6f42c1;
        }

        .incident-details {
            background: #f8f9fa;
            border-radius: 6px;
            padding: 8px 12px;
            margin-top: 8px;
            font-size: 0.85rem;
        }

        .impact-info {
            display: flex;
            justify-content: space-between;
            margin-top: 8px;
        }

        .impact-item {
            text-align: center;
            font-size: 0.8rem;
        }

        .impact-number {
            font-weight: 700;
            color: #dc3545;
        }

        .debug-info {
            background: #e7f3ff;
            border: 1px solid #b8daff;
            border-radius: 6px;
            padding: 10px;
            margin-top: 15px;
            font-size: 0.85rem;
        }
        .filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.filter-chip {
    background: #6c757d;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-weight: 500;
}

.filter-chip:hover {
    background: #495057;
}

.filter-chip.active {
    background: #007bff;
}

.filter-chip.severity-critical.active {
    background: #dc3545;
}

.filter-chip.severity-warning.active {
    background: #fd7e14;
}

.filter-chip.severity-info.active {
    background: #6c757d;
}

.filter-chip.severity-success.active {
    background: #28a745;
}

.filter-chip.incident-crash.active {
    background: #dc3545;
}

.filter-chip.incident-breakdown.active {
    background: #fd7e14;
}

.filter-chip.incident-construction.active {
    background: #ffc107;
    color: #000;
}

.filter-chip.incident-weather.active {
    background: #6f42c1;
}

.filter-chip.incident-police.active {
    background: #007bff;
}

.filter-select {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    color: #495057;
    min-width: 120px;
}

.filter-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.filter-btn.clear {
    background: #f8f9fa;
    color: #6c757d;
}

.filter-btn.clear:hover {
    background: #e9ecef;
}

.filter-btn.toggle {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-btn.toggle:hover {
    background: #0056b3;
}

.filter-section.collapsed .filter-row:not(:first-child) {
    display: none;
}

.results-info {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .filter-actions {
        margin-left: 0;
        justify-content: center;
    }
}