/* ==========================================================================
   ISP NOC Inventory & Power Management - Modern Light Theme System
   Carrier-Grade NOC Daylight Visual Ergonomics & High-Contrast Telemetry
   Strict CSP Compliant (Zero unsafe-inline)
   ========================================================================== */

/* Smooth Theme Transitions */
html {
    transition: background-color 0.2s ease, color 0.2s ease;
}

body {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ==========================================================================
   THEME SWITCH BUTTON - Carrier-Grade Interactive Toggle Component
   ========================================================================== */

.theme-switch-control {
    background-color: #0d1527;
    border: 1px solid #334155;
    color: #cbd5e1;
    user-select: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-switch-control:hover {
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.theme-switch-track {
    width: 2.6rem;
    height: 1.4rem;
    background-color: #020617;
    border: 1px solid #475569;
    border-radius: 9999px;
    padding: 2px;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.theme-switch-thumb {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 9999px;
    background-color: #1e293b;
    border: 1px solid #06b6d4;
    color: #22d3ee;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    transform: translateX(0);
}

/* Dark Mode States (Default & html.dark) */
html:not(.light) .theme-icon-moon,
html.dark .theme-icon-moon {
    display: block;
}
html:not(.light) .theme-icon-sun,
html.dark .theme-icon-sun {
    display: none;
}
html:not(.light) .theme-label-dark,
html.dark .theme-label-dark {
    display: inline;
}
html:not(.light) .theme-label-light,
html.dark .theme-label-light {
    display: none;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES (Scoped to html.light and html[data-theme="light"])
   ========================================================================== */

html.light,
html[data-theme="light"] {
    color-scheme: light;
}

/* --- Base Body & Typography --- */
html.light body,
html[data-theme="light"] body {
    background-color: #f1f5f9 !important; /* Slate 100 */
    color: #1e293b !important; /* Slate 800 */
}

/* Text Overrides */
html.light .text-white,
html.light .text-slate-100 {
    color: #0f172a !important; /* Slate 900 */
}

html.light .text-slate-200,
html.light .text-slate-300 {
    color: #334155 !important; /* Slate 700 */
}

html.light .text-slate-400 {
    color: #64748b !important; /* Slate 500 */
}

html.light .text-slate-500 {
    color: #64748b !important; /* Slate 500 */
}

html.light .text-slate-600 {
    color: #94a3b8 !important; /* Slate 400 */
}

/* Vibrant, readable status text colors on light background */
html.light .text-cyan-400,
html.light .text-cyan-300,
html.light .text-cyan-200 {
    color: #0284c7 !important; /* Sky 600 / Deep Cyan */
}

html.light .text-emerald-400,
html.light .text-emerald-300 {
    color: #059669 !important; /* Emerald 600 */
}

html.light .text-amber-400,
html.light .text-amber-300 {
    color: #d97706 !important; /* Amber 600 */
}

html.light .text-rose-400,
html.light .text-rose-300 {
    color: #e11d48 !important; /* Rose 600 */
}

html.light .text-purple-400,
html.light .text-purple-300 {
    color: #7c3aed !important; /* Purple 600 */
}

html.light .text-blue-400 {
    color: #2563eb !important; /* Blue 600 */
}

/* Brand Text Gradient */
html.light .bg-gradient-to-r.from-white.via-slate-200.to-cyan-400 {
    background-image: linear-gradient(to right, #0f172a, #334155, #0284c7) !important;
}

/* --- Background Surfaces --- */
html.light .bg-noc-950 {
    background-color: #f8fafc !important; /* Slate 50 */
}

html.light .bg-noc-950\/50,
html.light .bg-noc-950\/60,
html.light .bg-noc-950\/70,
html.light .bg-noc-950\/80 {
    background-color: #f8fafc !important;
}

html.light .bg-noc-900 {
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
}

html.light .bg-noc-900\/60,
html.light .bg-noc-900\/90,
html.light .bg-noc-900\/98 {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

html.light .bg-noc-850,
html.light .bg-noc-850\/80 {
    background-color: #f1f5f9 !important; /* Slate 100 */
}

html.light .bg-noc-800 {
    background-color: #e2e8f0 !important; /* Slate 200 */
}

html.light .bg-noc-700 {
    background-color: #cbd5e1 !important; /* Slate 300 */
}

html.light .bg-slate-900,
html.light .bg-slate-800,
html.light .bg-slate-800\/80 {
    background-color: #f8fafc !important;
}

/* Gradient Container Overrides */
html.light .bg-gradient-to-b.from-noc-900.to-noc-950,
html.light .bg-gradient-to-b.from-noc-900.via-noc-900.to-noc-950,
html.light .bg-gradient-to-b.from-noc-900.via-noc-850.to-noc-950 {
    background-image: linear-gradient(to bottom, #ffffff, #f8fafc) !important;
}

html.light .bg-gradient-to-r.from-noc-900.via-noc-850.to-noc-900 {
    background-image: linear-gradient(to right, #ffffff, #f8fafc, #ffffff) !important;
}

html.light .bg-gradient-to-br.from-noc-900.to-noc-950 {
    background-image: linear-gradient(to bottom right, #ffffff, #f8fafc) !important;
}

html.light .bg-\[radial-gradient\(ellipse_at_top\,\_var\(--tw-gradient-stops\)\)\] {
    background-image: radial-gradient(ellipse at top, rgba(2, 132, 199, 0.08), transparent 70%) !important;
}

/* --- Borders & Dividers --- */
html.light .border-noc-800,
html.light .border-noc-800\/60,
html.light .border-noc-800\/70,
html.light .border-noc-800\/80,
html.light .border-noc-800\/90,
html.light .border-noc-700,
html.light .border-slate-800,
html.light .border-slate-800\/60,
html.light .border-slate-700 {
    border-color: #e2e8f0 !important; /* Slate 200 */
}

html.light .divide-noc-800\/60 > :not([hidden]) ~ :not([hidden]) {
    border-color: #e2e8f0 !important;
}

/* --- Global Header & Navigation --- */
html.light header {
    background-color: rgba(255, 255, 255, 0.92) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

html.light nav {
    background-color: rgba(248, 250, 252, 0.95) !important;
    border-color: #e2e8f0 !important;
}

html.light #mobile-nav-menu {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html.light nav a.bg-cyan-500\/10,
html.light #mobile-nav-menu a.bg-cyan-500\/10 {
    background-color: #e0f2fe !important; /* Sky 100 */
    border-color: #7dd3fc !important; /* Sky 300 */
    color: #0284c7 !important; /* Sky 600 */
    font-weight: 600;
}

html.light nav a:not(.bg-cyan-500\/10):hover,
html.light #mobile-nav-menu a:not(.bg-cyan-500\/10):hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Header Action Buttons */
html.light header a[href="/logout"] {
    color: #64748b !important;
}
html.light header a[href="/logout"]:hover {
    background-color: #fee2e2 !important; /* Rose 100 */
    color: #e11d48 !important; /* Rose 600 */
}

html.light .theme-toggle-btn {
    color: #64748b !important;
    background-color: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
}
html.light .theme-toggle-btn:hover {
    background-color: #e0f2fe !important;
    color: #0284c7 !important;
    border-color: #7dd3fc !important;
}

html.light .theme-switch-control {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

html.light .theme-switch-control:hover {
    border-color: #0284c7 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15) !important;
}

html.light .theme-switch-track {
    background-color: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

html.light .theme-switch-thumb {
    transform: translateX(1.15rem) !important;
    background-color: #ffffff !important;
    border-color: #fbbf24 !important;
    color: #d97706 !important;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.3) !important;
}

html.light .theme-icon-moon {
    display: none !important;
}
html.light .theme-icon-sun {
    display: block !important;
}
html.light .theme-label-dark {
    display: none !important;
}
html.light .theme-label-light {
    display: inline !important;
}

/* User Role Badge in Header */
html.light header .bg-noc-850 {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* --- Tables & Lists --- */
html.light table {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

html.light thead {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html.light thead th {
    color: #475569 !important; /* Slate 600 */
    font-weight: 600;
}

html.light tbody tr {
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background-color 0.15s ease;
}

html.light tbody tr:hover {
    background-color: #f8fafc !important;
}

html.light .table-responsive-wrapper {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* --- KPI Stat Cards & Sparkline Containers --- */
html.light .dashboard-metric-card,
html.light .grid > .bg-noc-900,
html.light .grid > .bg-noc-950,
html.light .rounded-2xl.bg-noc-900,
html.light .rounded-3xl.bg-noc-900 {
    background-image: none !important;
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03) !important;
}

/* Circular SVG Gauges & Radial Power Discs */
html.light svg circle.text-noc-800,
html.light svg circle.text-slate-800,
html.light svg circle[stroke="currentColor"] {
    color: #e2e8f0 !important;
}

html.light svg circle[fill="#080e1a"],
html.light svg circle[fill="#070c18"] {
    fill: #ffffff !important;
    stroke: #e2e8f0 !important;
    opacity: 1 !important;
}

html.light svg circle[stroke="#0d1424"],
html.light svg circle[stroke="#17223b"],
html.light svg circle[stroke="#1e293b"] {
    stroke: #e2e8f0 !important;
}

html.light svg circle[stroke="#475569"],
html.light svg circle[stroke="#0e1726"] {
    stroke: #cbd5e1 !important;
}

/* Mini Cards inside Analytics */
html.light .bg-noc-950\/80,
html.light .bg-noc-950\/70 {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* Free Reserve Pill (Positive / Nominal) */
html.light .ring-emerald-500\/20 {
    --tw-ring-color: rgba(16, 185, 129, 0.3) !important;
    background-color: #f0fdf4 !important; /* Emerald 50 */
    border-color: #bbf7d0 !important;
}
html.light .ring-emerald-500\/20 .text-emerald-400 {
    color: #059669 !important;
}

/* Free Reserve Pill (Deficit / Overload) */
html.light .ring-rose-500\/50 {
    --tw-ring-color: rgba(244, 63, 94, 0.4) !important;
    background-color: #fff1f2 !important; /* Rose 50 */
    border-color: #fecdd3 !important;
}
html.light .ring-rose-500\/50 .text-rose-400 {
    color: #e11d48 !important;
}

/* Mini Progress Bar Tracks */
html.light .bg-noc-900.rounded-full,
html.light .bg-noc-950.rounded-full {
    background-color: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

/* --- Rack Bays & Cabinet Elevation Cards --- */
html.light .bg-noc-950\/70.border-noc-800 {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

html.light .bg-noc-950\/70.border-noc-800:hover {
    border-color: #0284c7 !important;
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.1);
}

/* Mini U slots indicator in Rack cards */
html.light [data-occupied="false"] {
    background-color: #e2e8f0 !important;
}

/* Rack Action Button */
html.light button[hx-get*="/elevation"] {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}
html.light button[hx-get*="/elevation"]:hover {
    background-color: #e0f2fe !important;
    border-color: #7dd3fc !important;
    color: #0284c7 !important;
}

/* --- Form Controls & Modals --- */
html.light input:not([type="checkbox"]):not([type="radio"]),
html.light select,
html.light textarea {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html.light input::placeholder,
html.light textarea::placeholder {
    color: #94a3b8 !important; /* Slate 400 */
}

html.light input:focus,
html.light select:focus,
html.light textarea:focus {
    border-color: #0284c7 !important;
    --tw-ring-color: #0284c7 !important;
    box-shadow: 0 0 0 1px #0284c7 !important;
}

html.light label {
    color: #334155 !important;
}

/* Modal Overlay & Dialog Card */
html.light .fixed.inset-0.bg-black\/75,
html.light .fixed.inset-0.bg-black\/80 {
    background-color: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(8px) !important;
}

html.light [data-modal-card] {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    color: #1e293b !important;
}

html.light [data-modal-card] header,
html.light [data-modal-card] .border-b {
    border-color: #e2e8f0 !important;
}

html.light [data-modal-card] footer,
html.light [data-modal-card] .border-t {
    border-color: #e2e8f0 !important;
}

/* Modal Close & Action Buttons */
html.light [data-action="close-modal"] {
    color: #64748b !important;
}
html.light [data-action="close-modal"]:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Secondary / Cancel button */
html.light button[data-action="close-modal"]:not(.text-slate-400),
html.light button.bg-noc-800 {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
html.light button.bg-noc-800:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* --- 42U Graphical Rack Elevation Modal --- */
html.light .rack-elevation-rail {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

html.light .rack-slot-empty {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
}

html.light .rack-slot-u-num {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}

/* --- Status Pills & Soft Badges --- */
html.light .bg-cyan-500\/10,
html.light .bg-cyan-500\/15,
html.light .bg-cyan-500\/20 {
    background-color: #e0f2fe !important;
    border-color: #bae6fd !important;
    color: #0284c7 !important;
}

html.light .bg-emerald-500\/10,
html.light .bg-emerald-500\/20 {
    background-color: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #059669 !important;
}

html.light .bg-amber-500\/10,
html.light .bg-amber-500\/15,
html.light .bg-amber-500\/20 {
    background-color: #fefce8 !important;
    border-color: #fde047 !important;
    color: #d97706 !important;
}

html.light .bg-rose-500\/10,
html.light .bg-rose-500\/15,
html.light .bg-rose-500\/20 {
    background-color: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #e11d48 !important;
}

html.light .bg-purple-500\/10,
html.light .bg-purple-500\/15,
html.light .bg-purple-500\/20 {
    background-color: #faf5ff !important;
    border-color: #e9d5ff !important;
    color: #7c3aed !important;
}

/* --- Scrollbars & Footer --- */
html.light footer {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}

html.light footer strong {
    color: #0f172a !important;
}

html.light ::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}

html.light ::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px;
}

html.light ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

html.light .table-responsive-wrapper::-webkit-scrollbar-track {
    background: #f8fafc !important;
}

html.light .table-responsive-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
}

/* Login Page Light Theme Specifics */
html.light .bg-noc-950.flex.items-center.justify-center {
    background-color: #f1f5f9 !important;
}

/* ==========================================================================
   TIER-1 DATACENTER COCKPIT & EIA-310-E HARDWARE ELEVATION SYSTEM
   ========================================================================== */

/* --- Mission Control Top HUD Ribbon --- */
#noc-hud-ribbon {
    backdrop-filter: blur(8px);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

html.light #noc-hud-ribbon {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

html.light #noc-hud-ribbon .text-slate-300 {
    color: #0f172a !important;
}

html.light #noc-hud-ribbon .bg-noc-900 {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

html.light #noc-hud-ribbon .bg-cyan-950\/50 {
    background-color: #e0f2fe !important;
    border-color: #7dd3fc !important;
}

/* --- Enterprise Command Palette Modal --- */
#command-palette-modal .cmd-item.active,
#command-palette-modal .cmd-item:focus {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: #38bdf8 !important;
    outline: none;
}

html.light #command-palette-modal .bg-noc-900 {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}

html.light #command-palette-modal .bg-noc-950\/60,
html.light #command-palette-modal .bg-noc-950\/80 {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html.light #command-palette-modal input {
    color: #0f172a !important;
}

html.light #command-palette-modal .cmd-item {
    color: #334155 !important;
}

html.light #command-palette-modal .cmd-item:hover,
html.light #command-palette-modal .cmd-item.active {
    background-color: #e0f2fe !important;
    color: #0284c7 !important;
}

/* --- EIA-310-E Cabinet Chassis & Mounting Rails --- */
.eia-cabinet-chassis {
    background-color: #060b14;
    border: 3px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), inset 0 0 20px rgba(0, 0, 0, 0.8);
}

html.light .eia-cabinet-chassis {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15) !important;
}

.eia-cabinet-top-header {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    color: #94a3b8;
}

.eia-cabinet-bottom-header {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
    color: #94a3b8;
}

html.light .eia-cabinet-top-header,
html.light .eia-cabinet-bottom-header {
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%) !important;
    border-color: #94a3b8 !important;
    color: #334155 !important;
}

.eia-rail-post {
    background-color: #0c1322;
    border: 1px solid #1e293b;
    position: relative;
    user-select: none;
}

html.light .eia-rail-post {
    background-color: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

.eia-cage-nut {
    font-family: monospace;
    opacity: 0.6;
}

/* Rack Mounting Ears & Torx/Philips Bolt Simulation */
.eia-mounting-ear {
    width: 14px;
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    position: relative;
}

.eia-mounting-ear.left-ear {
    border-left: 1px solid #334155;
    border-radius: 2px 0 0 2px;
}

.eia-mounting-ear.right-ear {
    border-right: 1px solid #334155;
    border-radius: 0 2px 2px 0;
}

.eia-screw {
    font-size: 8px;
    color: #64748b;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.8));
    line-height: 1;
}

html.light .eia-mounting-ear {
    background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%) !important;
    border-color: #64748b !important;
}

html.light .eia-screw {
    color: #334155 !important;
}

/* --- Faceplates Design --- */
.eia-faceplate {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 1. Network: Core Router / Switch */
.faceplate-network {
    background: linear-gradient(90deg, #041b2c 0%, #08283f 50%, #041b2c 100%);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #e0f2fe;
}

html.light .faceplate-network {
    background: linear-gradient(90deg, #e0f2fe 0%, #f0f9ff 50%, #e0f2fe 100%) !important;
    border: 1px solid #0284c7 !important;
    color: #0369a1 !important;
}

/* 2. Server / Compute */
.faceplate-server {
    background: radial-gradient(circle at 50% 50%, #1e1136 0%, #0d0718 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #f3e8ff;
}

html.light .faceplate-server {
    background: linear-gradient(90deg, #faf5ff 0%, #f3e8ff 50%, #faf5ff 100%) !important;
    border: 1px solid #7c3aed !important;
    color: #6b21a8 !important;
}

/* 3. Storage SAN / NAS */
.faceplate-storage {
    background: linear-gradient(90deg, #241403 0%, #3d2105 50%, #241403 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef3c7;
}

html.light .faceplate-storage {
    background: linear-gradient(90deg, #fefce8 0%, #fef9c3 50%, #fefce8 100%) !important;
    border: 1px solid #d97706 !important;
    color: #92400e !important;
}

/* 4. Security / Firewall */
.faceplate-security {
    background: linear-gradient(90deg, #28050e 0%, #400917 50%, #28050e 100%);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #ffe4e6;
}

html.light .faceplate-security {
    background: linear-gradient(90deg, #fff1f2 0%, #ffe4e6 50%, #fff1f2 100%) !important;
    border: 1px solid #e11d48 !important;
    color: #9f1239 !important;
}

/* 5. Generic Hardware */
.faceplate-generic {
    background: linear-gradient(90deg, #111827 0%, #1f2937 50%, #111827 100%);
    border: 1px solid #475569;
    color: #f1f5f9;
}

/* 6. 1U Vented Blanking Panel */
.faceplate-blanking {
    background: repeating-linear-gradient(
        90deg,
        #0a0f1d,
        #0a0f1d 8px,
        #0e172a 8px,
        #0e172a 16px
    );
    border: 1px dashed #334155;
    color: #64748b;
}

.faceplate-blanking:hover {
    border-color: #06b6d4;
    background: #0b1a2e;
}

html.light .faceplate-blanking {
    background: repeating-linear-gradient(
        90deg,
        #f1f5f9,
        #f1f5f9 8px,
        #e2e8f0 8px,
        #e2e8f0 16px
    ) !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}

html.light .faceplate-blanking:hover {
    border-color: #0284c7 !important;
    background: #e0f2fe !important;
}

/* Status LEDs with Hardware Glow */
.eia-led {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    display: inline-block;
}

.eia-led-pwr {
    background-color: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.eia-led-act {
    background-color: #06b6d4;
    box-shadow: 0 0 6px #06b6d4;
    animation: blink-act 1.2s infinite ease-in-out;
}

@keyframes blink-act {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.85); }
}

/* SFP / QSFP Mini Port Grid Simulation */
.eia-sfp-grid {
    background-color: #040811;
    border: 1px solid #1e293b;
    padding: 2px 4px;
    border-radius: 3px;
}

.eia-sfp-port {
    width: 6px;
    height: 9px;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 1px;
    display: inline-block;
}

/* Server Drive Latch Simulation */
.eia-drive-latch {
    font-size: 8px;
    padding: 1px 4px;
    background-color: #17112b;
    border: 1px solid #4c1d95;
    border-radius: 2px;
    color: #c084fc;
    letter-spacing: 0.5px;
}

