@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #020617;
    --primary-neon: #06b6d4;
    --primary-blue: #3b82f6;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --border-glow: rgba(6, 182, 212, 0.2);
    --border-glow-focus: rgba(56, 189, 248, 0.65);
    
    --bg-glass: rgba(8, 14, 27, 0.55);
    --bg-glass-heavy: rgba(5, 9, 20, 0.85);
    
    --safe-green: #10b981;
    --safe-green-glow: rgba(16, 185, 129, 0.25);
    --danger-red: #ef4444;
    --danger-red-glow: rgba(239, 68, 68, 0.35);
    --warning-yellow: #f59e0b;
    --warning-yellow-glow: rgba(245, 158, 11, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Outfit', sans-serif;
}

body {
    min-height: 100vh;
    background-color: var(--bg-dark);
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #020617 0%, #070a13 100%);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* ===== PARTICLES BACKDROP & SCAN SWEEPS ===== */
#particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.laser-scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
    box-shadow: 0 0 15px 2px var(--primary-neon);
    animation: screenScan 8s infinite linear;
    z-index: 2;
    pointer-events: none;
}

@keyframes screenScan {
    0% { top: 0%; opacity: 0.1; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { top: 100%; opacity: 0.1; }
}

/* ===== CYBER HUD TELEMETRIES ===== */
.cyber-hud-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    font-family: 'Space Grotesk', sans-serif;
}

.hud-tag {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    color: rgba(6, 182, 212, 0.35);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hud-top-left { top: 90px; left: 40px; display: flex; flex-direction: column; gap: 4px; }
.hud-top-right { top: 90px; right: 40px; text-align: right; }
.hud-bottom-left { bottom: 40px; left: 40px; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-neon);
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-neon);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-neon);
    animation: activePulse 1.6s infinite ease-in-out;
}

@keyframes activePulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

/* ===== NAVBAR STYLES HANDLED BY CENTRAL NAVBAR_RESPONSIVE.CSS ===== */

/* ===== MAIN CONSOLE ===== */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 5;
    position: relative;
}

.notifications-container {
    flex: 1;
    padding: 170px 60px 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.notifications-header {
    text-align: center;
    margin-bottom: 50px;
}

.notifications-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, var(--primary-neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== LAYOUT SYSTEM ===== */
.notifications-dual-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.layout-column {
    display: flex;
    flex-direction: column;
}

.settings-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-title-bar {
    margin-bottom: 25px;
    border-left: 3px solid var(--primary-neon);
    padding-left: 15px;
}

.card-title-bar h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
}

/* ===== TOGGLES STYLING ===== */
.dispatch-toggles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.toggle-row:hover {
    background: rgba(6, 182, 212, 0.04);
    border-color: rgba(6, 182, 212, 0.15);
}

.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 15px;
}

.toggle-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.toggle-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Cyber toggle switches */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    min-width: 44px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #cbd5e1;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

input:checked + .slider {
    background-color: rgba(6, 182, 212, 0.2);
    border-color: var(--primary-neon);
}

input:checked + .slider::before {
    transform: translateX(20px);
    background-color: var(--primary-neon);
    filter: drop-shadow(0 0 5px var(--primary-neon));
}

.slider.round {
    border-radius: 34px;
}

.slider.round::before {
    border-radius: 50%;
}

/* ===== RANGE SLIDERS ===== */
.sliders-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.slider-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.value-badge {
    font-family: 'Space Grotesk', sans-serif;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--primary-neon);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255,255,255,0.06);
    outline: none;
    transition: all 0.3s;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-neon);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-neon);
    transition: transform 0.15s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== FLOATING LABEL FORMS ===== */
.supervisor-form {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    outline: none;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 11px;
    color: var(--primary-neon);
    background: #080d19;
    padding: 0 6px;
    transform: translateY(-50%) translateX(-4px);
}

.btn-register {
    font-family: 'Space Grotesk', sans-serif;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-neon));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
    transition: all 0.25s;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.btn-register:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.45);
}

/* ===== DIRECTORY CONTACT LIST ===== */
.directory-list-wrapper h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.directory-scroll-box {
    max-height: 180px;
    overflow-y: auto;
}

/* Custom scrollbars */
.directory-scroll-box::-webkit-scrollbar {
    width: 5px;
}
.directory-scroll-box::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.01);
}
.directory-scroll-box::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
}

.supervisor-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
}

.supervisor-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 12px 18px;
    border-radius: 10px;
    transition: all 0.3s;
}

.supervisor-list li:hover {
    background: rgba(255,255,255,0.04);
}

.contact-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sup-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.sup-card-email {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-delete-contact {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-delete-contact:hover {
    color: var(--danger-red);
    background: rgba(239, 68, 68, 0.08);
}

.btn-delete-contact svg {
    width: 16px;
    height: 16px;
}

/* ===== INCURSION SIMULATOR ===== */
.simulator-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-test-danger {
    font-family: 'Space Grotesk', sans-serif;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(185, 28, 28, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--danger-red);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

.btn-test-danger:hover {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
    border-color: #ef4444;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-1.5px);
}

/* ===== DYNAMIC HUD TOAST NOTIFICATIONS ===== */
.hud-toast-container {
    position: fixed;
    top: 90px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    max-width: 380px;
    width: calc(100% - 80px);
    pointer-events: none;
}

.hud-toast {
    position: relative;
    background: rgba(8, 14, 27, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    gap: 15px;
    pointer-events: auto;
    
    animation: slideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.35s ease;
}

.hud-toast.fading {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
}

@keyframes slideIn {
    0% { transform: translateX(100%) scale(0.9); opacity: 0; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

.toast-indicator {
    width: 4px;
    background-color: var(--primary-neon);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-neon);
}

.hud-toast.success .toast-indicator { background-color: var(--safe-green); box-shadow: 0 0 10px var(--safe-green); }
.hud-toast.success { border-color: rgba(16, 185, 129, 0.25); }
.hud-toast.warning .toast-indicator { background-color: var(--warning-yellow); box-shadow: 0 0 10px var(--warning-yellow); }
.hud-toast.warning { border-color: rgba(245, 158, 11, 0.25); }
.hud-toast.danger .toast-indicator { background-color: var(--danger-red); box-shadow: 0 0 10px var(--danger-red); }
.hud-toast.danger { border-color: rgba(239, 68, 68, 0.35); }

.toast-content {
    flex: 1;
}

.toast-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.hud-toast.success h4 { color: var(--safe-green); }
.hud-toast.warning h4 { color: var(--warning-yellow); }
.hud-toast.danger h4 { color: var(--danger-red); }

.toast-content p {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    align-self: flex-start;
    padding: 0 3px;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close-btn:hover {
    color: white;
}

/* ===== MENU-TOGGLE STYLES HANDLED BY NAVBAR_RESPONSIVE.CSS ===== */

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 9, 20, 0.4);
    margin-top: 50px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

/* =========================================
   MEDIA RESPONSIVENESS OVERRIDES
   ========================================= */

@media (max-width: 1200px) {
    .cyber-hud-layer {
        display: none;
    }
    
    .notifications-container {
        padding: 120px 40px 40px 40px;
    }
    
    .hud-toast-container {
        top: 30px;
        right: 30px;
    }
}

@media (max-width: 992px) {
    .notifications-dual-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .notifications-container {
        padding: 95px 20px 30px 20px;
    }

    .notifications-header h1 {
        font-size: 26px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .hud-toast-container {
        right: 20px;
        width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .settings-card {
        padding: 20px;
    }
    
    .supervisor-form {
        padding: 15px;
    }
}
