/* -------------------------------------------------------------
 * Estilos Principais - RotaAlerta (Estilo Waze)
 * Design premium escuro com glassmorphism, sombras neon e animações
 * ------------------------------------------------------------- */

/* Google Fonts - Inter & Outfit */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-main: #070a13;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --border-card: rgba(255, 255, 255, 0.08);
    
    --waze-blue: #33b3e4;
    --waze-blue-glow: rgba(51, 179, 228, 0.35);
    
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    
    /* Cores de Incidentes */
    --color-police: #3b82f6;
    --color-traffic: #f97316;
    --color-accident: #ef4444;
    --color-hazard: #eab308;
    --color-radar: #10b981;
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--color-text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* -------------------------------------------------------------
 * Grelha e Layout da Aplicação
 * ------------------------------------------------------------- */
.app-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    grid-template-rows: 64px 1fr;
    height: 100vh;
    width: 100vw;
}

header {
    grid-column: 1 / -1;
    background: linear-gradient(90deg, #0b0f19 0%, #1e1b4b 100%);
    border-bottom: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 26px;
    filter: drop-shadow(0 0 8px var(--waze-blue-glow));
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 30%, var(--waze-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge-live {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 1.5s infinite;
}

/* -------------------------------------------------------------
 * Barra Lateral de Configurações e Controlos
 * ------------------------------------------------------------- */
.sidebar {
    background-color: #0b0f19;
    border-right: 1px solid var(--border-card);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 999;
}

/* Sidebar Tabs */
.sidebar-tabs {
    display: flex;
    background: #0b0f19;
    border-bottom: 1px solid var(--border-card);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 0;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--color-text);
    background: rgba(255,255,255,0.03);
}

.tab-btn.active {
    color: var(--waze-blue);
    border-bottom-color: var(--waze-blue);
    background: rgba(51, 179, 228, 0.05);
}

.sidebar-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-card);
}

.sidebar-section h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    color: var(--waze-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Formulários e Elementos de Input */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.select-input, .text-input {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    padding: 10px 12px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    transition: var(--transition-smooth);
    outline: none;
}

.select-input:focus, .text-input:focus {
    border-color: var(--waze-blue);
    box-shadow: 0 0 0 2px var(--waze-blue-glow);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #0284c7 0%, var(--waze-blue) 100%);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.btn-primary:hover {
    box-shadow: 0 0 16px var(--waze-blue-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    margin-top: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Controlos de Voz e Simulação */
.control-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 8px;
}

.control-switch span {
    font-size: 13px;
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--waze-blue);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Lista de Reportes */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
}

.report-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.report-item-desc {
    color: var(--color-text-muted);
}

.report-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* -------------------------------------------------------------
 * Área do Mapa
 * ------------------------------------------------------------- */
.map-viewport {
    position: relative;
    height: 100%;
    width: 100%;
}

#map {
    height: 100%;
    width: 100%;
    background-color: #111827; /* Fallback */
}

/* Customização dos Popups do Leaflet para o Dark Mode */
.leaflet-popup-content-wrapper {
    background: var(--bg-card) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-card);
    color: var(--color-text) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
    background: #0f172a !important;
}

.leaflet-popup-content {
    margin: 12px 16px !important;
    line-height: 1.5;
}

/* -------------------------------------------------------------
 * HUD de Navegação Dinâmico (Estilo Waze)
 * ------------------------------------------------------------- */
.hud-panel {
    position: absolute;
    pointer-events: none;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition-smooth);
}

/* HUD Superior - Instruções de Curva */
.hud-top {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 480px;
}

.hud-card-top {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.1) inset;
    animation: slideDown 0.4s ease-out;
}

.hud-icon-container {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1.5px solid var(--waze-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--waze-blue);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.hud-instruction-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hud-distance {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: var(--waze-blue);
    line-height: 1.1;
}

.hud-instruction-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-top: 2px;
}

.hud-street-name {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

/* HUD Inferior - Detalhes da Viagem e Velocímetro */
.hud-bottom {
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 520px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.hud-card-bottom {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px 20px;
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 76px;
}

.hud-stats-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hud-stats-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--color-text);
}

.hud-stats-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.eta-highlight {
    color: #10b981;
}

/* Velocímetro e Limite de Velocidade */
.hud-speedometer {
    pointer-events: auto;
    width: 76px;
    height: 76px;
    background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: var(--transition-smooth);
}

.speed-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    line-height: 1;
}

.speed-unit {
    font-size: 8px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* Sinalizador de Limite de Velocidade */
.speed-limit-sign {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    background-color: white;
    border: 3px solid #dc2626;
    border-radius: 50%;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 11px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Efeito de Excesso de Velocidade */
.hud-speedometer.speeding {
    border-color: #dc2626;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.6);
    animation: speedPulse 1s infinite alternate;
}

.hud-speedometer.speeding .speed-value {
    color: #ef4444;
}

/* -------------------------------------------------------------
 * Sistema de Reportes de Incidentes (Floating Button & Radial/Overlay)
 * ------------------------------------------------------------- */
.report-float-btn {
    pointer-events: auto;
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1) inset;
    z-index: 998;
    transition: var(--transition-smooth);
}

.report-float-btn:hover {
    transform: scale(1.08) rotate(15deg);
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.5);
}

/* Overlay do Menu de Reporte */
.report-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.report-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.report-menu-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: var(--transition-smooth);
    text-align: center;
}

.report-overlay.active .report-menu-card {
    transform: scale(1);
}

.report-menu-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.report-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 15px 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.report-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.report-btn-icon {
    font-size: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.report-btn-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
}

/* Cores específicas de botões de reporte */
.rep-policia .report-btn-icon { background: rgba(59, 130, 246, 0.15); border: 1.5px solid var(--color-police); color: var(--color-police); }
.rep-transito .report-btn-icon { background: rgba(249, 115, 22, 0.15); border: 1.5px solid var(--color-traffic); color: var(--color-traffic); }
.rep-acidente .report-btn-icon { background: rgba(239, 68, 68, 0.15); border: 1.5px solid var(--color-accident); color: var(--color-accident); }
.rep-perigo .report-btn-icon { background: rgba(234, 179, 8, 0.15); border: 1.5px solid var(--color-hazard); color: var(--color-hazard); }
.rep-radar .report-btn-icon { background: rgba(16, 185, 129, 0.15); border: 1.5px solid var(--color-radar); color: var(--color-radar); }

/* Submenu de Detalhes do Alerta */
.report-submenu {
    display: none;
    animation: fadeIn 0.3s;
}

.report-submenu.active {
    display: block;
}

.report-submenu-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submenu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-sub-choice {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-sub-choice:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.report-input-desc {
    margin-bottom: 20px;
}

/* Botões do Popup do Leaflet */
.popup-btn-container {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.popup-btn {
    flex: 1;
    border: none;
    padding: 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.popup-btn-still {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.popup-btn-still:hover {
    background: rgba(16, 185, 129, 0.25);
}

.popup-btn-gone {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.popup-btn-gone:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* -------------------------------------------------------------
 * Elemento do Carro no Mapa
 * ------------------------------------------------------------- */
.car-marker-icon {
    transition: transform 0.1s linear; /* Suavizar rotação */
    transform-origin: center center;
    filter: drop-shadow(0 4px 10px rgba(6, 182, 212, 0.5));
}

.car-svg-glow {
    animation: carPulse 2s infinite ease-in-out;
}

/* -------------------------------------------------------------
 * Animações Keyframes
 * ------------------------------------------------------------- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translate(-50%, -40px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes speedPulse {
    0% { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 2px rgba(220, 38, 38, 0.2); }
    100% { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 18px rgba(220, 38, 38, 0.7); }
}

@keyframes carPulse {
    0% { filter: drop-shadow(0 0 2px rgba(6, 182, 212, 0.3)); }
    50% { filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8)); }
    100% { filter: drop-shadow(0 0 2px rgba(6, 182, 212, 0.3)); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* -------------------------------------------------------------
 * Responsividade para Ecrãs Móveis
 * ------------------------------------------------------------- */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        grid-template-rows: 56px 1fr;
    }
    
    header {
        padding: 0 15px;
    }
    
    .sidebar {
        display: none; /* Em ecrãs móveis normais, esconde para maximizar o mapa */
    }
    
    .sidebar.mobile-open {
        display: flex;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        height: calc(100% - 56px);
        z-index: 1005;
        background: #0b0f19;
    }

    .hud-top {
        width: 95%;
        top: 10px;
    }

    .hud-bottom {
        width: 95%;
        bottom: 15px;
        flex-direction: column-reverse;
        align-items: center;
        gap: 12px;
    }

    .hud-card-bottom {
        width: 100%;
        height: 64px;
        padding: 10px;
    }

    .hud-speedometer {
        width: 66px;
        height: 66px;
    }

    .speed-value {
        font-size: 20px;
    }

    .report-float-btn {
        bottom: 95px;
        right: 15px;
        width: 52px;
        height: 52px;
    }
}
}

/* -------------------------------------------------------------
 * Badge de Simulação
 * ------------------------------------------------------------- */
.simulation-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    animation: speedPulse 2s infinite alternate;
}

@media (max-width: 768px) {
    .simulation-badge {
        top: 100px; /* Below header on mobile */
        right: 15px;
    }
}


/* Autocomplete Sugestes */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: none;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    transition: background 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: rgba(51, 179, 228, 0.15);
    color: var(--waze-blue);
}


/* Indicao de Vias (Lane Guidance) */
.hud-lanes {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    align-items: center;
}

.lane-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    color: #fff;
}

.lane-valid {
    opacity: 1;
    color: #06b6d4;
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.5));
}


/* Travel History */
.history-item {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.history-item:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.history-item-route {
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 4px;
}
.history-item-meta {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    gap: 10px;
}
