/* Shared responsive layout for Technification landing pages
   (Hassi, Meram, Zakum, Riyas, Jafurah, Qatar, QatarPM).
   Loaded globally from _Host.cshtml, scoped via .dashboard-container. */

/* === Container fills the available area; do NOT cap to viewport (was breaking layout). === */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* === Top row (Admin Hub | Map | Alerts/Permits) takes most of the space === */
.dashboard-container > .row.flex-grow-1 {
    flex: 1 1 auto !important;
    min-height: 0;
}

/* === Bottom row (Workers / Terminals / Vehicles / Alerts):
   was uncapped and dwarfed everything. Give it a fixed reasonable height. === */
.dashboard-container > .row.mt-auto {
    flex: 0 0 auto;
}
.dashboard-container > .row.mt-auto > [class*="col-"] {
    min-height: 220px;
}
.dashboard-container > .row.mt-auto .widget-card {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0.6rem 0.75rem !important;
}
/* Header row inside each bottom widget — title aligned to top-left consistently. */
.dashboard-container > .row.mt-auto .widget-card > h6,
.dashboard-container > .row.mt-auto .widget-card > .d-flex:first-child > h6 {
    margin-bottom: 0.5rem !important;
}

@media (min-width: 1600px) {
    .dashboard-container > .row.mt-auto > [class*="col-"] { min-height: 240px; }
    .dashboard-container > .row.mt-auto .widget-card {
        height: 240px; min-height: 240px; max-height: 240px;
    }
}
@media (max-width: 767.98px) {
    /* On phones cards stack; let them grow to natural content. */
    .dashboard-container > .row.mt-auto .widget-card {
        height: auto; min-height: 200px; max-height: none;
    }
}

/* Inner scrollable areas inside bottom widgets — header pinned, body scrolls. */
.dashboard-container > .row.mt-auto .widget-card .table-responsive,
.dashboard-container > .row.mt-auto .widget-card .list-group,
.dashboard-container > .row.mt-auto .widget-card ul:not(.nav) {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* === Mid-screen breakpoint fix: original markup was col-12 col-xl-3 only,
   so 768–1199px got 1 column. Make tablets show 2 columns. === */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .dashboard-container .col-12.col-xl-3 {
        flex: 0 0 auto;
        width: 50%;
        max-width: 50%;
    }
    .dashboard-container .col-12.col-xl-6 {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
}

/* === Smart Material Systems widget: big 4.5rem number + pills + button
   don't fit the 220px bottom card. Shrink the number/spacing to fit, keep
   the card height untouched. Targeted via the unique projector-screen icon. === */
.dashboard-container > .row.mt-auto .widget-card:has(.ph-projector-screen) .fw-black.lh-1 {
    font-size: 2.4rem !important;
}
.dashboard-container > .row.mt-auto .widget-card:has(.ph-projector-screen) .text-white-50.fw-black.tracking-widest {
    font-size: 0.65rem !important;
    margin-top: 0.25rem !important;
}
.dashboard-container > .row.mt-auto .widget-card:has(.ph-projector-screen) .py-2 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}
.dashboard-container > .row.mt-auto .widget-card:has(.ph-projector-screen) .mt-2,
.dashboard-container > .row.mt-auto .widget-card:has(.ph-projector-screen) .mt-auto {
    margin-top: 0.4rem !important;
}
.dashboard-container > .row.mt-auto .widget-card:has(.ph-projector-screen) .btn {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/* === Terminals widget: big number + scrollable list don't fit 220px card.
   Shrink the active count, tighten the list rows.
   Also: original markup uses widget-card p-0 + h6.p-3 so the title sat 1rem
   lower than the other 3 widgets — strip the h6 padding to align them. === */
.dashboard-container > .row.mt-auto .widget-card:has(.ph-device-mobile) > h6 {
    padding: 0 !important;
}
.dashboard-container > .row.mt-auto .widget-card:has(.ph-device-mobile) .terminals-split-layout {
    height: 100%;
    min-height: 0;
}
.dashboard-container > .row.mt-auto .widget-card:has(.ph-device-mobile) .terminals-active-box {
    padding: 0.4rem !important;
    flex: 0 0 40%;
}
.dashboard-container > .row.mt-auto .widget-card:has(.ph-device-mobile) .terminals-active-box span.fw-black.lh-1 {
    font-size: 2.4rem !important;
}
.dashboard-container > .row.mt-auto .widget-card:has(.ph-device-mobile) .terminals-active-box .text-white-50.fw-bold {
    font-size: 0.85rem !important;
}
.dashboard-container > .row.mt-auto .widget-card:has(.ph-device-mobile) .terminals-active-box .tracking-widest {
    font-size: 0.55rem !important;
    margin-top: 0.25rem !important;
}
.dashboard-container > .row.mt-auto .widget-card:has(.ph-device-mobile) .terminals-scroll-area {
    padding: 4px 6px !important;
}
.dashboard-container > .row.mt-auto .widget-card:has(.ph-device-mobile) .t-row {
    padding: 4px 8px !important;
    margin-bottom: 3px !important;
}
.dashboard-container > .row.mt-auto .widget-card:has(.ph-device-mobile) .t-name {
    font-size: 0.75rem !important;
}
.dashboard-container > .row.mt-auto .widget-card:has(.ph-device-mobile) .t-sync-badge,
.dashboard-container > .row.mt-auto .widget-card:has(.ph-device-mobile) .t-batt {
    font-size: 0.7rem !important;
    padding: 1px 5px !important;
}

/* === Training Module: keep original sizes, just prevent overflow === */
.training-card-fill {
    overflow: hidden;
}
.training-card-fill .training-content-area {
    min-height: 0;
}
.training-card-fill .training-gauge-wrapper {
    flex-shrink: 0;
}

/* === Subtle scrollbar to match dashboard theme === */
.dashboard-container *::-webkit-scrollbar { width: 6px; height: 6px; }
.dashboard-container *::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.25);
    border-radius: 3px;
}
.dashboard-container *::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.45);
}
.dashboard-container *::-webkit-scrollbar-track { background: transparent; }

/* === Permit Tracker — visual redesign === */
/* Force the inner stack to consume the full widget height — no leftover empty space */
.dashboard-container .permit-card .permit-stats {
    min-height: 0;
    justify-content: space-between !important;
    gap: 0.6rem;
}
.dashboard-container .permit-card .permit-stats > .mb-3 { margin-bottom: 0 !important; }
.dashboard-container .permit-card .permit-hero { flex: 1 1 auto; min-height: 0; }
.dashboard-container .permit-card .permit-next-card { flex: 1 1 auto; min-height: 0; }

.dashboard-container .permit-live-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #39ff14;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
    animation: permit-pulse 1.6s ease-in-out infinite;
}
@keyframes permit-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.55; }
}

.dashboard-container .permit-donut {
    position: relative;
    width: 112px; height: 112px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(255, 193, 7, 0.25),
                inset 0 0 12px rgba(0, 0, 0, 0.4);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.4s ease;
}
.dashboard-container .permit-donut:hover { transform: rotate(8deg) scale(1.04); }
.dashboard-container .permit-donut-inner {
    position: relative;
    width: 78px; height: 78px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1a1f2b 0%, #0d1117 100%);
    border: 1px solid rgba(255, 193, 7, 0.35);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}
.dashboard-container .permit-donut-num {
    color: #ffc107;
    font-weight: 900;
    font-size: 1.85rem;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}
.dashboard-container .permit-donut-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    margin-top: 4px;
}

.dashboard-container .permit-legend {
    justify-content: center;
}
.dashboard-container .permit-legend-row {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 0;
}
.dashboard-container .permit-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dashboard-container .permit-dot.dot-approved { background: #39ff14; box-shadow: 0 0 6px rgba(57, 255, 20, 0.7); }
.dashboard-container .permit-dot.dot-pending  { background: #ffc107; box-shadow: 0 0 6px rgba(255, 193, 7, 0.7); }
.dashboard-container .permit-dot.dot-expired  { background: #ff4757; box-shadow: 0 0 6px rgba(255, 71, 87, 0.7); }
.dashboard-container .permit-leg-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    flex-grow: 1;
    line-height: 1;
}
.dashboard-container .permit-leg-val {
    color: var(--atlas-white);
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1;
    min-width: 26px;
    text-align: right;
    font-family: var(--atlas-font-sans);
}
.dashboard-container .permit-leg-val.permit-val-expired { color: #ff4757; }

.dashboard-container .permit-progress { flex-shrink: 0; }
.dashboard-container .permit-progress-bar {
    display: flex;
    height: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.dashboard-container .permit-progress-seg {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.dashboard-container .permit-progress-seg.seg-approved {
    background: linear-gradient(90deg, #1ed760, #39ff14);
    box-shadow: 0 0 6px rgba(57, 255, 20, 0.6);
}
.dashboard-container .permit-progress-seg.seg-pending {
    background: linear-gradient(90deg, #ff9800, #ffc107);
}
.dashboard-container .permit-progress-seg.seg-expired {
    background: linear-gradient(90deg, #d63031, #ff4757);
}
.dashboard-container .permit-progress > .d-flex > span:first-child {
    font-size: 0.85rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5) !important;
    text-transform: uppercase;
}
.dashboard-container .permit-progress > .d-flex > span:last-child {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    line-height: 1;
}

.dashboard-container .permit-next-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.07), rgba(255, 193, 7, 0.02));
    border-left: 2px solid #ffc107;
    border-radius: 4px;
    padding: 0.6rem 0.75rem !important;
}
.dashboard-container .permit-next-card > i {
    font-size: 1.85rem !important;
}
.dashboard-container .permit-next-card > div > div:nth-child(1) {
    font-size: 0.7rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.5) !important;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.dashboard-container .permit-next-card > div > div:nth-child(2) {
    font-size: 0.95rem !important;
    line-height: 1.15;
}
.dashboard-container .permit-next-card > div > div:nth-child(3) {
    font-size: 0.8rem !important;
    line-height: 1.15;
    margin-top: 2px;
}

.dashboard-container .permit-card .permit-footer { flex-shrink: 0; }
.dashboard-container .permit-card .permit-footer .btn-brushed span {
    font-size: 0.85rem !important;
    letter-spacing: 0.12em;
}


/* ─────────────────────────────────────────────────────────────────────────
   Imported from Hassi.razor inline <style> blocks.
   Apply to every Technification dashboard now that they share a single page.
   ───────────────────────────────────────────────────────────────────────── */
    html:has(.dashboard-container), body:has(.dashboard-container) {
        background: var(--atlas-navy-950) !important;
        height: 100vh;
        margin: 0;
        overflow: hidden;
    }

    .dashboard-container { 
        zoom: 0.67;
        padding: 0.5rem 0.75rem; 
        background: var(--atlas-navy-950);
        background-image: 
            radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.04) 0%, transparent 40%),
            radial-gradient(circle at 85% 85%, rgba(162, 155, 254, 0.04) 0%, transparent 40%);
        height: 149.25vh; /* 100 / 0.67 */
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .widget-card {
        border-radius: 10px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid var(--atlas-white);
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(10px);
        overflow: hidden;
    }
    .widget-card.maximized {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 100000 !important;
        zoom: 1.4925; /* Counteract parent 0.67 zoom */
        margin: 0 !important;
        border-radius: 0 !important;
        background: var(--atlas-navy-950) !important;
        box-shadow: none !important;
        border: none !important;
        transform: none !important;
    }
    .widget-card.maximized .map-container-wrapper {
        height: 100% !important;
        background: var(--atlas-navy-950) !important;
    }
    .widget-card.maximized #personnelMap {
        min-height: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        background: var(--atlas-navy-950) !important;
    }
    /* Prevents white/grey flashes while tiles load */
    .leaflet-container {
        background: var(--atlas-navy-950) !important;
    }
    /* Estilo Cyberpunk para los controles de Leaflet */
    .leaflet-control-zoom-in, .leaflet-control-zoom-out {
        background: rgba(2, 5, 10, 0.8) !important;
        color: var(--atlas-cyan) !important;
        border: 1px solid rgba(0, 229, 255, 0.3) !important;
        backdrop-filter: blur(8px);
    }
    .leaflet-control-zoom-in:hover, .leaflet-control-zoom-out:hover {
        background: rgba(0, 229, 255, 0.2) !important;
        color: var(--atlas-white) !important;
    }
    .leaflet-bar {
        border: none !important;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5) !important;
    }
    /* Selector de Capas (Layer Control) */
    .leaflet-control-layers {
        background: rgba(2, 5, 10, 0.8) !important;
        color: var(--atlas-cyan) !important;
        border: 1px solid rgba(0, 229, 255, 0.3) !important;
        border-radius: 8px !important;
        backdrop-filter: blur(10px);
        font-family: inherit;
        font-size: 0.75rem;
    }
    .leaflet-control-layers-expanded {
        padding: 8px 12px !important;
    }
    .leaflet-control-layers-list label {
        margin-bottom: 4px;
        cursor: pointer;
    }
    .leaflet-control-layers-selector {
        margin-right: 8px !important;
        accent-color: var(--atlas-cyan);
    }
    
    /* Iconos de ubicación específicos */
    .island-label-marker {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Animaciones de Pulso para el Mapa */
    .pulse-infra {
        animation: pulse-cyan-glow 2s infinite;
        border-radius: 50%;
    }
    .pulse-red {
        animation: pulse-red-glow 1.5s infinite;
        border-radius: 50%;
    }
    @@keyframes pulse-cyan-glow {
        0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
        70% { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); }
        100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
    }
    @@keyframes pulse-red-glow {
        0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
        70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
        100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
    }

    .widget-card.maximized .btn-maximize {
        z-index: 100001 !important;
        position: fixed !important;
        top: 12px !important;
        right: 12px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    .widget-card:not(.maximized):hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); }
    .time-selector-container { border-radius: 30px; display: flex; gap: 4px; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.3); padding: 5px; }
    .btn-time { border-radius: 25px; border: none; padding: 6px 16px; font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.6); background: transparent; transition: all 0.2s; }
    .btn-time.active { background: var(--atlas-cyan); color: var(--atlas-black); box-shadow: 0 0 15px rgba(0, 229, 255, 0.5); font-weight: 800; transform: scale(1.05); }
    .live-status-pill { 
        background: rgba(0, 255, 188, 0.08); 
        padding: 4px 12px; 
        border-radius: 20px; 
        border: 1px solid rgba(0, 255, 188, 0.2); 
        backdrop-filter: blur(8px);
        white-space: nowrap;
    }
    .status-dot { width: 8px; height: 8px; border-radius: 50%; }
    .dot-live { background: #00ffbc; box-shadow: 0 0 10px rgba(0, 255, 188, 0.6); }
    .dot-pulsing { animation: pulse-green 2s infinite; }
    @@keyframes pulse-green {
        0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 255, 188, 0.7); }
        70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 255, 188, 0); }
        100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 255, 188, 0); }
    }
    .widget-innovative { 
        background: rgba(255, 255, 255, 0.04) !important; 
        border: 1px solid rgba(255, 255, 255, 0.08) !important; 
        color: #e0e0e0 !important; 
        backdrop-filter: blur(15px);
    }
    .widget-card-header h6 { font-size: 0.9rem; font-weight: 850; letter-spacing: 0.12em; color: var(--atlas-white) !important; text-shadow: 0 1px 4px rgba(0,0,0,0.9); text-transform: uppercase; }
    .extra-small { font-size: 0.9rem; }
    .small { font-size: 1rem; }
    .text-white-50 { color: var(--atlas-white) !important; text-shadow: 0 1px 2px rgba(0,0,0,0.8); font-weight: 700 !important; }
    .fw-medium { font-weight: 600 !important; }
    .text-cyan { color: var(--atlas-cyan); }
    .text-blue { color: var(--atlas-cyan); }
    .text-indigo { color: #a29bfe; }
    .bg-indigo-light { background: linear-gradient(135deg, rgba(102, 16, 242, 0.2), rgba(102, 16, 242, 0.05)); }

    /* Cyberpunk minimalist & Glassmorphism */
    .cyber-card {
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(15px);
        border: 1px solid var(--atlas-white);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
    }
    .training-card { box-shadow: 0 0 20px rgba(0, 229, 255, 0.1); border-color: var(--atlas-white); }
    .permit-card { box-shadow: 0 0 20px rgba(255, 193, 7, 0.1); border-color: var(--atlas-white); }

    .btn-quick-add {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        color: var(--atlas-white);
        width: 28px;
        height: 28px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 0.8rem;
    }
    .btn-quick-add.cyan-quick:hover { background: rgba(0, 229, 255, 0.2); border-color: var(--atlas-cyan); color: var(--atlas-cyan); }
    .btn-quick-add.amber-quick:hover { background: rgba(255, 193, 7, 0.2); border-color: #ffc107; color: #ffc107; }
    
    .text-cyan-neon { color: var(--atlas-cyan); text-shadow: 0 0 8px rgba(0, 229, 255, 0.5); }
    .text-amber-neon { color: #ffc107; text-shadow: 0 0 8px rgba(255, 193, 7, 0.5); }
    .text-orange-neon { color: #ff9f43; }
    .text-orange { color: #ff9f43 !important; }
    .text-green-neon { color: #00ffbc; }
    .glass { background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(12px); border: 1px solid var(--atlas-white); }

    .neon-rings-wrapper { width: 60px; height: 60px; position: relative; }
    .neon-rings { width: 100%; height: 100%; transform: rotate(-90deg); }
    .ring { fill: none; stroke-width: 10; stroke-linecap: round; }
    .ring-outer { stroke: var(--atlas-cyan); stroke-dasharray: 2510; stroke-dashoffset: 600; filter: drop-shadow(0 0 4px var(--atlas-cyan)); opacity: 0.9; } /* Adjusted dasharray for scale */
    .ring-middle { stroke: var(--atlas-cyan); stroke-dasharray: 1880; stroke-dashoffset: 1000; opacity: 0.4; }
    .ring-inner { stroke: var(--atlas-cyan); stroke-dasharray: 1250; stroke-dashoffset: 900; opacity: 0.2; }

    .next-banner { background: rgba(0, 229, 255, 0.1); color: var(--atlas-cyan); border: 1px solid rgba(0, 229, 255, 0.2); width: 100%; text-align: center; }
    .btn-minimalist { background: transparent; border: none; color: var(--atlas-white); opacity: 0.6; transition: opacity 0.2s; padding: 4px; }
    .btn-minimalist:hover { opacity: 1; }

    .bg-black-20 { background: rgba(0, 0, 0, 0.3); }
    .btn-brushed { 
        background: linear-gradient(145deg, #333, #111); 
        border: 1px solid rgba(255, 255, 255, 0.12); 
        border-radius: 6px; 
        color: var(--atlas-white); 
        text-transform: uppercase; 
        letter-spacing: 1px;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0,0,0,0.5);
        transition: all 0.2s;
    }
    .btn-brushed:hover { transform: translateY(-1px); box-shadow: 0 6px 15px rgba(0,0,0,0.7), 0 0 10px rgba(255,193,7,0.2); border-color: rgba(255,193,7,0.4); }

    /* Mission Animations */
    .drone-animated {
        display: inline-block;
        animation: drone-float 3s ease-in-out infinite;
    }

    @@keyframes drone-float {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        25% { transform: translateY(-5px) rotate(2deg); }
        75% { transform: translateY(5px) rotate(-2deg); }
    }

    .worker-animated {
        display: inline-block;
        animation: worker-breathe 4s ease-in-out infinite;
    }

    @@keyframes worker-breathe {
        0%, 100% { transform: scale(1); opacity: 0.9; }
        50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 20px rgba(162, 155, 254, 0.6)); }
    }

    .blink-animation {
        animation: loading-blink 1.5s step-end infinite;
    }

    @@keyframes loading-blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
    }

    @@keyframes radar-sweep {
        0% { transform: translate(-50%, -50%) rotate(0deg); }
        100% { transform: translate(-50%, -50%) rotate(360deg); }
    }

    .terminal-animated {
        animation: terminal-sway 4s ease-in-out infinite;
    }
    @@keyframes terminal-sway {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        50% { transform: translateY(-10px) rotate(2deg); }
    }
    .vehicles-animated {
        animation: vehicles-pulse 3s ease-in-out infinite;
    }
    @@keyframes vehicles-pulse {
        0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.2)); }
        50% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(255, 193, 7, 0.5)); }
    }

    /* ═══════════════════════════════════════════ */
    /*  ACTIVE ALERTS                              */
    /* ═══════════════════════════════════════════ */
    .alert-count-badge {
        background: rgba(255, 71, 87, 0.2);
        border: 1px solid rgba(255, 71, 87, 0.5);
        color: #ff4757;
        font-size: 0.65rem;
        font-weight: 800;
        padding: 2px 10px;
        border-radius: 12px;
        animation: alert-pulse 2s ease-in-out infinite;
    }
    @@keyframes alert-pulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
        50% { box-shadow: 0 0 0 6px rgba(255, 71, 87, 0); }
    }
    .alerts-scroll-area {
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .alerts-scroll-area::-webkit-scrollbar { width: 3px; }
    .alerts-scroll-area::-webkit-scrollbar-thumb { background: rgba(255, 71, 87, 0.25); border-radius: 10px; }

    .alert-card-expired {
        display: flex;
        border-radius: 8px;
        overflow: hidden;
        background: rgba(255, 71, 87, 0.05);
        border: 1px solid rgba(255, 71, 87, 0.15);
        transition: all 0.2s;
    }
    .alert-card-expired:hover {
        background: rgba(255, 71, 87, 0.1);
        border-color: rgba(255, 71, 87, 0.3);
        box-shadow: 0 0 15px rgba(255, 71, 87, 0.08);
    }
    .alert-card-stripe {
        width: 4px;
        background: linear-gradient(180deg, #ff4757, #ff6b81);
        flex-shrink: 0;
    }
    .alert-card-body {
        padding: 10px 12px;
        flex-grow: 1;
    }
    .alert-badge-expired {
        background: rgba(255, 71, 87, 0.15);
        border: 1px solid rgba(255, 71, 87, 0.3);
        color: #ff4757;
        font-size: 0.55rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        padding: 1px 8px;
        border-radius: 4px;
    }
    .alert-date {
        font-family: 'Courier New', monospace;
        font-size: 0.6rem;
        color: rgba(255, 71, 87, 0.6);
    }
    .alert-name {
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 2px;
    }
    .alert-permit-type {
        font-size: 0.65rem;
        color: rgba(255, 193, 7, 0.7);
        font-weight: 600;
    }
    .btn-alert-action {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.04));
        border: 1px solid rgba(255, 193, 7, 0.25);
        color: #ffc107;
        font-size: 0.55rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        padding: 3px 12px;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s;
        width: 100%;
    }
    .btn-alert-action:hover {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.08));
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.15);
    }

    /* ═══════════════════════════════════════════ */
    /*  WORKER REGISTRY PANEL                     */
    /* ═══════════════════════════════════════════ */
    .worker-panel-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 9998;
        animation: overlay-in 0.25s ease-out;
    }
    @@keyframes overlay-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .worker-panel-drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: 1100px;
        max-width: 95vw;
        height: 100vh;
        zoom: 0.82;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        background: linear-gradient(168deg, #0b1120 0%, #0d0f1a 40%, #06090f 100%);
        border-left: 1px solid rgba(0, 229, 255, 0.15);
        box-shadow: -12px 0 60px rgba(0, 0, 0, 0.7), -4px 0 20px rgba(0, 229, 255, 0.08);
        animation: drawer-slide-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    @@keyframes drawer-slide-in {
        from { transform: translateX(100%); opacity: 0.5; }
        to { transform: translateX(0); opacity: 1; }
    }

    .worker-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.1rem 1.5rem;
        border-bottom: 1px solid rgba(0, 229, 255, 0.12);
        background: rgba(0, 229, 255, 0.03);
    }
    .btn-panel-close {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--atlas-white);
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
    }
    .btn-panel-close:hover { background: rgba(255, 70, 70, 0.2); border-color: rgba(255, 70, 70, 0.4); }

    .worker-panel-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .worker-count-badge {
        background: rgba(0, 229, 255, 0.08);
        border: 1px solid rgba(0, 229, 255, 0.18);
        border-radius: 20px;
        padding: 4px 14px;
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--atlas-cyan);
        letter-spacing: 0.06em;
    }
    .btn-neon-add {
        background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 229, 255, 0.05));
        border: 1px solid rgba(0, 229, 255, 0.35);
        color: var(--atlas-cyan);
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        padding: 7px 18px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.25s;
        text-transform: uppercase;
    }
    .btn-neon-add:hover {
        background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(0, 229, 255, 0.12));
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
        transform: translateY(-1px);
    }

    /* ── Add Worker Form ── */
    .worker-add-form {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0, 229, 255, 0.1);
        background: rgba(0, 229, 255, 0.02);
        animation: form-expand 0.3s ease-out;
    }
    @@keyframes form-expand {
        from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
        to { opacity: 1; max-height: 400px; }
    }
    .form-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.7rem;
        margin-bottom: 0.8rem;
    }
    .form-field { display: flex; flex-direction: column; gap: 4px; }
    .field-label {
        font-size: 0.6rem;
        font-weight: 800;
        letter-spacing: 0.15em;
        color: rgba(0, 229, 255, 0.6);
        text-transform: uppercase;
    }
    .cyber-input {
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        padding: 7px 10px;
        font-size: 0.78rem;
        color: var(--atlas-white);
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
        font-family: inherit;
    }
    .cyber-input::placeholder { color: rgba(255, 255, 255, 0.2); }
    .cyber-input:focus {
        border-color: rgba(0, 229, 255, 0.5);
        box-shadow: 0 0 12px rgba(0, 229, 255, 0.12), inset 0 0 6px rgba(0, 229, 255, 0.05);
    }
    .form-actions {
        display: flex;
        justify-content: flex-end;
        gap: 0.6rem;
    }
    .btn-cancel {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        padding: 6px 16px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
    }
    .btn-cancel:hover { border-color: rgba(255, 100, 100, 0.3); color: #ff6b6b; }
    .btn-confirm {
        background: linear-gradient(135deg, var(--atlas-cyan), #00b8d4);
        border: none;
        color: var(--atlas-black);
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        padding: 6px 20px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.25s;
    }
    .btn-confirm:hover { box-shadow: 0 0 20px rgba(0, 229, 255, 0.4); transform: translateY(-1px); }

    /* ── Workers Table ── */
    .worker-table-wrapper {
        flex: 1;
        overflow-y: auto;
        padding: 0.8rem 1.5rem 1.5rem;
    }
    .worker-table-wrapper::-webkit-scrollbar { width: 4px; }
    .worker-table-wrapper::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.2); border-radius: 10px; }
    .worker-table-wrapper::-webkit-scrollbar-track { background: transparent; }

    .cyber-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 3px;
    }
    .cyber-table thead th {
        font-size: 0.6rem;
        font-weight: 800;
        letter-spacing: 0.14em;
        color: rgba(0, 229, 255, 0.6);
        text-transform: uppercase;
        padding: 8px 10px;
        border-bottom: 1px solid rgba(0, 229, 255, 0.1);
        white-space: nowrap;
        text-align: left;
    }
    .cyber-table tbody tr {
        background: rgba(255, 255, 255, 0.02);
        transition: all 0.2s;
    }
    .cyber-table tbody tr:hover {
        background: rgba(0, 229, 255, 0.06);
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.05);
    }
    .cyber-table tbody td {
        padding: 9px 10px;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.85);
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        vertical-align: middle;
    }
    .cyber-table .row-index {
        color: rgba(0, 229, 255, 0.4);
        font-weight: 800;
        font-size: 0.65rem;
        width: 30px;
    }
    .cyber-table .passport-cell {
        font-family: 'Courier New', monospace;
        letter-spacing: 0.06em;
        color: rgba(255, 255, 255, 0.6);
    }
    .btn-row-delete {
        background: transparent;
        border: 1px solid transparent;
        color: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        padding: 3px 6px;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 0.8rem;
    }
    .btn-row-delete:hover {
        color: #ff6b6b;
        border-color: rgba(255, 100, 100, 0.3);
        background: rgba(255, 100, 100, 0.08);
    }

    /* ── Completed Row (Green) ── */
    .cyber-table tbody tr.row-completed {
        background: rgba(0, 255, 188, 0.06) !important;
        border-left: 2px solid #00ffbc;
    }
    .cyber-table tbody tr.row-completed:hover {
        background: rgba(0, 255, 188, 0.12) !important;
        box-shadow: 0 0 18px rgba(0, 255, 188, 0.08);
    }
    .cyber-table tbody tr.row-completed td {
        color: rgba(0, 255, 188, 0.9);
    }
    .cyber-table tbody tr.row-completed .row-index {
        color: rgba(0, 255, 188, 0.5);
    }
    .cyber-table tbody tr.row-completed .passport-cell {
        color: rgba(0, 255, 188, 0.6);
    }

    /* ── Cyberpunk Checkbox ── */
    .cyber-checkbox {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        width: 22px;
        height: 22px;
    }
    .cyber-checkbox input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }
    .cyber-checkbox .checkmark {
        width: 20px;
        height: 20px;
        border: 1.5px solid rgba(255, 255, 255, 0.15);
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s ease;
        font-size: 0.65rem;
        color: transparent;
    }
    .cyber-checkbox input:checked ~ .checkmark {
        background: rgba(0, 255, 188, 0.15);
        border-color: #00ffbc;
        color: #00ffbc;
        box-shadow: 0 0 10px rgba(0, 255, 188, 0.3), inset 0 0 4px rgba(0, 255, 188, 0.1);
    }
    .cyber-checkbox .checkmark:hover {
        border-color: rgba(0, 229, 255, 0.4);
    }
    .th-check { width: 36px; }

    /* ── Permit Panel (Amber theme) ── */
    .permit-panel-drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: 1100px;
        max-width: 95vw;
        height: 100vh;
        zoom: 0.82;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        background: linear-gradient(168deg, #1a1408 0%, #14100a 40%, #0a0804 100%);
        border-left: 1px solid rgba(255, 193, 7, 0.15);
        box-shadow: -12px 0 60px rgba(0, 0, 0, 0.7), -4px 0 20px rgba(255, 193, 7, 0.08);
        animation: drawer-slide-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .permit-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 193, 7, 0.12);
        background: rgba(255, 193, 7, 0.03);
    }
    .permit-panel-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .permit-count-badge {
        background: rgba(255, 193, 7, 0.08);
        border: 1px solid rgba(255, 193, 7, 0.18);
        border-radius: 20px;
        padding: 4px 14px;
        font-size: 0.72rem;
        font-weight: 700;
        color: #ffc107;
        letter-spacing: 0.06em;
    }
    .btn-amber-add {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
        border: 1px solid rgba(255, 193, 7, 0.35);
        color: #ffc107;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        padding: 7px 18px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.25s;
        text-transform: uppercase;
    }
    .btn-amber-add:hover {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 193, 7, 0.12));
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
        transform: translateY(-1px);
    }
    .permit-add-form {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 193, 7, 0.1);
        background: rgba(255, 193, 7, 0.02);
        animation: form-expand 0.3s ease-out;
    }
    .field-label-amber {
        font-size: 0.6rem;
        font-weight: 800;
        letter-spacing: 0.15em;
        color: rgba(255, 193, 7, 0.6);
        text-transform: uppercase;
    }
    .cyber-input.amber-focus:focus {
        border-color: rgba(255, 193, 7, 0.5);
        box-shadow: 0 0 12px rgba(255, 193, 7, 0.12), inset 0 0 6px rgba(255, 193, 7, 0.05);
    }
    .btn-confirm-amber {
        background: linear-gradient(135deg, #ffc107, #e0a800);
        border: none;
        color: var(--atlas-black);
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        padding: 6px 20px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.25s;
    }
    .btn-confirm-amber:hover { box-shadow: 0 0 20px rgba(255, 193, 7, 0.4); transform: translateY(-1px); }

    /* ── Permit Table Amber Header ── */
    .permit-table thead th {
        color: rgba(255, 193, 7, 0.6) !important;
    }
    .permit-table tbody tr:hover {
        background: rgba(255, 193, 7, 0.06) !important;
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.05);
    }
    .cyber-table .permit-type-cell {
        color: rgba(255, 193, 7, 0.8);
        font-weight: 600;
        font-size: 0.72rem;
    }

    /* ── Expiration Date Cell ── */
    .expiration-date-cell {
        font-family: 'Courier New', monospace;
        font-size: 0.7rem;
        letter-spacing: 0.04em;
        color: rgba(255, 255, 255, 0.5);
        white-space: nowrap;
    }
    .expiration-date-cell.expired {
        color: #ff4757 !important;
        font-weight: 700;
        text-shadow: 0 0 8px rgba(255, 71, 87, 0.4);
    }

    /* ── Approved Row (Green) ── */
    .cyber-table tbody tr.row-approved {
        background: rgba(0, 255, 188, 0.06) !important;
        border-left: 2px solid #00ffbc;
    }
    .cyber-table tbody tr.row-approved:hover {
        background: rgba(0, 255, 188, 0.12) !important;
        box-shadow: 0 0 18px rgba(0, 255, 188, 0.08);
    }
    .cyber-table tbody tr.row-approved td {
        color: rgba(0, 255, 188, 0.9);
    }
    .cyber-table tbody tr.row-approved .row-index {
        color: rgba(0, 255, 188, 0.5);
    }
    .cyber-table tbody tr.row-approved .passport-cell,
    .cyber-table tbody tr.row-approved .permit-type-cell {
        color: rgba(0, 255, 188, 0.6);
    }

    /* ── Inline Edit Styles ── */
    .small-edit {
        height: 22px !important;
        font-size: 0.65rem !important;
        padding: 2px 5px !important;
        background: rgba(255,255,255,0.05) !important;
        width: 100%;
        border-color: rgba(0, 229, 255, 0.3) !important;
    }
    .btn-row-edit {
        background: transparent;
        border: 1px solid transparent;
        color: rgba(0, 229, 255, 0.4);
        border-radius: 4px;
        padding: 3px 6px;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 0.8rem;
    }
    .btn-row-edit:hover {
        color: var(--atlas-cyan);
        border-color: rgba(0, 229, 255, 0.3);
        background: rgba(0, 229, 255, 0.08);
    }
    .btn-row-save {
        background: rgba(0, 255, 188, 0.15) !important;
        border: 1px solid rgba(0, 255, 188, 0.4) !important;
        color: #00ffbc !important;
        border-radius: 4px;
        padding: 0;
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1rem;
    }
    .btn-row-cancel {
        background: rgba(255, 100, 100, 0.15) !important;
        border: 1px solid rgba(255, 100, 100, 0.4) !important;
        color: #ff6b6b !important;
        border-radius: 4px;
        padding: 0;
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1rem;
    }

    /* ── Expired Row (Red) ── */
    .cyber-table tbody tr.row-expired {
        background: rgba(255, 71, 87, 0.06) !important;
        border-left: 2px solid #ff4757;
    }
    .cyber-table tbody tr.row-expired:hover {
        background: rgba(255, 71, 87, 0.12) !important;
        box-shadow: 0 0 18px rgba(255, 71, 87, 0.08);
    }
    .cyber-table tbody tr.row-expired td {
        color: rgba(255, 71, 87, 0.9);
    }
    .cyber-table tbody tr.row-expired .row-index {
        color: rgba(255, 71, 87, 0.5);
    }
    .cyber-table tbody tr.row-expired .passport-cell,
    .cyber-table tbody tr.row-expired .permit-type-cell {
        color: rgba(255, 71, 87, 0.6);
    }
    .cyber-table tbody tr.row-expired .expiration-date-cell {
        color: #ff4757 !important;
        font-weight: 800;
    }

    /* ── Renew Button & Inline ── */
    .btn-renew {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.08));
        border: 1px solid rgba(255, 193, 7, 0.4);
        color: #ffc107;
        font-size: 0.55rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        padding: 2px 8px;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s;
        margin-left: 6px;
        white-space: nowrap;
        vertical-align: middle;
    }
    .btn-renew:hover {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.35), rgba(255, 193, 7, 0.15));
        box-shadow: 0 0 12px rgba(255, 193, 7, 0.25);
        transform: translateY(-1px);
    }
    .renew-inline {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .renew-date-input {
        width: 130px !important;
        padding: 4px 6px !important;
        font-size: 0.7rem !important;
    }
    .btn-renew-confirm {
        background: rgba(0, 255, 188, 0.15);
        border: 1px solid rgba(0, 255, 188, 0.4);
        color: #00ffbc;
        width: 24px;
        height: 24px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 0.7rem;
        transition: all 0.2s;
    }
    .btn-renew-confirm:hover { background: rgba(0, 255, 188, 0.3); box-shadow: 0 0 10px rgba(0, 255, 188, 0.3); }
    .btn-renew-cancel {
        background: rgba(255, 100, 100, 0.1);
        border: 1px solid rgba(255, 100, 100, 0.3);
        color: #ff6b6b;
        width: 24px;
        height: 24px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 0.7rem;
        transition: all 0.2s;
    }
    .btn-renew-cancel:hover { background: rgba(255, 100, 100, 0.25); }

    /* ── PDF Upload & Justification ── */
    .th-justify {
        font-size: 0.55rem !important;
        min-width: 100px;
    }
    .justify-cell {
        min-width: 100px;
    }
    .btn-upload-pdf {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 193, 7, 0.04));
        border: 1px dashed rgba(255, 193, 7, 0.35);
        color: #ffc107;
        font-size: 0.6rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        padding: 4px 10px;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }
    .btn-upload-pdf:hover {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 193, 7, 0.1));
        border-style: solid;
        box-shadow: 0 0 12px rgba(255, 193, 7, 0.2);
        transform: translateY(-1px);
    }
    .justify-uploaded {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .justify-uploaded i {
        font-size: 1rem;
        filter: drop-shadow(0 0 4px rgba(0, 255, 188, 0.4));
    }
    .justify-filename {
        font-size: 0.6rem;
        color: rgba(0, 255, 188, 0.7);
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .cyber-table tbody tr.row-approved .justify-filename {
        color: rgba(0, 255, 188, 0.8);
    }

    /* ── Amber Checkbox ── */
    .amber-check .checkmark {
        border-color: rgba(255, 193, 7, 0.2) !important;
    }
    .amber-check input:checked ~ .checkmark {
        background: rgba(0, 255, 188, 0.15) !important;
        border-color: #00ffbc !important;
        color: #00ffbc !important;
        box-shadow: 0 0 10px rgba(0, 255, 188, 0.3), inset 0 0 4px rgba(0, 255, 188, 0.1) !important;
    }
    .amber-check .checkmark:hover {
        border-color: rgba(255, 193, 7, 0.4) !important;
    }

    /* ── Training & Date Cells ── */
    .cyber-table .training-cell {
        color: rgba(0, 229, 255, 0.7);
        font-weight: 600;
        font-size: 0.72rem;
    }
    .cyber-table .date-cell {
        font-family: 'Courier New', monospace;
        font-size: 0.7rem;
        letter-spacing: 0.04em;
        color: rgba(255, 255, 255, 0.5);
        white-space: nowrap;
    }
    .cyber-table tbody tr.row-completed .training-cell {
        color: rgba(0, 255, 188, 0.8);
    }
    .cyber-table tbody tr.row-completed .date-cell {
        color: rgba(0, 255, 188, 0.5);
    }

    /* ── Empty State ── */
    .empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4rem 2rem;
        color: rgba(255, 255, 255, 0.3);
    }
    .empty-icon-wrapper {
        position: relative;
        margin-bottom: 1.2rem;
        color: rgba(0, 229, 255, 0.15);
    }
    .empty-scan-line {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
        animation: scan-sweep 2.5s ease-in-out infinite;
    }
    .widget-disabled {
        filter: grayscale(1) opacity(0.5);
        pointer-events: none !important;
        user-select: none;
    }
    .coming-soon-label {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-12deg);
        background: rgba(2, 5, 10, 0.95);
        color: #ffc107;
        font-weight: 900;
        font-size: 1rem;
        padding: 4px 16px;
        border: 2px solid #ffc107;
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
        z-index: 100;
        letter-spacing: 0.15rem;
        text-transform: uppercase;
        white-space: nowrap;
        pointer-events: none;
        backdrop-filter: blur(4px);
    }
    @@keyframes scan-sweep {
        0% { top: 0; opacity: 0; }
        20% { opacity: 1; }
        80% { opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }

    /* ── Terminals Widget Redesign ── */
    .terminals-split-layout {
        display: flex;
        height: 100%;
        gap: 0;
    }
    .terminals-active-box {
        flex: 0 0 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-right: 1px solid rgba(0, 255, 188, 0.15);
        position: relative;
        background: radial-gradient(circle at center, rgba(0, 255, 188, 0.05) 0%, transparent 85%);
    }
    .terminals-active-box .text-center > div:last-child {
        white-space: nowrap;
    }
    .terminals-list-pane {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.15);
    }
    .terminals-scroll-area {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
        max-height: 156px;
        scrollbar-width: none;
    }
    .terminals-scroll-area::-webkit-scrollbar { width: 0 !important; height: 0 !important; background: transparent; display: none; }
    .terminals-scroll-area { -ms-overflow-style: none; }
    .t-list-header {
        display: flex;
        align-items: center;
        padding: 6px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(0, 0, 0, 0.25);
    }
    .t-col-label {
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        color: var(--atlas-white);
        text-transform: uppercase;
        text-align: center;
    }
    .t-name-col { flex: 1; text-align: left; }
    .t-sync-col { flex: 0 0 90px; }
    .t-batt-col { flex: 0 0 70px; }
    .t-info-horizontal .t-sync-badge { flex: 0 0 90px; justify-content: center; white-space: nowrap; }
    .t-info-horizontal .t-sync-badge span { white-space: nowrap; }
    .t-info-horizontal .t-batt { flex: 0 0 70px; justify-content: center; }
    .terminals-scroll-area::-webkit-scrollbar { width: 3px; }
    .terminals-scroll-area::-webkit-scrollbar-thumb { background: rgba(0, 255, 188, 0.2); border-radius: 10px; }

    .t-row {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        margin-bottom: 5px;
        background: rgba(255, 255, 255, 0.025);
        border-radius: 8px;
        border-left: 3px solid transparent;
        transition: all 0.2s;
    }
    .t-row:hover {
        background: rgba(0, 255, 188, 0.06);
        border-left-color: rgba(0, 255, 188, 0.3);
        transform: translateX(2px);
    }
    .t-status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin-right: 12px;
        flex-shrink: 0;
        box-shadow: 0 0 8px currentColor;
    }
    .status-online   { color: #00ffbc; background: #00ffbc; }
    .status-warning  { color: #ffc107; background: #ffc107; }
    .status-critical { color: #ff4757; background: #ff4757; }
    .status-offline  { color: #6c757d; background: #6c757d; }

    .t-info-horizontal { 
        flex: 1; 
        min-width: 0; 
        display: flex; 
        align-items: center; 
        justify-content: space-between;
        gap: 12px;
    }
    .t-name {
        font-size: 0.85rem;
        font-weight: 800;
        color: rgba(255, 255, 255, 0.95);
        letter-spacing: 0.03em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
    }
    .t-sync-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 2px 8px;
        background: rgba(0, 255, 188, 0.04);
        border: 1px solid rgba(0, 255, 188, 0.12);
        border-radius: 4px;
        color: rgba(0, 255, 188, 0.85);
        font-size: 0.85rem;
        font-weight: 700;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    .t-sync-badge.active {
        background: rgba(0, 255, 188, 0.12);
        border-color: rgba(0, 255, 188, 0.3);
        color: #00ffbc;
        box-shadow: 0 0 10px rgba(0, 255, 188, 0.2);
    }
    .t-sync-badge i { 
        font-size: 0.95rem; 
    }
    .t-sync-badge.active i {
        animation: rotate-sync 4s linear infinite;
    }
    @@keyframes rotate-sync {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    
    .t-batt { 
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 0.85rem; 
        font-weight: 700; 
        color: rgba(0, 255, 188, 0.65); 
        flex-shrink: 0;
    }
    .t-batt.low { color: #ff4757; animation: pulse-opacity 1s infinite; }
    
    @@keyframes pulse-opacity {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }

    .btn-widget-details {
        background: rgba(162, 155, 254, 0.1);
        border: 1px solid rgba(162, 155, 254, 0.2);
        color: #a29bfe;
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 1px;
        padding: 4px 10px;
        border-radius: 4px;
        transition: all 0.2s;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .btn-widget-details:hover {
        background: rgba(162, 155, 254, 0.2);
        border-color: rgba(162, 155, 254, 0.4);
        color: var(--atlas-white);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(162, 155, 254, 0.2);
    }

    /* KML Zone popup — shared look with QatarPM */
    .custom-qatar-popup .leaflet-popup-content-wrapper {
        background: rgba(2, 5, 10, 0.9) !important;
        border: 1px solid rgba(0, 229, 255, 0.3) !important;
        backdrop-filter: blur(10px);
        color: var(--atlas-white);
        border-radius: 8px;
        padding: 0;
        overflow: hidden;
    }
    .custom-qatar-popup .leaflet-popup-tip {
        background: rgba(2, 5, 10, 0.9) !important;
        border: 1px solid rgba(0, 229, 255, 0.3) !important;
    }
    .custom-qatar-popup .leaflet-popup-content { margin: 0; }

    .spinner-premium-wrapper {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem;
    }
    .spinner-inner-glow {
        position: absolute;
        width: 120px;
        height: 120px;
        background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
        animation: spinner-glow-pulse 2s infinite ease-in-out;
        pointer-events: none;
        border-radius: 50%;
    }
    @@keyframes spinner-glow-pulse {
        0% { transform: scale(0.8); opacity: 0.2; }
        50% { transform: scale(1.3); opacity: 0.5; }
        100% { transform: scale(0.8); opacity: 0.2; }
    }
    .animate-pulse {
        animation: pulse-text 1.8s infinite ease-in-out;
    }
    @@keyframes pulse-text {
        0% { opacity: 0.4; transform: scale(0.98); }
        50% { opacity: 1; transform: scale(1); }
        100% { opacity: 0.4; transform: scale(0.98); }
    }
    .tracking-widest { letter-spacing: 0.25em; }
    
    /* Ensure the worker drawer content is properly centered during load */
    .worker-table-wrapper {
        transition: all 0.3s ease;
    }

    /* Analytics View Styles */
    .btn-neon-tab {
        background: rgba(0, 229, 255, 0.05);
        border: 1px solid rgba(0, 229, 255, 0.2);
        color: rgba(0, 229, 255, 0.7);
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.1rem;
        border-radius: 4px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }
    .btn-neon-tab:hover, .btn-neon-tab.active {
        background: rgba(0, 229, 255, 0.15);
        color: var(--atlas-cyan);
        border-color: var(--atlas-cyan);
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    }

    .analytics-view {
        background: rgba(0, 5, 10, 0.3);
        border-radius: 8px;
    }
    .analytics-progress-track {
        height: 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 5px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.03);
    }
    .analytics-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, #008291, var(--atlas-cyan));
        border-radius: 5px;
        position: relative;
        transition: width 1s cubic-bezier(0.17, 0.85, 0.32, 1.27);
    }
    .analytics-bar-glow {
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        animation: bar-shine 3s infinite linear;
    }
    @@keyframes bar-shine {
        0% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
    }
    .analytic-kpi {
        background: rgba(0,0,0,0.3);
        padding: 5px 15px;
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.1);
    }
    .animate-fade-in {
        animation: fadeIn 0.5s ease-out;
    }
    @@keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Training Module Extensions */
    .chip-filter {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.5);
        padding: 2px 10px;
        border-radius: 4px;
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.05rem;
        transition: all 0.2s ease;
    }
    .chip-filter:hover { background: rgba(255, 255, 255, 0.1); }
    .chip-filter.active { 
        background: rgba(0, 229, 255, 0.2); 
        color: var(--atlas-cyan); 
        border-color: var(--atlas-cyan);
        box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
    }
    .chip-filter.passed.active { 
        background: rgba(0, 255, 188, 0.2); 
        color: #00ffbc; 
        border-color: #00ffbc;
        box-shadow: 0 0 8px rgba(0, 255, 188, 0.3);
    }
    .chip-filter.pending.active { 
        background: rgba(255, 126, 0, 0.2); 
        color: #ff7e00; 
        border-color: #ff7e00;
        box-shadow: 0 0 8px rgba(255, 126, 0, 0.3);
    }

    .status-badge {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
        box-shadow: 0 0 5px rgba(255,255,255,0.2);
    }
    .status-badge.passed { background: #00ffbc; box-shadow: 0 0 10px #00ffbc; }
    .status-badge.pending { background: #ff7e00; box-shadow: 0 0 10px #ff7e00; animation: badge-pulse 1.5s infinite ease-in-out; }
    
    @@keyframes badge-pulse {
        0% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.6; transform: scale(1.2); }
        100% { opacity: 1; transform: scale(1); }
    }

    .row-passed { border-left: 3px solid #00ffbc !important; background: rgba(0, 255, 188, 0.02); }
    .row-pending { border-left: 3px solid #ff7e00 !important; background: rgba(255, 126, 0, 0.02); }

    .analytics-split-bar { border-radius: 5px; overflow: hidden; }
    .bar-segment.passed { background: linear-gradient(90deg, #008291, #00ffbc); }
    .bar-segment.pending { background: linear-gradient(90deg, #ff7e00, #ffba00); }

    .text-green-neon { color: #00ffbc !important; }
    .text-orange { color: #ff7e00 !important; }

    /* Immersive Training Widget Styles */
    .training-card {
        background: radial-gradient(circle at 30% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 60%),
                    linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%) !important;
        overflow: hidden;
    }
    .training-card::before {
        content: "";
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
        background-size: 20px 20px;
        opacity: 0.5;
        pointer-events: none;
    }

    .radar-scan {
        position: absolute;
        width: 100%; height: 100%;
        border-right: 2px solid rgba(0, 229, 255, 0.15);
        background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.05));
        animation: radar-sweep 4s linear infinite;
        pointer-events: none;
    }
    @@keyframes radar-sweep {
        from { transform: translateX(-100%); }
        to { transform: translateX(200%); }
    }

    .metric-band {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 6px;
        padding: 8px 12px;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        width: 100%;
        transition: all 0.3s ease;
        backdrop-filter: blur(4px);
    }
    .metric-band:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateX(5px);
    }
    .metric-band-icon {
        font-size: 1.4rem;
        margin-right: 15px;
        width: 24px;
        text-align: center;
    }
    .metric-band-value {
        font-size: 1.25rem;
        font-weight: 900;
        margin-right: 8px;
        font-family: var(--atlas-font-sans);
    }
    .metric-band-label {
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--atlas-white);
        opacity: 0.95;
        margin-left: auto;
    }

    /* Minimal Training Widget Styles - Fills all available space */
    .metric-band-minimal {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 3px;
        padding: 3px 6px;
        display: flex;
        align-items: center;
        width: 100%;
        flex: 1;
        transition: all 0.3s ease;
        backdrop-filter: blur(4px);
        flex-wrap: nowrap;
        overflow: hidden;
        min-height: 0;
    }
    .metric-band-minimal:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateX(2px);
    }
    .metric-band-icon-minimal {
        font-size: 0.9rem;
        margin-right: 4px;
        width: 14px;
        text-align: center;
        flex-shrink: 0;
    }
    .metric-band-value-minimal {
        font-size: 0.85rem;
        font-weight: 900;
        margin-right: 3px;
        font-family: var(--atlas-font-sans);
        flex-shrink: 0;
        line-height: 1;
    }
    .metric-band-label-minimal {
        font-size: 0.5rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: var(--atlas-white);
        opacity: 0.8;
        margin-left: auto;
        flex-shrink: 0;
        white-space: nowrap;
        line-height: 1;
    }

    /* ==== New Training Card Fill Layout ==== */
    .training-card-fill {
        padding: 0 !important;
        overflow: hidden;
    }
    .training-header {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        padding: 1rem 1rem 0.5rem;
        position: relative;
        z-index: 1;
    }
    .training-content-area {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 0.5rem 1rem 0.75rem;
        position: relative;
        z-index: 1;
    }
    .training-gauge-wrapper {
        flex: 0 1 auto;
        min-width: 0;
        height: 100%;
        max-height: 100%;
        aspect-ratio: 1 / 1;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .training-gauge-wrapper svg {
        max-width: 100%;
        max-height: 100%;
        width: auto !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }
    .training-gauge-label {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        gap: 2px;
    }
    .training-gauge-percent {
        font-weight: 900;
        color: var(--atlas-white);
        font-size: clamp(1.2rem, 2.5vw, 1.9rem);
        line-height: 1;
        letter-spacing: -1.5px;
        text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    }
    .training-gauge-sublabel {
        font-weight: 700;
        color: #00ffbc;
        font-size: clamp(0.55rem, 0.85vw, 0.7rem);
        letter-spacing: 2px;
        text-transform: uppercase;
        text-shadow: 0 0 8px rgba(0, 255, 188, 0.5);
    }
    .training-metrics-column {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        gap: 5px;
        min-height: 0;
        min-width: 0;
    }
    .training-metric-row {
        flex: 1 1 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.35rem 0.65rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 4px;
        min-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    .training-metric-row:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }
    .training-metric-icon {
        font-size: 1.25rem;
        flex-shrink: 0;
        line-height: 1;
    }
    .training-metric-value {
        font-size: 1.1rem;
        font-weight: 900;
        color: var(--atlas-white);
        line-height: 1;
        font-family: var(--atlas-font-sans);
        flex-shrink: 0;
    }
    .training-metric-label {
        font-size: 0.85rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: rgba(255, 255, 255, 0.5);
        margin-left: auto;
        line-height: 1;
        white-space: nowrap;
    }
    .training-manage-btn {
        flex-shrink: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.4rem;
        background: rgba(0, 229, 255, 0.08);
        border: none;
        border-top: 1px solid rgba(0, 229, 255, 0.2);
        color: var(--atlas-white);
        padding: 0.6rem 0.75rem;
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 1;
        position: relative;
    }
    .training-manage-btn span {
        font-size: 0.85rem;
        letter-spacing: 0.12em;
    }
    .training-manage-btn i {
        font-size: 0.95rem;
    }
    .training-manage-btn:hover {
        background: rgba(0, 229, 255, 0.15);
        box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.2);
    }

    /* Tight Training Widget Styles - Compact metrics with centered gauge */
    .metric-band-tight {
        background: rgba(255, 255, 255, 0.04);
        border: 0.8px solid rgba(255, 255, 255, 0.06);
        border-radius: 2px;
        padding: 2px 5px;
        display: flex;
        align-items: center;
        width: auto;
        transition: all 0.3s ease;
        backdrop-filter: blur(4px);
        flex-wrap: nowrap;
        overflow: hidden;
        min-height: 0;
    }
    .metric-band-tight:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }
    .metric-band-icon-tight {
        font-size: 0.75rem;
        margin-right: 3px;
        width: 12px;
        text-align: center;
        flex-shrink: 0;
        line-height: 1;
    }
    .metric-band-value-tight {
        font-size: 0.75rem;
        font-weight: 900;
        margin-right: 2px;
        font-family: var(--atlas-font-sans);
        flex-shrink: 0;
        line-height: 1;
    }
    .metric-band-label-tight {
        font-size: 0.45rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--atlas-white);
        opacity: 0.75;
        flex-shrink: 0;
        white-space: nowrap;
        line-height: 1;
    }

    .btn-brushed-minimal {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--atlas-white);
        border-radius: 3px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 0.65rem;
    }
    .btn-brushed-minimal:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(0, 229, 255, 0.5);
        box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
    }

    .gauge-glow-filter {
        filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.3));
    }

    /* Training gauge: thin ring (static glow, no pulse) */
    .gauge-progress-ring {
        filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.9)) drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
        transform-origin: 50% 50%;
    }
    .gauge-outer-dashes {
        transform-origin: 50% 50%;
        animation: gauge-rotate 14s linear infinite;
    }
    @@keyframes gauge-pulse {
        0%, 100% { filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.9)) drop-shadow(0 0 10px rgba(0, 229, 255, 0.5)); }
        50%      { filter: drop-shadow(0 0 8px rgba(0, 229, 255, 1))   drop-shadow(0 0 18px rgba(0, 229, 255, 0.75)); }
    }
    @@keyframes gauge-rotate {
        from { transform: rotate(0deg); }
        to   { transform: rotate(360deg); }
    }
