/* --- Simulator Section --- */
.simulator-section {
    padding: 5rem 0;
}

.simulator-wrapper {
    background: #090e18;
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    margin-top: 1.5rem;
}

.simulator-header {
    background: #0d1624;
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.online {
    background-color: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
    animation: target-blink 1.5s ease-in-out infinite;
}

.simulator-time {
    color: var(--color-secondary);
    text-shadow: 0 0 6px rgba(255, 208, 0, 0.3);
}

.simulator-grid {
    display: grid;
    grid-template-columns: 320px 1fr 340px;
    min-height: 480px;
}

.sim-panel {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sim-panel:last-child {
    border-right: none;
}

.panel-header {
    background-color: #0b121f;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
}

.sim-controls {
    padding: 1.25rem;
    background-color: #070b13;
}

.sim-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.simulator-wrapper .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.simulator-wrapper .form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.simulator-wrapper .form-select,
.simulator-wrapper .form-input {
    background-color: #0d1522;
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 0.65rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition);
}

.simulator-wrapper .form-select:focus,
.simulator-wrapper .form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(16, 133, 255, 0.25);
}

.sim-incidents {
    padding: 1.25rem;
    background-color: #06090f;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.sim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.sim-table th {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.sim-table td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.sim-table tr:hover {
    background-color: rgba(16, 133, 255, 0.05);
}

.sim-resources {
    padding: 1.25rem;
    background-color: #080d16;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.resource-box {
    background: #0d1522;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.resource-box:hover {
    border-color: var(--color-primary);
}

.resource-name {
    font-family: var(--font-telemetry);
    font-weight: 700;
    font-size: 0.95rem;
}

.resource-type {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.resource-status-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

.badge-status {
    font-family: var(--font-mono, 'Share Tech Mono', monospace);
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

/* FMS Status Color Classes - Ultra High Contrast & Official BOS Colors */
.status-0 { background-color: #dc2626 !important; color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.status-1 { background-color: #10b981 !important; color: #022c22 !important; font-weight: 900 !important; }
.status-2 { background-color: #16a34a !important; color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.status-3 { background-color: #f59e0b !important; color: #451a03 !important; font-weight: 900 !important; }
.status-4 { background-color: #ef4444 !important; color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.status-5 { background-color: #eab308 !important; color: #422006 !important; font-weight: 900 !important; }
.status-6 { background-color: #64748b !important; color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.status-7 { background-color: #8b5cf6 !important; color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.status-8 { background-color: #0284c7 !important; color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.status-9 { background-color: #06b6d4 !important; color: #083344 !important; font-weight: 900 !important; }

.resource-box.active-dispatch {
    animation: glow-pulse-blue 1.5s infinite alternate;
}

@keyframes glow-pulse-blue {
    from {
        border-color: var(--border-color);
        box-shadow: 0 0 2px rgba(16, 133, 255, 0.1);
    }
    to {
        border-color: var(--color-primary);
        box-shadow: 0 0 10px rgba(16, 133, 255, 0.4);
    }
}

.simulator-footer {
    background: #0b121f;
    border-top: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.legend-title {
    font-weight: 700;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.sim-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.center-cta {
    display: flex;
}

/* --- Map Simulator Styles --- */
.map-vehicle-tag {
    display: flex;
    align-items: center;
    background: #0d1522;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: var(--font-sans);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
}
@keyframes status-3-blink {
    0%, 100% {
        border-color: var(--status-3);
        box-shadow: 0 0 8px rgba(255, 208, 0, 0.3);
    }
    50% {
        border-color: #0066ff;
        box-shadow: 0 0 16px rgba(0, 102, 255, 0.8);
    }
}
@keyframes status-0-blink {
    0%, 100% {
        border-color: var(--status-0);
        box-shadow: 0 0 8px rgba(255, 0, 127, 0.4);
    }
    50% {
        border-color: #ff0044;
        box-shadow: 0 0 20px rgba(255, 0, 68, 1);
    }
}
.map-vehicle-tag.status-border-0 {
    animation: status-0-blink 0.8s infinite ease-in-out;
}
.map-vehicle-tag.status-border-1 { border-color: var(--status-1); box-shadow: 0 0 8px rgba(0, 255, 0, 0.25); }
.map-vehicle-tag.status-border-2 { border-color: var(--status-2); box-shadow: 0 0 8px rgba(0, 204, 0, 0.25); }
.map-vehicle-tag.status-border-3 { 
    animation: status-3-blink 1.2s infinite ease-in-out; 
}
.map-vehicle-tag.status-border-4 { border-color: var(--status-4); box-shadow: 0 0 8px rgba(255, 139, 139, 0.25); }
.map-vehicle-tag.status-border-5 { border-color: var(--status-5); box-shadow: 0 0 8px rgba(255, 255, 0, 0.25); }
.map-vehicle-tag.status-border-6 { border-color: var(--status-6); box-shadow: 0 0 8px rgba(158, 158, 158, 0.25); }
.map-vehicle-tag.status-border-7 { border-color: var(--status-7); box-shadow: 0 0 8px rgba(255, 85, 255, 0.25); }
.map-vehicle-tag.status-border-8 { border-color: var(--status-8); box-shadow: 0 0 8px rgba(85, 204, 255, 0.25); }
.map-vehicle-tag.status-border-9 { border-color: var(--status-9); box-shadow: 0 0 8px rgba(136, 255, 136, 0.25); }


.map-vehicle-status {
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-mono, 'Share Tech Mono', monospace);
    font-size: 0.8rem;
    border-radius: 4px;
    margin-right: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}
.map-vehicle-details {
    display: flex;
    flex-direction: column;
}
.map-vehicle-name {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-telemetry);
}
.map-vehicle-type {
    font-size: 0.6rem;
    color: var(--text-muted);
    line-height: 1;
    margin-top: 1px;
}

/* Incident Pulse */
.map-incident-pulse {
    width: 12px;
    height: 12px;
    background: var(--color-danger);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-danger);
    position: relative;
}
.map-incident-pulse::after {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border: 2px solid var(--color-danger);
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
}
.telemetry-text {
    color: var(--text-secondary);
}

/* Simulator layout styles (Image 1 Replica) */
.simulator-header-left {
    display: flex;
    flex-direction: column;
}
.header-subtext {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: -2px;
}
.simulator-header-tabs {
    display: flex;
    gap: 0.35rem;
}
.header-tab {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(16, 133, 255, 0.15);
    border-radius: 3px;
    background: rgba(13, 22, 41, 0.4);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.header-tab.active, .header-tab:hover {
    background: rgba(16, 133, 255, 0.15);
    border-color: var(--color-primary);
    color: #ffffff;
}

.simulator-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.scale-widget {
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    background: rgba(5,8,16,0.5);
}
.live-badge {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid #00e676;
    color: #00e676;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.2);
}
.api-badge {
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}
.api-badge.err {
    background: rgba(255, 44, 85, 0.15);
    border: 1px solid #ff2c55;
    color: #ff2c55;
}
.api-badge.ok {
    background: rgba(16, 133, 255, 0.15);
    border: 1px solid #1085ff;
    color: #1085ff;
}
.btn-header-add {
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16,133,255,0.3);
}

/* Form intake style */
.sim-controls {
    background: #060a12 !important;
    padding: 0.75rem !important;
    font-size: 0.8rem;
    gap: 0.5rem;
}
.panel-section {
    border: 1px solid rgba(16, 133, 255, 0.1);
    background: rgba(13, 22, 41, 0.3);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.25rem;
}
.panel-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    border-bottom: 1px solid rgba(16, 133, 255, 0.08);
    padding-bottom: 0.2rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}
.panel-form-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.panel-form-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.15rem;
}
.panel-form-col label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.form-input-compact, .form-select-compact {
    background: #0a0f1d;
    border: 1px solid rgba(16, 133, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
    border-radius: 2px;
    outline: none;
    font-family: var(--font-sans);
}
.form-input-compact:focus, .form-select-compact:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(16, 133, 255, 0.2);
}
.sim-form-compact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.panel-form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
}
.btn-dispatch {
    flex: 1.5;
    background: #1085ff;
    border: 1px solid #1085ff;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
}
.btn-cancel {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.4rem;
    border-radius: 3px;
    cursor: pointer;
}

/* Map center header tabs */
.sim-map-panel {
    grid-column: 2; /* Center column */
    display: flex;
    flex-direction: column;
    background: #050810; /* matching dark theme bg */
    height: 100%;
}
#hero-map {
    flex: 1;
    width: 100% !important;
    background: #050810;
}
.map-header-tabs {
    background: #080c16;
    border-bottom: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}
.map-tab {
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding: 0.15rem 0.4rem;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: var(--font-sans);
}
.map-tab.active, .map-tab:hover {
    background: rgba(16, 133, 255, 0.12);
    border-color: rgba(16, 133, 255, 0.25);
    color: #ffffff;
}

/* Right panel stack */
.sim-right-panel {
    background: #060a12 !important;
    padding: 0.75rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.signale-widget, .ressourcen-widget {
    background: rgba(13, 22, 41, 0.4);
    border: 1px solid rgba(16, 133, 255, 0.12);
    border-radius: 4px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
}
.widget-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid rgba(16, 133, 255, 0.1);
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}
.widget-count {
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: normal;
}
.signale-boxes {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.signal-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 0.4rem;
}
.signal-box.field {
    background: rgba(255, 0, 110, 0.15);
    border: 1px solid #ff006e;
    color: #ff006e;
}
.signal-box.tel {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid #00e676;
    color: #00e676;
}
.box-num {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
}
.box-lbl {
    font-size: 0.6rem;
    text-transform: uppercase;
    margin-top: 2px;
}
.signale-list-container {
    max-height: 80px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-family: var(--font-mono);
}
.signal-row {
    color: var(--text-secondary);
    border-bottom: 1px dashed rgba(255,255,255,0.03);
    padding-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ressourcen-widget {
    flex: 1;
}
.ressourcen-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.25rem;
}
.res-tab {
    font-size: 0.65rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.1rem 0.25rem;
}
.res-tab.active {
    color: var(--color-primary);
    font-weight: bold;
}

/* Bottom incidents grid panel */
.sim-incidents-panel {
    grid-column: 1 / -1;
    background: #050810;
    border-top: 1px solid var(--border-color);
}
.sim-table-incidents {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    text-align: left;
}
.sim-table-incidents th {
    padding: 0.5rem 0.6rem;
    background: #090e18;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}
.sim-table-incidents td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
}
.sim-table-incidents tr.incident-row-critical {
    background-color: rgba(255, 44, 85, 0.08) !important;
}
.sim-table-incidents tr.incident-row-critical:hover {
    background-color: rgba(255, 44, 85, 0.15) !important;
}
.sim-table-incidents tr:hover {
    background-color: rgba(16, 133, 255, 0.05);
}

.btn-table-action {
    background: transparent;
    border: 1px solid #38bdf8;
    color: #38bdf8;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    cursor: pointer;
    text-transform: uppercase;
}
.btn-table-action:hover {
    background: #38bdf8;
    color: #000000;
}

/* ==========================================================================
   Simulator Tactical Theme Enforcement (Always High Contrast 24/7)
   ========================================================================== */
.simulator-wrapper {
    background: #060b13 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7) !important;
    color: #f8fafc !important;
}

.simulator-wrapper,
.simulator-wrapper * {
    box-sizing: border-box;
}

/* Top Header */
.simulator-header {
    background: #0b1322 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}
.simulator-header .header-subtext {
    color: #94a3b8 !important;
}
.simulator-header .header-tab {
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.simulator-header .header-tab.active,
.simulator-header .header-tab:hover {
    background: rgba(14, 165, 233, 0.22) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}
.simulator-time {
    color: #38bdf8 !important;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5) !important;
}

/* Left Form Controls */
.sim-controls {
    background: #080d1a !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.panel-section {
    background: #0f172a !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
}
.panel-section-title {
    color: #38bdf8 !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.panel-form-col label {
    color: #94a3b8 !important;
    font-weight: 600 !important;
}
.form-input-compact, 
.form-select-compact {
    background: #030712 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}
.form-input-compact:focus, 
.form-select-compact:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3) !important;
}

/* Map Header Tabs */
.map-header-tabs {
    background: #0b1322 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.map-tab {
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.map-tab.active,
.map-tab:hover {
    background: rgba(14, 165, 233, 0.22) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

/* Right Panel: Signale & Ressourcen */
.sim-right-panel {
    background: #080d1a !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.signale-widget, 
.ressourcen-widget {
    background: #0f172a !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
}
.widget-header {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.widget-count {
    color: #94a3b8 !important;
}
.signal-row {
    color: #cbd5e1 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
}
.res-tab {
    color: #94a3b8 !important;
}
.res-tab.active {
    color: #38bdf8 !important;
    font-weight: 700 !important;
}

/* Resource Vehicle Boxes (Crisp & High Contrast) */
.resource-box {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}
.resource-box:hover {
    background: #28374f !important;
    border-color: #38bdf8 !important;
}
.resource-name {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: -0.01em;
}
.resource-type {
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 0.72rem !important;
}
.resource-status-container {
    color: #cbd5e1 !important;
}
.resource-status-container span:last-child {
    color: #64748b !important;
}

/* Bottom Incidents Table Panel */
.sim-incidents-panel {
    background: #080d1a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.sim-incidents-panel .panel-header {
    background: #0b1322 !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.sim-table-incidents th {
    background: #0e1726 !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 700 !important;
}
.sim-table-incidents td {
    color: #f1f5f9 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.sim-table-incidents tr:hover td {
    background: rgba(56, 189, 248, 0.08) !important;
}
.sim-table-incidents tr.incident-row-critical {
    background: rgba(239, 68, 68, 0.18) !important;
}
.sim-table-incidents tr.incident-row-critical td {
    color: #ffffff !important;
}
.sim-table-incidents tr.incident-row-critical:hover td {
    background: rgba(239, 68, 68, 0.28) !important;
}

/* Simulator Footer & Status Legend */
.simulator-footer {
    background: #0b1322 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.25rem !important;
}
.legend-title {
    color: #38bdf8 !important;
    font-weight: 800 !important;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #f1f5f9 !important;
    font-size: 0.82rem;
    font-weight: 500;
}
.simulator-footer .badge-status {
    min-width: 20px;
    height: 20px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* ==========================================================================
   Responsive Tablet & Mobile Optimizations for Simulator
   ========================================================================== */

/* Tablet (max-width: 1080px) */
@media (max-width: 1080px) {
    .simulator-wrapper {
        border-radius: 12px;
    }
    .simulator-header {
        flex-wrap: wrap;
        gap: 0.65rem;
        padding: 0.75rem 1rem;
    }
    .simulator-header-tabs {
        order: 3;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        gap: 0.4rem;
        padding: 0.2rem 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .simulator-header-tabs::-webkit-scrollbar {
        display: none;
    }
    .simulator-grid {
        grid-template-columns: 310px 1fr;
        min-height: auto;
    }
    .sim-right-panel {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 0.75rem;
        border-top: 1px solid var(--border-color);
        border-right: none;
    }
    .sim-map-panel {
        border-right: none;
    }
    #hero-map {
        min-height: 320px;
    }
}

/* Smartphone / Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .simulator-wrapper {
        border-radius: 10px;
        margin: 0;
        overflow: hidden;
    }
    .simulator-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0.75rem;
    }
    .simulator-header-left {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .simulator-header-right {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 0.5rem;
    }
    .scale-widget,
    .api-badge {
        display: none !important;
    }
    .simulator-time {
        font-size: 0.85rem;
    }
    .btn-header-add {
        font-size: 0.72rem;
        padding: 0.35rem 0.65rem;
        white-space: nowrap;
    }
    .simulator-header-tabs {
        order: 2;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        gap: 0.35rem;
        padding: 0.2rem 0 0.3rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .simulator-header-tabs::-webkit-scrollbar {
        display: none;
    }
    .simulator-grid {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }
    .sim-panel {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    .sim-map-panel {
        order: 1;
        width: 100%;
        height: auto;
    }
    #hero-map {
        height: 250px !important;
        min-height: 250px !important;
        width: 100% !important;
    }
    .sim-controls {
        order: 2;
        padding: 0.85rem !important;
    }
    .sim-incidents {
        order: 3;
        padding: 0.85rem !important;
    }
    .sim-right-panel {
        order: 4;
        display: flex;
        flex-direction: column;
        border-right: none !important;
        border-bottom: none;
        padding: 0.85rem !important;
    }
    .panel-form-row {
        flex-direction: column;
        gap: 0.4rem;
    }
    .panel-form-col {
        width: 100%;
    }
    .form-input-compact, 
    .form-select-compact {
        font-size: 16px !important; /* Prevents iOS auto-zoom */
        padding: 0.5rem 0.6rem;
        min-height: 40px;
    }
    .panel-form-actions {
        flex-direction: row;
        gap: 0.5rem;
    }
    .btn-dispatch,
    .btn-cancel {
        min-height: 42px;
        font-size: 0.8rem;
    }
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.25rem;
    }
    .sim-table {
        min-width: 520px;
        font-size: 0.78rem;
    }
    .sim-table th, 
    .sim-table td {
        padding: 0.55rem 0.5rem;
    }
    .simulator-footer {
        padding: 0.75rem 0.85rem !important;
        gap: 0.45rem 0.65rem !important;
        font-size: 0.78rem !important;
    }
    .legend-title {
        width: 100%;
        margin-bottom: 0.15rem;
    }
}

/* Small Smartphone (max-width: 480px) */
@media (max-width: 480px) {
    #hero-map {
        height: 220px !important;
        min-height: 220px !important;
    }
    .simulator-header-left .logo span {
        font-size: 1.05rem;
    }
    .header-subtext {
        display: none;
    }
    .panel-form-actions {
        flex-direction: column;
    }
    .btn-dispatch,
    .btn-cancel {
        width: 100%;
    }
}
