@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ========================================================================= */
/* ULTRA-FUTURISTIC DIGITAL CYBER GLASSMORPHISM DESIGN SYSTEM               */
/* ========================================================================= */

:root {
    /* Cosmic Cyber Dark Palette */
    --bg-app: #060913;
    --bg-canvas: #090e1a;
    --bg-sidebar: rgba(4, 8, 20, 0.16);
    --bg-card: rgba(6, 12, 28, 0.12);
    --bg-card-hover: rgba(12, 22, 48, 0.35);
    --bg-card-active: rgba(28, 41, 71, 0.9);
    --bg-input: rgba(7, 11, 21, 0.75);
    --bg-input-focus: rgba(12, 18, 35, 0.95);
    --bg-dropdown: rgba(11, 17, 31, 0.95);

    /* Electric Neon Accents */
    --accent-purple: #8b5cf6;
    --accent-purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --accent-purple-glow: rgba(139, 92, 246, 0.45);
    --accent-purple-soft: rgba(139, 92, 246, 0.15);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.45);
    --accent-cyan-soft: rgba(6, 182, 212, 0.15);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.45);
    --accent-emerald-soft: rgba(16, 185, 129, 0.15);
    --accent-amber: #f59e0b;
    --accent-amber-glow: rgba(245, 158, 11, 0.45);
    --accent-rose: #ec4899;
    --accent-rose-glow: rgba(236, 72, 153, 0.45);

    /* High-End Gradients */
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #4f46e5 100%);
    --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-amber: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-rose: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    --gradient-cyber: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* Translucent Borders & Highlights */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-highlight: rgba(255, 255, 255, 0.16);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-card: rgba(139, 92, 246, 0.22);
    --border-card-hover: rgba(139, 92, 246, 0.55);

    /* Typography Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-highlight: #c4b5fd;
    --text-cyan: #38bdf8;
    --text-emerald: #34d399;

    /* Shadow & Glow Tokens */
    --shadow-glass: 0 10px 30px 0 rgba(0, 0, 0, 0.45), inset 0 1px 1px 0 rgba(255, 255, 255, 0.12);
    --shadow-glass-hover: 0 16px 40px 0 rgba(0, 0, 0, 0.65), 0 0 24px rgba(139, 92, 246, 0.25), inset 0 1px 2px 0 rgba(255, 255, 255, 0.2);

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;
}

/* ========================================================================= */
/* GLOBAL RESET & FREEZED CONTAINER ARCHITECTURE                            */
/* ========================================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

code, pre, .mono-text {
    font-family: 'JetBrains Mono', monospace !important;
}

html, body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #030712;
    color: var(--text-primary);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.20) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.22) 0%, transparent 45%),
        linear-gradient(180deg, rgba(3, 7, 18, 0.22) 0%, rgba(6, 11, 26, 0.38) 100%),
        url('/images/isp_noc_bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ========================================================================= */
/* APP LAYOUT ARCHITECTURE                                                  */
/* ========================================================================= */

.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ========================================================================= */
/* SIDEBAR (COMPACT CYBER GLASS)                                             */
/* ========================================================================= */

.sidebar {
    width: 240px;
    min-width: 240px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(8, 12, 23, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid var(--border-subtle);
    z-index: 100;
}

.brand-section {
    height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.22);
    flex-shrink: 0;
    box-sizing: border-box;
}

.brand-logo {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-xs);
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.brand-title {
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.brand-title span {
    color: var(--accent-purple);
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-group-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 6px 10px 2px 10px;
}

.nav-item-custom {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5.5px 9px;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 500;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.nav-item-custom:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

.nav-item-custom.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.04));
    border-left: 3px solid var(--accent-purple);
    font-weight: 700;
    box-shadow: inset 0 0 14px rgba(139, 92, 246, 0.15);
}

.nav-item-custom svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.nav-item-custom.active svg {
    color: var(--accent-purple);
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.8));
}

.nav-badge {
    margin-left: auto;
    font-size: 9.5px;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: 700;
}

.nav-badge-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.nav-badge-danger {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* COMPACT UNIFIED SIDEBAR FOOTER (ALIGNED WITH STATUS FOOTER) */
.sidebar-footer-compact {
    height: 44px;
    padding: 0 10px;
    border-top: 1px solid rgba(139, 92, 246, 0.25);
    background: rgba(8, 12, 23, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
}

.sidebar-footer-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.5) 50%, rgba(16, 185, 129, 0.5) 100%);
    pointer-events: none;
}

.user-branch-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.user-branch-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.2);
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.user-avatar-mini {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gradient-purple);
    color: #fff;
    font-weight: 800;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.avatar-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    border: 1.5px solid #080c17;
    box-shadow: 0 0 4px #10b981;
}

.user-meta-compact {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.user-name-compact {
    font-size: 11.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.branch-tag-compact {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9.5px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 1px 4px;
    border-radius: 3px;
    width: fit-content;
    transition: all 0.15s ease;
}

.branch-tag-compact:hover {
    background: rgba(6, 182, 212, 0.25);
    border-color: #06b6d4;
    color: #fff;
}

.branch-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #06b6d4;
}

/* ========================================================================= */
/* MAIN WRAPPER (FREEZED TOPBAR & FOOTER, SCROLLABLE BODY)                   */
/* ========================================================================= */

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-width: 0;
    overflow: hidden;
}

/* COMPACT NEON GLASSMORPHIC TOPBAR HEADER */
.topbar-compact {
    flex-shrink: 0;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(8, 12, 23, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.22);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(139, 92, 246, 0.1);
    z-index: 90;
    position: relative;
    box-sizing: border-box;
}

.topbar-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.5) 30%, rgba(6, 182, 212, 0.5) 70%, transparent 100%);
    pointer-events: none;
}

.topbar-search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 5px 12px;
    width: 360px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-search-container:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

.search-icon-pos {
    color: #8b5cf6;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.6));
}

.topbar-search-container input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 11.5px;
    width: 100%;
    cursor: pointer;
}

.topbar-search-container input::placeholder {
    color: var(--text-muted);
}

.search-kbd {
    font-size: 9.5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: monospace;
    flex-shrink: 0;
}

/* Right Side Telemetry & Bell */
.topbar-right-telemetry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.telemetry-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    font-size: 10.5px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.chip-glow-emerald {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.chip-glow-cyan {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #a5f3fc;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.telemetry-pulse-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseGlow 1.8s infinite;
}

.dot-emerald {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.dot-cyan {
    background: #06b6d4;
    box-shadow: 0 0 6px #06b6d4;
}

.telemetry-text {
    font-size: 10.5px;
    color: var(--text-secondary);
}

.telemetry-text strong {
    color: #ffffff;
    font-weight: 700;
}

.topbar-bell-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.topbar-bell-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}

.bell-neon-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ec4899;
    box-shadow: 0 0 8px #ec4899;
    animation: pulseGlow 1.6s infinite;
}

/* SCROLLABLE MIDDLE BODY (PERFECT FULL VIEWPORT FIT) */
.content-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 12px 18px 16px 18px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

/* FREEZED TELEMETRY STATUS FOOTER (VIBRANT CYBER GLASS) */
.status-footer {
    flex-shrink: 0;
    height: 44px;
    padding: 0 20px;
    background: rgba(8, 12, 23, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(139, 92, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    z-index: 100;
    position: relative;
    box-sizing: border-box;
}

.status-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.5) 20%, rgba(139, 92, 246, 0.5) 60%, transparent 100%);
    pointer-events: none;
}

.footer-stats-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.footer-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 1.6s infinite;
}

.footer-stat-label {
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 500;
}

.footer-badge-green {
    font-size: 10px;
    font-weight: 700;
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 1px 6px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.footer-val-cyan {
    color: #38bdf8;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

.footer-val-purple {
    color: #c084fc;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(192, 132, 252, 0.4);
}

.footer-val-white {
    color: #ffffff;
    font-weight: 700;
}

.footer-time-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.15);
    font-size: 10px;
}

/* ========================================================================= */
/* DASHBOARD METRICS 5-CARD ROW (EXPANDED & STUNNING)                       */
/* ========================================================================= */

.metrics-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
    width: 100%;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-glass);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 104px;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    opacity: 0.7;
    pointer-events: none;
}

.metric-card:hover {
    transform: translateY(-2.5px);
    background: var(--bg-card-hover);
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-glass-hover);
}

.metric-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.metric-title {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.metric-icon-box {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon-box svg {
    width: 14px;
    height: 14px;
}

.metric-icon-purple {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.25);
}

.metric-icon-cyan {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #67e8f9;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.metric-icon-emerald {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.metric-icon-amber {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.metric-icon-pink {
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.35);
    color: #fbcfe8;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.25);
}

.metric-value {
    font-size: 19.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 2px 0 3px 0;
}

.metric-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
}

.trend-indicator-up {
    font-size: 10px;
    font-weight: 700;
    color: #10b981;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.trend-indicator-down {
    font-size: 10px;
    font-weight: 700;
    color: #ec4899;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.metric-sparkline-canvas {
    width: 68px;
    height: 22px;
    display: block;
    overflow: visible;
    flex-shrink: 0;
}

/* ========================================================================= */
/* MIDDLE & BOTTOM 3-COLUMN GRIDS (SINGLE SCREEN FIT)                        */
/* ========================================================================= */

.grid-middle-3 {
    display: grid;
    grid-template-columns: 1.85fr 1.15fr 1fr;
    gap: 10px;
    margin-bottom: 0;
    width: 100%;
    flex: 1.1;
    min-height: 210px;
}

.grid-bottom-3 {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 1.4fr;
    gap: 10px;
    margin-bottom: 0;
    width: 100%;
    align-items: stretch;
    flex: 1;
    min-height: 190px;
}

.grid-bottom-3 > * {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.grid-bottom-3 .glass-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.plans-scroll-area::-webkit-scrollbar {
    width: 4px;
}
.plans-scroll-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.plans-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 4px;
}
.plans-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}
.app-layout.light-theme .plan-label-text {
    color: #0f172a !important;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    box-shadow: var(--shadow-glass);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
    opacity: 0.6;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-glass-hover);
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.card-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* ========================================================================= */
/* SERVER HEALTH STACK (COMPACT 3D ISOMETRIC)                                */
/* ========================================================================= */

.server-health-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}

.server-node-bar {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.server-node-bar:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.4);
}

.node-name-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.node-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: pulseGlow 1.8s infinite;
}

.node-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}

.node-progress-fill-cyan {
    height: 100%;
    background: var(--gradient-cyan);
    border-radius: 2px;
}

.node-progress-fill-purple {
    height: 100%;
    background: var(--gradient-purple);
    border-radius: 2px;
}

/* ========================================================================= */
/* QUICK ACTIONS GRID & DASHBOARD TILES                                      */
/* ========================================================================= */

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

.quick-action-btn span {
    font-size: 11.5px;
    font-weight: 600;
    color: #ffffff;
}

/* ========================================================================= */
/* SCROLLBAR CYBER STYLING                                                   */
/* ========================================================================= */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(7, 10, 19, 0.6);
    backdrop-filter: blur(8px);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #06b6d4);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a78bfa, #22d3ee);
}

/* ========================================================================= */
/* GLASSMORPHIC CARDS & PANELS                                               */
/* ========================================================================= */

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-glass);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
    opacity: 0.6;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-3px);
    background: var(--bg-card-hover);
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-glass-hover);
}

/* ========================================================================= */
/* BUTTONS & NEON INTERACTIONS                                               */
/* ========================================================================= */

.btn-primary-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient-purple);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(139, 92, 246, 0.6), 0 0 18px rgba(139, 92, 246, 0.4);
}

.btn-primary-neon:active {
    transform: translateY(0) scale(0.98);
}

.btn-ghost-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ghost-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.icon-btn-ghost {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn-ghost:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

/* ========================================================================= */
/* FORM INPUTS & SELECTS                                                     */
/* ========================================================================= */

.form-group-custom {
    margin-bottom: 14px;
}

.form-group-custom label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input-custom {
    width: 100%;
    height: 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-glass-highlight);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.form-input-custom:focus {
    background: var(--bg-input-focus);
    border-color: var(--accent-purple);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.35), inset 0 1px 2px rgba(0,0,0,0.5);
}

.form-input-custom::placeholder {
    color: var(--text-muted);
}

/* ========================================================================= */
/* TABLES & ROWS HOVER INTERACTIONS                                          */
/* ========================================================================= */

table {
    width: 100%;
    border-collapse: collapse;
}

table thead tr {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.18s ease;
    position: relative;
}

table tbody tr:hover {
    background: rgba(139, 92, 246, 0.07);
    box-shadow: inset 3px 0 0 0 var(--accent-purple);
}

table tbody td {
    padding: 13px 16px;
    vertical-align: middle;
}

/* ========================================================================= */
/* STATUS PILL BADGES WITH NEON GLOW                                         */
/* ========================================================================= */

.badge-active {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.badge-suspended {
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.35);
    color: #fbcfe8;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #67e8f9;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

/* Breathing Pulse Animation */
.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 1.8s infinite;
}

.dot-green {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.dot-pink {
    background: #ec4899;
    box-shadow: 0 0 8px #ec4899;
}

.dot-amber {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.75; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.75; }
}

/* ========================================================================= */
/* MODALS & DIALOGS (FROZEN HEADER/FOOTER, SCROLLABLE BODY)                  */
/* ========================================================================= */

.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 7, 15, 0.82);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-dialog-custom {
    background: #0d1424;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.25);
    width: 90vw;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    position: relative;
    animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog-custom.modal-lg,
.modal-dialog-fullscreen-stretch {
    width: 92vw;
    max-width: 1200px;
    height: 84vh;
    max-height: 850px;
}

.modal-header-custom,
.modal-header-fixed {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(13, 20, 36, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    margin-bottom: 0;
}

.modal-header-custom h3,
.modal-header-fixed h3 {
    font-size: 17.5px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.modal-body-scrollable,
.modal-dialog-custom > form {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.modal-footer-custom,
.modal-footer-fixed {
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(9, 14, 26, 0.98);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    margin-top: auto;
}

.modal-dialog-custom table thead {
    position: sticky;
    top: 0;
    background: #090e1a;
    z-index: 10;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    border-radius: var(--radius-xs);
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ========================================================================= */
/* SMART ACTION CHIPS                                                        */
/* ========================================================================= */

.smart-tab-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.smart-tab-chip:hover {
    transform: translateY(-2px);
}

.chip-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
}

.chip-amber {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fde68a;
}
.chip-amber:hover {
    background: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}

.chip-rose {
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #fbcfe8;
}
.chip-rose:hover {
    background: rgba(236, 72, 153, 0.3);
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.4);
}

.chip-emerald {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}
.chip-emerald:hover {
    background: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.chip-purple {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
}
.chip-purple:hover {
    background: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

/* ========================================================================= */
/* DIGITAL GLASSMORPHIC PAGE SYSTEM (RADIUS, HOTSPOT, ETC.)                 */
/* ========================================================================= */

.page-container-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.page-header-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2px;
}

.page-header-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.4px;
    margin: 0;
}

.page-header-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.cyber-toast-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-sm);
    color: #a7f3d0;
    font-size: 11.5px;
    font-weight: 600;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
    animation: fadeIn 0.2s ease;
}

/* Compact Cyber Daemon Cards */
.compact-daemon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.compact-daemon-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-glass);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.compact-daemon-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-card-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glass-hover);
}

.daemon-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.daemon-icon-box {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.daemon-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.daemon-val {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin-top: 1px;
}

.daemon-badge-emerald {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
}

.daemon-badge-cyan {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
    color: #a5f3fc;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
}

.daemon-badge-purple {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
}

/* Digital Glassmorphic Table Container */
.glass-table-container {
    background: var(--bg-card);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glass-table-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.table-counter-chip {
    font-size: 10px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 1px 7px;
    border-radius: 10px;
}

.table-scroll-wrap {
    overflow-x: auto;
    max-height: 420px;
    overflow-y: auto;
}

.cyber-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 12px;
}

.cyber-data-table thead tr {
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.cyber-data-table th {
    padding: 9px 14px;
}

.cyber-data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.15s ease;
}

.cyber-data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.cyber-data-table td {
    padding: 9px 14px;
}

.cell-mono-purple {
    font-family: 'JetBrains Mono', monospace;
    color: #c4b5fd;
    font-size: 11.5px;
    font-weight: 600;
}

.cell-mono-cyan {
    font-family: 'JetBrains Mono', monospace;
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 600;
}

.cell-mono-muted {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    font-size: 11px;
}

.btn-coa-disconnect {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.35);
    color: #f472b6;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-coa-disconnect:hover {
    background: rgba(236, 72, 153, 0.28);
    border-color: #ec4899;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
    transform: scale(1.02);
}

.badge-plan-cyan {
    font-size: 10.5px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 2px 7px;
    border-radius: 4px;
}

/* ========================================================================= */
/* THEME TOGGLE BUTTON STYLES                                               */
/* ========================================================================= */

.topbar-theme-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topbar-theme-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}

/* ========================================================================= */
/* COMPREHENSIVE LIGHT THEME ENGINE (HIGH-END MODERN GLASS)                 */
/* ========================================================================= */

.light-theme {
    --bg-app: #f1f5f9;
    --bg-canvas: #f8fafc;
    --bg-sidebar: rgba(255, 255, 255, 0.95);
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #ffffff;
    --bg-card-active: #f8fafc;
    --bg-input: #f8fafc;
    --bg-input-focus: #ffffff;
    --bg-dropdown: #ffffff;

    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glass-highlight: rgba(0, 0, 0, 0.12);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-card: rgba(139, 92, 246, 0.3);
    --border-card-hover: rgba(139, 92, 246, 0.6);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-highlight: #7c3aed;
    --text-cyan: #0284c7;
    --text-emerald: #059669;

    --shadow-glass: 0 4px 20px 0 rgba(0, 0, 0, 0.06), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
    --shadow-glass-hover: 0 10px 30px 0 rgba(139, 92, 246, 0.15), inset 0 1px 2px 0 rgba(255, 255, 255, 1);
}

.light-theme {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%) !important;
}

.light-theme .sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.light-theme .brand-title {
    color: #0f172a;
}

.light-theme .topbar-compact {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

.light-theme .status-footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #475569;
}

.light-theme .sidebar-footer-compact {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.light-theme .user-name-compact {
    color: #0f172a;
}

.light-theme .user-branch-pill {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-theme .topbar-search-container {
    background: rgba(0, 0, 0, 0.035);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.light-theme .topbar-search-container input {
    color: #0f172a;
}

.light-theme .topbar-search-container input::placeholder {
    color: #94a3b8;
}

.light-theme .topbar-bell-btn,
.light-theme .topbar-theme-btn {
    background: rgba(0, 0, 0, 0.035);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #475569;
}

.light-theme .glass-card,
.light-theme .table-card-container,
.light-theme .stat-pill,
.light-theme .account-card,
.light-theme .router-glass-card,
.light-theme .setting-module-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.light-theme .stat-pill:hover,
.light-theme .account-card:hover,
.light-theme .router-glass-card:hover,
.light-theme .setting-module-card:hover {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
}

.light-theme .compact-table thead {
    background: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.light-theme .compact-table th {
    color: #64748b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.light-theme .compact-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .compact-table tbody tr:hover td {
    background: rgba(139, 92, 246, 0.04);
}

.light-theme .table-scroll-area::-webkit-scrollbar-track,
.light-theme .sidebar-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
}

.light-theme .table-scroll-area::-webkit-scrollbar-thumb,
.light-theme .sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
}

.light-theme .sub-name,
.light-theme .page-title-compact h2,
.light-theme .text-white,
.light-theme .module-title,
.light-theme .actor-name,
.light-theme .account-name,
.light-theme .router-title,
.light-theme .balance-value {
    color: #0f172a !important;
}

.light-theme .table-toolbar-compact {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.light-theme .search-input-wrapper-compact {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .search-input-wrapper-compact input {
    color: #0f172a;
}

.light-theme .btn-ghost-compact,
.light-theme .btn-ghost-custom,
.light-theme .act-btn-icon,
.light-theme .act-btn-router,
.light-theme .act-btn-acc,
.light-theme .btn-config-pill {
    background: rgba(0, 0, 0, 0.035);
    border-color: rgba(0, 0, 0, 0.1);
    color: #475569;
}

.light-theme .btn-ghost-compact:hover,
.light-theme .btn-ghost-custom:hover,
.light-theme .act-btn-icon:hover,
.light-theme .act-btn-router:hover,
.light-theme .act-btn-acc:hover {
    background: rgba(139, 92, 246, 0.08);
    color: #7c3aed;
    border-color: #8b5cf6;
}

.light-theme .nav-item-custom {
    color: #475569;
}

.light-theme .nav-item-custom:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.04);
}

.light-theme .nav-item-custom.active {
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.12);
    box-shadow: inset 0 0 14px rgba(139, 92, 246, 0.1);
}

.light-theme .modal-dialog-custom {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    color: #0f172a;
}

.light-theme .modal-header-custom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.light-theme .modal-header-custom h3 {
    color: #0f172a;
}

.light-theme .form-input-custom {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.light-theme .form-input-custom:focus {
    background: #ffffff;
    border-color: #8b5cf6;
}

.light-theme .form-group-custom label {
    color: #475569;
}

.light-theme .module-preview-list {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.light-theme .select-period-compact {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.light-theme .progress-bar-bg {
    background: rgba(0, 0, 0, 0.08);
}


/* ========================================================================= */
/* UNIVERSAL LIQUID SCENIC GLASSMORPHISM OVERLAYS                            */
/* ========================================================================= */

.sidebar {
    background: rgba(6, 11, 26, 0.75) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.topbar-compact {
    background: rgba(6, 11, 26, 0.72) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.status-footer {
    background: rgba(6, 11, 26, 0.80) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.metric-card,
.glass-card,
.setting-module-card,
.table-card-container,
.account-card,
.router-glass-card,
.stat-pill,
.chart-card-container {
    background: rgba(10, 18, 38, 0.65) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

.metric-card:hover,
.glass-card:hover,
.setting-module-card:hover,
.account-card:hover,
.router-glass-card:hover,
.stat-pill:hover {
    background: rgba(16, 26, 52, 0.85) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 22px rgba(139, 92, 246, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
}


/* ========================================================================= */
/* CRYSTAL-CLEAR LIQUID FROSTED GLASSMORPHISM ENGINE                         */
/* ========================================================================= */

.sidebar {
    background: rgba(6, 12, 28, 0.45) !important;
    backdrop-filter: blur(16px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(190%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3) !important;
}

.topbar-compact {
    background: rgba(6, 12, 28, 0.42) !important;
    backdrop-filter: blur(16px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(190%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.status-footer {
    background: rgba(6, 12, 28, 0.55) !important;
    backdrop-filter: blur(16px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(190%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.glass-card,
.metric-card,
.stat-pill,
.stat-pill-compact,
.table-card-container,
.account-card,
.router-glass-card,
.setting-module-card,
.table-toolbar-compact,
.reset-panel-container {
    background: rgba(10, 18, 38, 0.42) !important;
    backdrop-filter: blur(16px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

.glass-card:hover,
.metric-card:hover,
.stat-pill:hover,
.account-card:hover,
.router-glass-card:hover,
.setting-module-card:hover {
    background: rgba(16, 26, 52, 0.65) !important;
    border-color: rgba(139, 92, 246, 0.55) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 20px rgba(139, 92, 246, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

.compact-table thead {
    background: rgba(8, 14, 30, 0.75) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.compact-table tbody tr:hover td {
    background: rgba(139, 92, 246, 0.12) !important;
}

.modal-dialog-custom {
    background: rgba(8, 14, 30, 0.85) !important;
    backdrop-filter: blur(28px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 35px rgba(139, 92, 246, 0.25) !important;
}


/* ========================================================================= */
/* PURE CRYSTAL-CLEAR OPTICAL GLASS (NO BLIND FOGGY OPAQUENESS)              */
/* ========================================================================= */

.sidebar {
    background: rgba(6, 11, 26, 0.32) !important;
    backdrop-filter: blur(8px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(190%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.topbar-compact {
    background: rgba(6, 11, 26, 0.28) !important;
    backdrop-filter: blur(8px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(190%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.status-footer {
    background: rgba(6, 11, 26, 0.40) !important;
    backdrop-filter: blur(8px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(190%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.glass-card,
.metric-card,
.stat-pill,
.stat-pill-compact,
.table-card-container,
.account-card,
.router-glass-card,
.setting-module-card,
.table-toolbar-compact,
.reset-panel-container,
.chart-card-container {
    background: rgba(8, 14, 32, 0.24) !important;
    backdrop-filter: blur(8px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

.glass-card:hover,
.metric-card:hover,
.stat-pill:hover,
.account-card:hover,
.router-glass-card:hover,
.setting-module-card:hover {
    background: rgba(12, 22, 48, 0.45) !important;
    border-color: rgba(139, 92, 246, 0.6) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.35) !important;
}

.compact-table thead {
    background: rgba(6, 11, 24, 0.55) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.compact-table tbody tr:hover td {
    background: rgba(139, 92, 246, 0.16) !important;
}


/* ========================================================================= */
/* CRITICAL PRIORITY: PURE CRISP LIGHT THEME (NO DARK SHADING OVERLAYS)      */
/* ========================================================================= */

.light-theme {
    background-color: #f8fafc !important;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
        linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%) !important;
    color: #0f172a !important;
}

.light-theme .sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.03) !important;
}

.light-theme .topbar-compact {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

.light-theme .status-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.light-theme .sidebar-footer-compact {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

.light-theme .user-name-compact {
    color: #0f172a !important;
}

.light-theme .glass-card,
.light-theme .metric-card,
.light-theme .stat-pill,
.light-theme .stat-pill-compact,
.light-theme .table-card-container,
.light-theme .account-card,
.light-theme .router-glass-card,
.light-theme .setting-module-card,
.light-theme .reset-panel-container,
.light-theme .chart-card-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

.light-theme .stat-pill:hover,
.light-theme .metric-card:hover,
.light-theme .glass-card:hover,
.light-theme .account-card:hover,
.light-theme .router-glass-card:hover,
.light-theme .setting-module-card:hover {
    background: #ffffff !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.12) !important;
}

.light-theme .table-toolbar-compact {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

.light-theme .compact-table thead {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .compact-table th {
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f1f5f9 !important;
}

.light-theme .compact-table td {
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.light-theme .compact-table tbody tr:hover td {
    background: rgba(139, 92, 246, 0.05) !important;
}

.light-theme .search-input-wrapper-compact {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

.light-theme .search-input-wrapper-compact input {
    color: #0f172a !important;
}

.light-theme .tab-btn-compact {
    color: #64748b !important;
}

.light-theme .tab-btn-compact:hover {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

.light-theme .tab-btn-compact.active {
    background: var(--gradient-purple) !important;
    color: #ffffff !important;
}

.light-theme .sub-name,
.light-theme .page-title-compact h2,
.light-theme .text-white,
.light-theme .module-title,
.light-theme .actor-name,
.light-theme .account-name,
.light-theme .router-title,
.light-theme .balance-value,
.light-theme .metric-value,
.light-theme .stat-pill-val,
.light-theme strong {
    color: #0f172a !important;
}

.light-theme .stat-pill-label,
.light-theme .page-subtitle-compact,
.light-theme .metric-title {
    color: #64748b !important;
}

.light-theme .btn-ghost-compact,
.light-theme .btn-ghost-custom,
.light-theme .act-btn-icon,
.light-theme .act-btn-router,
.light-theme .act-btn-acc,
.light-theme .btn-config-pill {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

.light-theme .btn-ghost-compact:hover,
.light-theme .btn-ghost-custom:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #8b5cf6 !important;
}

.light-theme .modal-dialog-custom {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18) !important;
    color: #0f172a !important;
}

.light-theme .modal-header-custom {
    border-bottom: 1px solid #e2e8f0 !important;
}

.light-theme .modal-header-custom h3 {
    color: #0f172a !important;
}

.light-theme .form-input-custom {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.light-theme .form-group-custom label {
    color: #475569 !important;
}

.light-theme .telemetry-chip {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.light-theme .telemetry-text {
    color: #475569 !important;
}

.light-theme .telemetry-text strong {
    color: #0f172a !important;
}

.light-theme .nav-item-custom {
    color: #475569 !important;
}

.light-theme .nav-item-custom:hover {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

.light-theme .nav-item-custom.active {
    color: #7c3aed !important;
    background: rgba(139, 92, 246, 0.12) !important;
}


/* ========================================================================= */
/* DYNAMIC CARD STYLE ENGINE (GLASSY ? VS SOLID NORMAL ??)                   */
/* ========================================================================= */

/* --- SOLID NORMAL MODE (CLEAN, FLAT, ZERO DISTRACTION, OPAQUE) --- */
.app-layout.style-solid:not(.light-theme) {
    background-color: #060a14 !important;
    background-image: linear-gradient(180deg, #060a14 0%, #090e1f 100%) !important;
}

.app-layout.style-solid:not(.light-theme) .sidebar {
    background: #090e1f !important;
    backdrop-filter: none !important;
    border-right: 1px solid #1e293b !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4) !important;
}

.app-layout.style-solid:not(.light-theme) .topbar-compact {
    background: #090e1f !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid #1e293b !important;
}

.app-layout.style-solid:not(.light-theme) .status-footer {
    background: #090e1f !important;
    backdrop-filter: none !important;
    border-top: 1px solid #1e293b !important;
}

.app-layout.style-solid:not(.light-theme) .glass-card,
.app-layout.style-solid:not(.light-theme) .metric-card,
.app-layout.style-solid:not(.light-theme) .stat-pill,
.app-layout.style-solid:not(.light-theme) .stat-pill-compact,
.app-layout.style-solid:not(.light-theme) .table-card-container,
.app-layout.style-solid:not(.light-theme) .account-card,
.app-layout.style-solid:not(.light-theme) .router-glass-card,
.app-layout.style-solid:not(.light-theme) .setting-module-card,
.app-layout.style-solid:not(.light-theme) .reset-panel-container,
.app-layout.style-solid:not(.light-theme) .chart-card-container {
    background: #0d152a !important;
    backdrop-filter: none !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.app-layout.style-solid:not(.light-theme) .stat-pill:hover,
.app-layout.style-solid:not(.light-theme) .metric-card:hover,
.app-layout.style-solid:not(.light-theme) .glass-card:hover,
.app-layout.style-solid:not(.light-theme) .account-card:hover,
.app-layout.style-solid:not(.light-theme) .router-glass-card:hover,
.app-layout.style-solid:not(.light-theme) .setting-module-card:hover {
    background: #131d38 !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}

.app-layout.style-solid:not(.light-theme) .table-toolbar-compact {
    background: #0b1122 !important;
    border: 1px solid #1e293b !important;
}

.app-layout.style-solid:not(.light-theme) .compact-table thead {
    background: #080d1a !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid #1e293b !important;
}

.app-layout.style-solid:not(.light-theme) .compact-table th {
    background: #080d1a !important;
    border-bottom: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}

.app-layout.style-solid:not(.light-theme) .compact-table td {
    border-bottom: 1px solid #141f36 !important;
}

.app-layout.style-solid:not(.light-theme) .compact-table tbody tr:hover td {
    background: rgba(139, 92, 246, 0.1) !important;
}

.app-layout.style-solid:not(.light-theme) .search-input-wrapper-compact {
    background: #080d1a !important;
    border: 1px solid #1e293b !important;
}

/* --- GLASSY MODE (CRYSTAL CLEAR LIQUID GLASS & BACKGROUND) --- */
.app-layout.style-glass:not(.light-theme) {
    background-color: #030712 !important;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.20) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.22) 0%, transparent 45%),
        linear-gradient(180deg, rgba(3, 7, 18, 0.22) 0%, rgba(6, 11, 26, 0.38) 100%),
        url('/images/isp_noc_bg.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.app-layout.style-glass:not(.light-theme) .sidebar {
    background: rgba(6, 11, 26, 0.32) !important;
    backdrop-filter: blur(8px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(190%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.app-layout.style-glass:not(.light-theme) .topbar-compact {
    background: rgba(6, 11, 26, 0.28) !important;
    backdrop-filter: blur(8px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(190%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.app-layout.style-glass:not(.light-theme) .glass-card,
.app-layout.style-glass:not(.light-theme) .metric-card,
.app-layout.style-glass:not(.light-theme) .stat-pill,
.app-layout.style-glass:not(.light-theme) .stat-pill-compact,
.app-layout.style-glass:not(.light-theme) .table-card-container,
.app-layout.style-glass:not(.light-theme) .account-card,
.app-layout.style-glass:not(.light-theme) .router-glass-card,
.app-layout.style-glass:not(.light-theme) .setting-module-card,
.app-layout.style-glass:not(.light-theme) .reset-panel-container,
.app-layout.style-glass:not(.light-theme) .chart-card-container {
    background: rgba(8, 14, 32, 0.24) !important;
    backdrop-filter: blur(8px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}


/* ========================================================================= */
/* ULTRA-TRANSPARENT SHEER GLASS (MAXIMUM BACKGROUND VISIBILITY)             */
/* ========================================================================= */

.app-layout.style-glass:not(.light-theme) .sidebar,
.app-layout:not(.light-theme) .sidebar {
    background: rgba(3, 7, 18, 0.16) !important;
    backdrop-filter: blur(4px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(4px) saturate(180%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.2) !important;
}

.app-layout.style-glass:not(.light-theme) .topbar-compact,
.app-layout:not(.light-theme) .topbar-compact {
    background: rgba(3, 7, 18, 0.12) !important;
    backdrop-filter: blur(4px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(4px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.app-layout.style-glass:not(.light-theme) .status-footer,
.app-layout:not(.light-theme) .status-footer {
    background: rgba(3, 7, 18, 0.25) !important;
    backdrop-filter: blur(4px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(4px) saturate(180%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.app-layout.style-glass:not(.light-theme) .glass-card,
.app-layout.style-glass:not(.light-theme) .metric-card,
.app-layout.style-glass:not(.light-theme) .stat-pill,
.app-layout.style-glass:not(.light-theme) .stat-pill-compact,
.app-layout.style-glass:not(.light-theme) .table-card-container,
.app-layout.style-glass:not(.light-theme) .account-card,
.app-layout.style-glass:not(.light-theme) .router-glass-card,
.app-layout.style-glass:not(.light-theme) .setting-module-card,
.app-layout.style-glass:not(.light-theme) .reset-panel-container,
.app-layout.style-glass:not(.light-theme) .chart-card-container,
.app-layout.style-glass:not(.light-theme) .quick-btn-item,
.app-layout:not(.light-theme) .glass-card,
.app-layout:not(.light-theme) .metric-card,
.app-layout:not(.light-theme) .table-card-container {
    background: rgba(5, 10, 24, 0.12) !important;
    backdrop-filter: blur(4px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(4px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

.app-layout.style-glass:not(.light-theme) .glass-card:hover,
.app-layout.style-glass:not(.light-theme) .metric-card:hover,
.app-layout.style-glass:not(.light-theme) .stat-pill:hover,
.app-layout.style-glass:not(.light-theme) .account-card:hover,
.app-layout.style-glass:not(.light-theme) .router-glass-card:hover,
.app-layout.style-glass:not(.light-theme) .setting-module-card:hover,
.app-layout:not(.light-theme) .glass-card:hover,
.app-layout:not(.light-theme) .metric-card:hover {
    background: rgba(12, 22, 48, 0.32) !important;
    border-color: rgba(139, 92, 246, 0.55) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

.app-layout.style-glass:not(.light-theme) .table-toolbar-compact,
.app-layout:not(.light-theme) .table-toolbar-compact {
    background: rgba(4, 8, 20, 0.14) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.app-layout.style-glass:not(.light-theme) .compact-table thead,
.app-layout:not(.light-theme) .compact-table thead {
    background: rgba(4, 8, 20, 0.35) !important;
    backdrop-filter: blur(4px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}


/* ========================================================================= */
/* DYNAMIC REALTIME GLASS CUSTOMIZER HOOKS                                   */
/* ========================================================================= */

.app-layout.style-glass:not(.light-theme) .sidebar,
.app-layout:not(.light-theme) .sidebar {
    background: var(--dynamic-sidebar-bg, rgba(3, 7, 18, 0.16)) !important;
    backdrop-filter: blur(var(--dynamic-glass-blur, 6px)) saturate(180%) !important;
    -webkit-backdrop-filter: blur(var(--dynamic-glass-blur, 6px)) saturate(180%) !important;
}

.app-layout.style-glass:not(.light-theme) .topbar-compact,
.app-layout:not(.light-theme) .topbar-compact {
    background: var(--dynamic-sidebar-bg, rgba(3, 7, 18, 0.14)) !important;
    backdrop-filter: blur(var(--dynamic-glass-blur, 6px)) saturate(180%) !important;
    -webkit-backdrop-filter: blur(var(--dynamic-glass-blur, 6px)) saturate(180%) !important;
}

.app-layout.style-glass:not(.light-theme) .glass-card,
.app-layout.style-glass:not(.light-theme) .metric-card,
.app-layout.style-glass:not(.light-theme) .stat-pill,
.app-layout.style-glass:not(.light-theme) .stat-pill-compact,
.app-layout.style-glass:not(.light-theme) .table-card-container,
.app-layout.style-glass:not(.light-theme) .account-card,
.app-layout.style-glass:not(.light-theme) .router-glass-card,
.app-layout.style-glass:not(.light-theme) .setting-module-card,
.app-layout.style-glass:not(.light-theme) .reset-panel-container,
.app-layout.style-glass:not(.light-theme) .chart-card-container,
.app-layout.style-glass:not(.light-theme) .quick-btn-item,
.app-layout:not(.light-theme) .glass-card,
.app-layout:not(.light-theme) .metric-card,
.app-layout:not(.light-theme) .table-card-container {
    background: var(--dynamic-card-bg, rgba(5, 10, 24, 0.14)) !important;
    backdrop-filter: blur(var(--dynamic-glass-blur, 6px)) saturate(180%) !important;
    -webkit-backdrop-filter: blur(var(--dynamic-glass-blur, 6px)) saturate(180%) !important;
}


/* ========================================================================= */
/* PRISTINE, HIGH-CONTRAST LIGHT THEME (CLEAN SAAS AESTHETICS)               */
/* ========================================================================= */

.app-layout.light-theme {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-glass: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-subtle: #e2e8f0;
    --border-glass: #e2e8f0;
}

/* Sidebar in Light Theme */
.app-layout.light-theme .sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.app-layout.light-theme .sidebar-brand {
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-layout.light-theme .brand-title {
    color: #0f172a !important;
}

.app-layout.light-theme .nav-group-label {
    color: #94a3b8 !important;
}

.app-layout.light-theme .nav-item-custom {
    color: #475569 !important;
}

.app-layout.light-theme .nav-item-custom:hover {
    background: #f1f5f9 !important;
    color: #6366f1 !important;
}

.app-layout.light-theme .nav-item-custom.active,
.app-layout.light-theme .nav-item-custom.active-route {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #4f46e5 !important;
    font-weight: 700 !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
}

.app-layout.light-theme .user-profile-compact {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.app-layout.light-theme .profile-name {
    color: #0f172a !important;
}

.app-layout.light-theme .profile-role {
    color: #64748b !important;
}

/* TopBar in Light Theme */
.app-layout.light-theme .topbar-compact {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.app-layout.light-theme .topbar-search-container {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}

.app-layout.light-theme .topbar-search-container input {
    color: #0f172a !important;
}

.app-layout.light-theme .topbar-search-container input::placeholder {
    color: #94a3b8 !important;
}

.app-layout.light-theme .topbar-theme-btn,
.app-layout.light-theme .topbar-bell-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.app-layout.light-theme .telemetry-chip {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.app-layout.light-theme .telemetry-text {
    color: #334155 !important;
}

/* Cards, Widgets, and Modules in Light Theme */
.app-layout.light-theme .glass-card,
.app-layout.light-theme .metric-card,
.app-layout.light-theme .stat-pill,
.app-layout.light-theme .stat-pill-compact,
.app-layout.light-theme .table-card-container,
.app-layout.light-theme .account-card,
.app-layout.light-theme .router-glass-card,
.app-layout.light-theme .setting-module-card,
.app-layout.light-theme .reset-panel-container,
.app-layout.light-theme .chart-card-container,
.app-layout.light-theme .quick-btn-item,
.app-layout.light-theme .compact-daemon-card,
.app-layout.light-theme .action-chip-compact {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Headings & Text in Light Theme */
.app-layout.light-theme h1,
.app-layout.light-theme h2,
.app-layout.light-theme h3,
.app-layout.light-theme h4,
.app-layout.light-theme .page-header-title,
.app-layout.light-theme .page-title-compact h2,
.app-layout.light-theme .text-white,
.app-layout.light-theme .daemon-val,
.app-layout.light-theme .card-title,
.app-layout.light-theme strong {
    color: #0f172a !important;
}

.app-layout.light-theme .page-header-desc,
.app-layout.light-theme .page-subtitle-compact,
.app-layout.light-theme .text-secondary,
.app-layout.light-theme .daemon-label,
.app-layout.light-theme .preview-label {
    color: #475569 !important;
}

.app-layout.light-theme .text-muted {
    color: #64748b !important;
}

/* Tables in Light Theme */
.app-layout.light-theme table thead tr th,
.app-layout.light-theme .compact-table th {
    background: #f8fafc !important;
    color: #1e293b !important;
    border-bottom: 2px solid #e2e8f0 !important;
    font-weight: 700 !important;
}

.app-layout.light-theme table tbody tr td,
.app-layout.light-theme .compact-table td {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
}

.app-layout.light-theme table tbody tr:hover td {
    background: #f8fafc !important;
}

/* Form Controls & Filter Tabs in Light Theme */
.app-layout.light-theme .form-input-custom,
.app-layout.light-theme .form-select-custom {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.app-layout.light-theme .tab-pill-btn {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.app-layout.light-theme .tab-active {
    background: #ffffff !important;
    color: #4f46e5 !important;
    border-color: #6366f1 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
}

.app-layout.light-theme .search-input-wrapper-compact {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

.app-layout.light-theme .search-input-wrapper-compact input {
    color: #0f172a !important;
}

/* Telemetry Footer in Light Theme */
.app-layout.light-theme .telemetry-footer-compact {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

.app-layout.light-theme .telemetry-footer-compact span,
.app-layout.light-theme .telemetry-footer-compact strong {
    color: #475569 !important;
}


/* ========================================================================= */
/* UNIVERSAL PASSWORD VISIBILITY EYE TOGGLE BUTTON                           */
/* ========================================================================= */
.password-toggle-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.btn-toggle-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    line-height: 1;
}

.btn-toggle-eye:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    transform: translateY(-50%) scale(1.08);
}

.btn-toggle-eye:active {
    transform: translateY(-50%) scale(0.95);
}

.with-toggle-btn {
    padding-right: 36px !important;
}


/* ========================================================================= */
/* UNIVERSAL COMPLETE LIGHT THEME SYSTEM (CLEAN, BRIGHT & UN-SHADED)         */
/* ========================================================================= */
.app-layout.light-theme {
    background: #f8fafc !important;
    color: #0f172a !important;
    --bg-app: #f8fafc;
    --bg-canvas: #f1f5f9;
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-glass: #ffffff;
    --bg-sidebar: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-subtle: #e2e8f0;
    --border-glass: #e2e8f0;
    --border-card: #e2e8f0;
}

.app-layout.light-theme .main-wrapper,
.app-layout.light-theme .content-body {
    background: #f8fafc !important;
}

/* Sidebar in Light Theme */
.app-layout.light-theme .sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.app-layout.light-theme .sidebar-brand {
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-layout.light-theme .brand-title {
    color: #0f172a !important;
}

.app-layout.light-theme .nav-group-label {
    color: #94a3b8 !important;
}

.app-layout.light-theme .nav-item-custom {
    color: #475569 !important;
}

.app-layout.light-theme .nav-item-custom:hover {
    background: #f1f5f9 !important;
    color: #6366f1 !important;
}

.app-layout.light-theme .nav-item-custom.active,
.app-layout.light-theme .nav-item-custom.active-route {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #4f46e5 !important;
    font-weight: 700 !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
}

.app-layout.light-theme .user-profile-compact {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.app-layout.light-theme .profile-name {
    color: #0f172a !important;
}

.app-layout.light-theme .profile-role {
    color: #64748b !important;
}

/* TopBar in Light Theme */
.app-layout.light-theme .topbar-compact {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.app-layout.light-theme .topbar-search-container {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}

.app-layout.light-theme .topbar-search-container input {
    color: #0f172a !important;
}

.app-layout.light-theme .topbar-search-container input::placeholder {
    color: #94a3b8 !important;
}

.app-layout.light-theme .topbar-theme-btn,
.app-layout.light-theme .topbar-bell-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.app-layout.light-theme .telemetry-chip {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.app-layout.light-theme .telemetry-text {
    color: #334155 !important;
}

/* Cards, Hero Segments & Modules in Light Theme */
.app-layout.light-theme .glass-card,
.app-layout.light-theme .metric-card,
.app-layout.light-theme .sa-hero-card,
.app-layout.light-theme .stat-card,
.app-layout.light-theme .account-card,
.app-layout.light-theme .router-glass-card,
.app-layout.light-theme .setting-module-card,
.app-layout.light-theme .reset-panel-container,
.app-layout.light-theme .chart-card-container,
.app-layout.light-theme .quick-btn-item,
.app-layout.light-theme .compact-daemon-card,
.app-layout.light-theme .action-chip-compact {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.app-layout.light-theme .stat-pill,
.app-layout.light-theme .stat-pill-compact {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Headings & Text in Light Theme */
.app-layout.light-theme h1,
.app-layout.light-theme h2,
.app-layout.light-theme h3,
.app-layout.light-theme h4,
.app-layout.light-theme .page-header-title,
.app-layout.light-theme .page-title-compact h2,
.app-layout.light-theme .sa-title,
.app-layout.light-theme .sa-section-title,
.app-layout.light-theme .hero-title,
.app-layout.light-theme .account-name,
.app-layout.light-theme .daemon-val,
.app-layout.light-theme .card-title,
.app-layout.light-theme strong {
    color: #0f172a !important;
}

.app-layout.light-theme .page-header-desc,
.app-layout.light-theme .page-subtitle-compact,
.app-layout.light-theme .sa-subtitle,
.app-layout.light-theme .sa-section-subtitle,
.app-layout.light-theme .text-secondary,
.app-layout.light-theme .daemon-label,
.app-layout.light-theme .preview-label,
.app-layout.light-theme .hero-metric-sub {
    color: #475569 !important;
}

.app-layout.light-theme .text-muted,
.app-layout.light-theme .text-muted-val {
    color: #64748b !important;
}

/* All Table Containers in Light Theme (Zero Dark Shading) */
.app-layout.light-theme .table-card-container,
.app-layout.light-theme .glass-table-container,
.app-layout.light-theme .sa-glass-card,
.app-layout.light-theme .table-card,
.app-layout.light-theme .network-table-card,
.app-layout.light-theme .billing-table-card,
.app-layout.light-theme .audit-table-card,
.app-layout.light-theme .tickets-table-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.app-layout.light-theme .table-toolbar-compact,
.app-layout.light-theme .glass-table-header,
.app-layout.light-theme .sa-card-header-flex,
.app-layout.light-theme .card-header-row {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* All Tables (th, td, tr) in Light Theme */
.app-layout.light-theme table,
.app-layout.light-theme .compact-table,
.app-layout.light-theme .cyber-data-table,
.app-layout.light-theme .sa-table {
    background: #ffffff !important;
    border-collapse: separate !important;
}

.app-layout.light-theme table thead tr th,
.app-layout.light-theme .compact-table th,
.app-layout.light-theme .cyber-data-table th,
.app-layout.light-theme .sa-table th {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-bottom: 2px solid #cbd5e1 !important;
    box-shadow: none !important;
    font-weight: 700 !important;
}

.app-layout.light-theme table tbody tr td,
.app-layout.light-theme .compact-table td,
.app-layout.light-theme .cyber-data-table td,
.app-layout.light-theme .sa-table td {
    background: #ffffff !important;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.app-layout.light-theme table tbody tr:hover td,
.app-layout.light-theme .compact-table tr:hover td,
.app-layout.light-theme .cyber-data-table tr:hover td,
.app-layout.light-theme .sa-table tr:hover td {
    background: #f8fafc !important;
}

/* Table Text & Meta Elements */
.app-layout.light-theme td strong,
.app-layout.light-theme td .text-white,
.app-layout.light-theme .tenant-name {
    color: #0f172a !important;
}

.app-layout.light-theme td .text-secondary,
.app-layout.light-theme .tenant-date {
    color: #475569 !important;
}

.app-layout.light-theme .tenant-owner {
    color: #4338ca !important;
    font-weight: 700 !important;
}

.app-layout.light-theme .tenant-subs {
    color: #0f172a !important;
    font-weight: 600 !important;
}

.app-layout.light-theme .paid-expiry,
.app-layout.light-theme .tenant-id,
.app-layout.light-theme .tenant-contact {
    color: #64748b !important;
}

.app-layout.light-theme td .cell-mono-purple {
    color: #6d28d9 !important;
}

.app-layout.light-theme td .cell-mono-cyan {
    color: #0284c7 !important;
}

.app-layout.light-theme td .cell-mono-muted {
    color: #64748b !important;
}

/* Filter Tabs & Count Badges */
.app-layout.light-theme .filter-tabs-compact {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.app-layout.light-theme .tab-btn-compact {
    background: transparent !important;
    color: #475569 !important;
    border: 1px solid transparent !important;
}

.app-layout.light-theme .tab-btn-compact:hover {
    background: #ffffff !important;
    color: #0f172a !important;
}

.app-layout.light-theme .tab-btn-compact.active {
    background: #ffffff !important;
    color: #4f46e5 !important;
    border-color: #6366f1 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.app-layout.light-theme .tab-count,
.app-layout.light-theme .tab-badge {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

/* Search Inputs in Light Theme */
.app-layout.light-theme .search-input-wrapper-compact,
.app-layout.light-theme .table-search-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.app-layout.light-theme .search-input-wrapper-compact input {
    color: #0f172a !important;
}

.app-layout.light-theme .search-input-wrapper-compact input::placeholder,
.app-layout.light-theme .table-search-input::placeholder {
    color: #94a3b8 !important;
}

/* Action Buttons & Badges in Light Theme */
.app-layout.light-theme .btn-compact.btn-ghost-compact,
.app-layout.light-theme .btn-ghost-custom,
.app-layout.light-theme .sa-btn-ghost,
.app-layout.light-theme .act-btn-acc,
.app-layout.light-theme .sa-btn-action {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

.app-layout.light-theme .btn-compact.btn-ghost-compact:hover,
.app-layout.light-theme .btn-ghost-custom:hover,
.app-layout.light-theme .sa-btn-ghost:hover,
.app-layout.light-theme .act-btn-acc:hover,
.app-layout.light-theme .sa-btn-action:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.app-layout.light-theme .sa-key-code {
    color: #6d28d9 !important;
    background: #f5f3ff !important;
    border: 1px solid #ddd6fe !important;
}

/* Modals & Dialogs in Light Theme */
.app-layout.light-theme .modal-dialog-custom {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
}

.app-layout.light-theme .modal-header-custom {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-layout.light-theme .modal-header-custom h3 {
    color: #0f172a !important;
}

/* Telemetry Footer in Light Theme */
.app-layout.light-theme .telemetry-footer-compact {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

.app-layout.light-theme .telemetry-footer-compact span,
.app-layout.light-theme .telemetry-footer-compact strong {
    color: #475569 !important;
}


.app-layout.light-theme .act-cut {
    background: #fff1f2 !important;
    border: 1px solid #fecdd3 !important;
    color: #e11d48 !important;
}
.app-layout.light-theme .act-cut:hover {
    background: #e11d48 !important;
    color: #ffffff !important;
}

.app-layout.light-theme .act-reopen {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #d97706 !important;
}
.app-layout.light-theme .act-reopen:hover {
    background: #d97706 !important;
    color: #ffffff !important;
}


/* ========================================================================= */
/* PURE CRISP LIGHT THEME STATUS FOOTER (ZERO DARK SHADING / PURE WHITE)     */
/* ========================================================================= */
.light-theme .status-footer,
.app-layout.light-theme .status-footer,
.app-layout.light-theme .main-wrapper .status-footer,
body.light-theme .status-footer {
    background: #ffffff !important;
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04) !important;
    color: #475569 !important;
}

.light-theme .status-footer::before,
.app-layout.light-theme .status-footer::before,
body.light-theme .status-footer::before {
    display: none !important;
    content: none !important;
}

.light-theme .footer-stat-label,
.app-layout.light-theme .footer-stat-label {
    color: #64748b !important;
    font-weight: 600 !important;
}

.light-theme .footer-badge-green,
.app-layout.light-theme .footer-badge-green {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #059669 !important;
    box-shadow: none !important;
    font-weight: 700 !important;
}

.light-theme .footer-val-cyan,
.app-layout.light-theme .footer-val-cyan {
    color: #0284c7 !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

.light-theme .footer-val-purple,
.app-layout.light-theme .footer-val-purple {
    color: #7c3aed !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

.light-theme .footer-val-white,
.app-layout.light-theme .footer-val-white {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.light-theme .footer-time-chip,
.app-layout.light-theme .footer-time-chip {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

.light-theme .footer-separator,
.app-layout.light-theme .footer-separator {
    color: #cbd5e1 !important;
}
