:root {
    --primary: #1e293b; 
    --accent: #0ba471;
    --danger: #ef4444;  
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-main: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body.night-mode {
    --primary: #f8fafc;
    --bg-light: #0f172a; 
    --white: #1e293b;
    --text-main: #e2e8f0;
    --text-light: #94a3b8;
    --border: #334155;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

body {
    margin: 0; font-family: 'Inter', sans-serif;
    background-color: var(--bg-light); color: var(--text-main);
    height: 100vh; display: flex; flex-direction: column; overflow: hidden;
}

/* --- Map & Layout --- */
.main-layout { display: flex; flex: 1; height: calc(100vh - 65px); position: relative; }
.sidebar { width: 380px; background: var(--white); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 50; }
.map-wrapper { flex: 1; position: relative; height: 100%; width: 100%; }
#map { width: 100%; height: 100%; }

/* Sidebar header - hidden by default */
.sidebar-header {
    display: none;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.sidebar-brand i {
    font-size: 1.2rem;
    color: var(--accent);
}

.sidebar-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.sidebar-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    flex-shrink: 0;
}
.sidebar-close-btn:hover {
    background: var(--white);
}

/* --- Navbar --- */
.navbar {
    height: 65px; background: var(--white); border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; padding: 0 24px; z-index: 100;
}
.brand-container { display: flex; align-items: center; gap: 15px; }
.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--text-main); }
.divider { color: var(--border); }
.slogan-container { height: 20px; overflow: hidden; }
.slogan-wrapper { animation: slideText 12s infinite cubic-bezier(0.23, 1, 0.32, 1); }
.slogan { height: 20px; display: flex; align-items: center; font-size: 0.9rem; font-weight: 500; color: var(--accent); }

/* Mobile menu button - hidden by default */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}
.mobile-menu-btn:hover {
    background: var(--bg-light);
}

@keyframes slideText {
    0%, 15% { transform: translateY(0); }
    20%, 35% { transform: translateY(-20px); }
    40%, 55% { transform: translateY(-40px); }
    60%, 75% { transform: translateY(-60px); }
    80%, 95% { transform: translateY(-80px); }
    100% { transform: translateY(0); }
}

.nav-actions { display: flex; gap: 8px; }
.nav-btn {
    padding: 8px 14px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer;
    font-size: 0.85rem; display: flex; align-items: center; gap: 6px; transition: all 0.2s;
}
.outline-btn { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.outline-btn:hover { background: var(--bg-light); }
.community-btn { background: #eff6ff; color: #3b82f6; }
.sos-btn { background: #fef2f2; color: var(--danger); border: 1px solid #fee2e2; }
.clear-btn { background: #475569; color: white; }
.icon-only { padding: 8px; }

/* Dark Mode Overrides */
body.night-mode .outline-btn:hover { background: #334155; }
body.night-mode .community-btn { background: #1e3a8a; color: #93c5fd; }
body.night-mode .sos-btn { background: #7f1d1d; color: #fca5a5; border-color: #991b1b; }
body.night-mode .sidebar-header { background: #0f172a; }
body.night-mode .sidebar-close-btn:hover { background: #1e293b; }

/* --- Sidebar Inputs --- */
.search-container { padding: 25px; border-bottom: 1px solid var(--border); }
.search-container h3 { margin: 0 0 15px; font-size: 1rem; display: flex; gap: 8px; align-items: center; color: var(--text-main); }

.input-wrapper { position: relative; margin-bottom: 12px; }
.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-light); z-index: 2; }
.input-wrapper input {
    width: 100%; padding: 12px 40px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg-light); color: var(--text-main); outline: none; box-sizing: border-box; font-size: 0.95rem;
    transition: all 0.2s;
}
.input-wrapper input:focus { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }

.locate-me-btn {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; color: var(--accent); cursor: pointer;
    font-size: 1.2rem; padding: 5px; z-index: 10;
}
.locate-me-btn:hover { transform: translateY(-50%) scale(1.1); color: #059669; }

.primary-btn {
    background: var(--accent); color: white; padding: 12px; border-radius: 8px; border: none;
    font-weight: 600; width: 100%; cursor: pointer; margin-top: 10px; font-size: 1rem;
}
.primary-btn:hover { background: #059669; }

/* --- Route Cards --- */
.routes-container { flex: 1; overflow-y: auto; padding: 20px; background: var(--bg-light); }
.route-card {
    background: var(--white); border-radius: 12px; padding: 16px; margin-bottom: 15px;
    box-shadow: var(--shadow); cursor: pointer; display: flex; align-items: center; gap: 15px;
    border: 2px solid transparent; transition: all 0.2s;
}
.route-card:hover { transform: translateY(-2px); }

/* Selected State */
.route-card.selected { border-color: var(--accent); background: #ecfdf5; }
body.night-mode .route-card.selected { background: #064e3b; border-color: #34d399; box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }

.score-box {
    width: 60px; height: 60px; border-radius: 12px; color: white; display: flex;
    flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.score-val { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.score-txt { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; margin-top: 2px; }

.route-info h4 { margin: 0 0 5px; color: var(--text-main); font-size: 1rem; }
.route-meta { font-size: 0.85rem; color: var(--text-light); display: flex; gap: 10px; margin-bottom: 8px; }

/* --- BADGES (Labels) --- */
.route-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
    font-size: 0.75rem; padding: 6px 10px; border-radius: 6px;
    background: var(--bg-light); color: var(--text-light); border: 1px solid var(--border);
    display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap;
}
body.night-mode .badge { background: #334155; border-color: #475569; color: #cbd5e1; }

/* --- Predictive Safety Forecast --- */
.safety-forecast {
    margin-top: 10px; padding: 10px 12px;
    background: var(--bg-light); border-radius: 10px;
    border: 1px solid var(--border); font-size: 0.78rem;
}
body.night-mode .safety-forecast { background: #0f172a; border-color: #334155; }

.forecast-loading { color: var(--text-light); font-size: 0.75rem; text-align: center; padding: 4px 0; }

.fc-header {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 8px;
    display: flex; align-items: center; gap: 5px;
}
.fc-slot {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 5px; position: relative;
}
.fc-slot-now { background: rgba(16,185,129,0.07); border-radius: 6px; padding: 2px 4px; margin: 0 -4px 5px; }
body.night-mode .fc-slot-now { background: rgba(16,185,129,0.12); }

.fc-now-badge {
    font-size: 0.55rem; font-weight: 800; background: #10b981; color: white;
    padding: 1px 5px; border-radius: 4px; letter-spacing: 0.04em;
}
.fc-time { width: 34px; font-weight: 600; color: var(--text-light); flex-shrink: 0; font-size: 0.72rem; }
.fc-bar-wrap { flex: 1; height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; }
.fc-bar { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.fc-score { width: 26px; text-align: right; font-weight: 800; font-size: 0.78rem; flex-shrink: 0; }

.fc-insight {
    margin-top: 8px; padding: 6px 8px; font-size: 0.72rem; line-height: 1.4;
    color: var(--text-light); border-top: 1px solid var(--border);
    display: flex; gap: 5px; align-items: flex-start;
}
.fc-insight i { color: #0ba471; flex-shrink: 0; margin-top: 2px; }

/* --- AI Safety Explainer --- */
.ai-btn-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.ai-explain-btn, .ai-narrate-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s; width: fit-content;
    border: 1.5px solid var(--accent);
}
.ai-explain-btn { background: transparent; color: var(--accent); }
.ai-explain-btn:hover { background: var(--accent); color: white; }
.ai-explain-btn.loading { opacity: 0.6; pointer-events: none; }

.ai-narrate-btn { background: transparent; color: #7c3aed; border-color: #7c3aed; }
.ai-narrate-btn:hover { background: #7c3aed; color: white; }
.ai-narrate-btn.speaking {
    background: #7c3aed; color: white;
    animation: pulse-narrate 1.2s infinite;
}
@keyframes pulse-narrate {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(124,58,237,0); }
}
.ai-explain-btn i, .ai-narrate-btn i { font-size: 0.7rem; }

.ai-explanation-panel {
    display: none; margin-top: 10px; padding: 12px 14px;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-left: 3px solid var(--accent); border-radius: 8px;
    font-size: 0.82rem; line-height: 1.6; color: var(--text-main);
    animation: fadeIn 0.3s ease;
}
.ai-explanation-panel.visible { display: block; }
.ai-explanation-panel .ai-header {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.7rem; font-weight: 700; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
}
body.night-mode .ai-explanation-panel {
    background: linear-gradient(135deg, #052e16, #064e3b);
    color: #d1fae5;
}

/* --- Heatmap FAB & Legend --- */
.map-fab-group {
    position: absolute; bottom: 24px; right: 16px; z-index: 100;
    display: flex; flex-direction: column; gap: 10px;
}
.map-fab {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 30px;
    background: var(--white); color: var(--text-main);
    border: 2px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.map-fab:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.2); transform: translateY(-1px); }
.map-fab.active {
    background: #ef4444; color: white; border-color: #ef4444;
    box-shadow: 0 4px 20px rgba(239,68,68,0.45);
    animation: pulse-fab 2s infinite;
}
@keyframes pulse-fab {
    0%, 100% { box-shadow: 0 4px 20px rgba(239,68,68,0.45); }
    50% { box-shadow: 0 4px 28px rgba(239,68,68,0.7); }
}
body.night-mode .map-fab { background: #1e293b; color: #e2e8f0; border-color: #334155; }
body.night-mode .map-fab.active { background: #ef4444; color: white; border-color: #ef4444; }

.heatmap-legend {
    position: absolute; bottom: 80px; right: 16px; z-index: 100;
    background: var(--white); border-radius: 12px; padding: 12px 16px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    min-width: 200px; animation: fadeIn 0.25s ease;
}
.heatmap-legend.hidden { display: none; }
.legend-title { font-size: 0.8rem; font-weight: 700; color: #ef4444; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.legend-scale { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.legend-bar {
    flex: 1; height: 10px; border-radius: 5px;
    background: linear-gradient(to right, #00ff00, #ffff00, #ff8800, #ff0000);
}
.legend-low, .legend-high { font-size: 0.7rem; font-weight: 600; color: var(--text-light); }
.legend-note { font-size: 0.7rem; color: var(--text-light); }
body.night-mode .heatmap-legend { background: #1e293b; border-color: #334155; }
body.night-mode .legend-note, body.night-mode .legend-low, body.night-mode .legend-high { color: #94a3b8; }

/* --- Modals --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 2000;
    justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.2s; }
.modal-content {
    background: var(--white); width: 450px; max-width: 90%; border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); overflow: hidden; animation: slideUp 0.3s;
}
.modal-header {
    padding: 16px 24px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h2 { margin: 0; font-size: 1.1rem; color: var(--text-main); display: flex; gap: 8px; align-items: center;}
.close-btn { background: none; border: none; font-size: 1.5rem; color: var(--text-light); cursor: pointer; }

.modal-body { padding: 24px; max-height: 70vh; overflow-y: auto; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.modern-select, .modern-textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg-light); font-family: inherit; font-size: 0.95rem; margin-bottom: 16px;
    box-sizing: border-box; color: var(--text-main); transition: border 0.2s;
}
.modern-select:focus, .modern-textarea:focus { border-color: var(--accent); outline: none; background: var(--white); }
.full-width { width: 100%; }

.separator { display: flex; align-items: center; text-align: center; color: var(--text-light); margin: 25px 0 15px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.separator::before, .separator::after { content: ''; flex: 1; border-bottom: 1px solid var(--border); }
.separator span { padding: 0 10px; }

.feedback-scroll {
    max-height: 200px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-light);
}
.feedback-item { padding: 12px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.feedback-item:last-child { border-bottom: none; }
.feedback-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.feedback-type { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }
.feedback-time { font-size: 0.75rem; color: var(--text-light); }
.feedback-desc { color: var(--text-main); font-size: 0.85rem; }

/* SOS Styles */
.danger-header { background: #fef2f2; border-bottom: none; color: var(--danger); }
body.night-mode .danger-header { background: #450a0a; color: #fca5a5; }
.big-sos-btn {
    width: 120px; height: 120px; border-radius: 50%; background: var(--danger); color: white;
    border: 6px solid #fecaca; font-weight: 800; font-size: 1.5rem; cursor: pointer;
    margin: 30px auto; display: block; animation: pulse 2s infinite; box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}
.sos-note { text-align: center; font-size: 0.85rem; color: var(--text-light); margin-top: 15px; }

/* Lists */
.tips-list { list-style: none; padding: 0; margin: 0; }
.tips-list li { 
    padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; 
    display: flex; gap: 12px; align-items: flex-start; color: var(--text-main);
}
.check-icon { color: var(--accent); margin-top: 3px; }
.helpline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.helpline-card { 
    background: var(--bg-light); padding: 15px; border-radius: 10px; text-align: center; 
    border: 1px solid var(--border); transition: transform 0.2s;
}
.helpline-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.hl-number { font-size: 1.5rem; font-weight: 800; color: var(--accent); display: block; margin-bottom: 4px;}
.hl-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-light); font-weight: 700; }

/* Loading & Animation */
.loading-overlay { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--white); padding: 40px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); z-index: 3000; text-align: center; }
.radar-spinner { width: 50px; height: 50px; border: 4px solid var(--bg-light); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 15px; animation: spin 1s infinite linear; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239,68,68,0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 25px rgba(239,68,68,0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Emergency Suggestions Styles */
.emergency-section {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border);
}

.emergency-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emergency-item {
    background: var(--white);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.emergency-item:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

/* Dark mode emergency styles */
body.night-mode .emergency-section {
    background: #1e293b;
    border-color: #334155;
}

body.night-mode .emergency-item {
    background: #0f172a;
    border-color: #334155;
}

body.night-mode .emergency-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    /* Navbar responsive fixes */
    .navbar {
        padding: 0 12px;
        flex-wrap: nowrap;
        min-height: 65px;
        height: 65px;
    }
    
    .brand-container {
        gap: 8px;
        flex: 1;
        min-width: 0; /* Allow shrinking */
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
    
    .logo-text {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .slogan-container {
        display: none; /* Hide animated slogans on mobile */
    }
    
    .divider {
        display: none; /* Hide divider on mobile */
    }
    
    .nav-actions {
        gap: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .nav-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .nav-btn span {
        display: none; /* Hide button text, keep only icons */
    }
    
    /* Sidebar responsive */
    .sidebar {
        width: 85%;
        max-width: 350px;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    /* Show sidebar header on mobile */
    .sidebar-header {
        display: flex;
    }
    
    .main-layout {
        height: calc(100vh - 65px);
    }
    
    /* Overlay for mobile sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    /* Modal responsive fixes */
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .emergency-section {
        padding: 12px;
    }
    
    .emergency-item {
        padding: 10px;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        width: 320px;
    }
    
    .navbar {
        padding: 0 16px;
    }
    
    .brand-container {
        gap: 10px;
    }
    
    .slogan {
        font-size: 0.8rem;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .navbar {
        padding: 0 8px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-actions {
        gap: 2px;
    }
    
    .nav-btn {
        padding: 4px 6px;
        font-size: 0.75rem;
    }
    
    .sidebar {
        width: 90%;
    }
}

/* Prevent modal from closing when showing AI suggestions */
.modal-overlay[data-prevent-close="true"] {
    pointer-events: auto !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-overlay[data-prevent-close="true"] .modal-content {
    animation: modalPulse 0.5s ease-in-out;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5) !important;
    border: 3px solid var(--accent);
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@keyframes modalPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Make sure modal content is clickable */
.modal-overlay[data-prevent-close="true"] .modal-content {
    pointer-events: auto;
}

/* Force modal to stay visible when showing suggestions */
.modal-overlay[data-showing-suggestions="true"] {
    display: flex !important;
}

.modal-overlay[data-showing-suggestions="true"].active {
    display: flex !important;
}

/* Emergency Modal Styles */
.emergency-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dee2e6;
}

.emergency-item {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.emergency-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.emergency-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emergency-item button {
    transition: all 0.2s ease;
}

.emergency-item button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Modal overlay click prevention */
#emergency-suggestions-modal {
    pointer-events: all;
    z-index: 99999 !important;
}

#emergency-suggestions-modal.active {
    display: flex !important;
    z-index: 99999 !important;
}