@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --bg-main: #151717;          /* Chinese Black */
    --bg-card: #1e2020;          /* Raisin Black — lifted 1 stop for depth */
    --bg-subcard: #242828;       /* Charleston Green */
    --naples-yellow: #FAD85D;    /* Naples Yellow — primary accent */
    --brand-orange: #f37021;     /* CII-MCM Orange — secondary accent */
    --mint-cyan: #10F3B9;        /* Mint Cyan — data positive */
    --pink-violet: #F472B6;      /* Vibrant Pink — data highlight */
    --border-glass: rgba(255,255,255,0.08);
    --border-glass-strong: rgba(255,255,255,0.14);
    --text-primary: #f1f5f9;     /* slate-100 — not pure white, reduces halation */
    --text-secondary: #94a3b8;   /* slate-400 */
    --text-muted: #64748b;       /* slate-500 — minimum body size context */
    --primary: #FAD85D;          /* Naples Yellow */
    /* Typography — matches Tailwind config */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    --font-script: 'Pacifico', cursive;
    /* Radius system — 3 tiers, no mixed values */
    --radius-pill: 9999px;
    --radius-card: 20px;         /* cards, modals, panels */
    --radius-widget: 12px;       /* buttons, inputs, small chips */
    --radius-tile: 16px;         /* dock tiles */
    /* Transitions */
    --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.26s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #151717 !important;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Dedicated Login Page Lumina Theme Protection */
body.lumina-theme {
    background-color: #060a17 !important;
    color: #dae2fd !important;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
}

body.lumina-theme #fluid-canvas {
    opacity: 1 !important;
    display: block !important;
    z-index: -10 !important;
}

body.lumina-theme h1, 
body.lumina-theme h2, 
body.lumina-theme h3,
.auth-form-container h2,
.auth-form-container h1,
.overlay-panel h1 {
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

body.lumina-theme p,
.auth-form-container p,
.overlay-panel p {
    color: #dae2fd !important;
}

/* Translucent Dark Input Fields & Autofill Override */
body.lumina-theme input,
body.lumina-theme .form-control,
.auth-container input,
.auth-container .form-control {
    background: rgba(15, 23, 42, 0.65) !important;
    background-color: rgba(15, 23, 42, 0.65) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 16px !important;
}

body.lumina-theme input::placeholder,
.auth-container input::placeholder,
.auth-container .form-control::placeholder {
    color: rgba(218, 226, 253, 0.55) !important;
}

/* Chrome/Safari Autofill Fix (Prevents yellow/white background & dark text) */
body.lumina-theme input:-webkit-autofill,
body.lumina-theme input:-webkit-autofill:hover,
body.lumina-theme input:-webkit-autofill:focus,
body.lumina-theme input:-webkit-autofill:active,
.auth-container input:-webkit-autofill,
.auth-container input:-webkit-autofill:hover,
.auth-container input:-webkit-autofill:focus,
.auth-container input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #0f172a inset !important;
    box-shadow: 0 0 0px 1000px #0f172a inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Tangerine Orange Interactive Cat Avatar */
.cat-head {
    background: linear-gradient(135deg, #ff7a18 0%, #d86208 100%) !important;
}
.cat-ear {
    border-bottom-color: #d86208 !important;
}
.cat-ear::after {
    border-bottom-color: #ff9239 !important;
}
.cat-eyelid {
    background: linear-gradient(to bottom, #d86208 0%, #ff7a18 100%) !important;
}

/* Tangerine Orange Action Buttons */
.auth-form-container .btn-primary,
.auth-form-container .btn-accent {
    background: linear-gradient(135deg, #ff7a18 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px -4px rgba(243, 112, 33, 0.5), 0 4px 12px rgba(243, 112, 33, 0.4) !important;
}

/* Solid Clean Container */
.glass-panel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.dark-mode .glass-panel {
    background: #171329;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Headings — Outfit display, tight tracking */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text-primary);
}

/* Particles Background Container */
.particles-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: radial-gradient(circle at 50% 30%, #0f172a 0%, #090d16 60%, #030712 100%);
    pointer-events: auto;
}

/* Auth Pages Layout */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    z-index: 1;
    background: transparent;
    pointer-events: none;
}

/* Ultra-Dark Glassmorphism Auth container design (Matching Reference Image 1) */
.auth-container {
    background: rgba(11, 15, 26, 0.62) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 32px !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 40px rgba(99, 102, 241, 0.15) !important;
    position: relative;
    overflow: hidden;
    width: 850px;
    max-width: 100%;
    min-height: 660px;
    pointer-events: auto;
}

.auth-form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.auth-container.right-panel-active .sign-in-container {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.auth-container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    pointer-events: auto;
    z-index: 5;
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
}

.auth-container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: linear-gradient(-45deg, #0b1528, #1e3a8a, #701a75, #b45309, #0b1528);
    background-size: 300% 300%;
    animation: aurora-bg-animation 15s ease infinite;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.overlay::before, .overlay::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    filter: blur(80px);
    opacity: 0.85;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

.overlay::before {
    background: radial-gradient(circle, #f58220 0%, #ea580c 40%, transparent 80%);
    top: -100px;
    left: -100px;
    animation: float-aurora-1 18s infinite alternate ease-in-out;
}

.overlay::after {
    background: radial-gradient(circle, #00d2ff 0%, #0072ff 45%, transparent 80%);
    bottom: -100px;
    right: -100px;
    animation: float-aurora-2 22s infinite alternate ease-in-out;
}

@keyframes aurora-bg-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float-aurora-1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    50% {
        transform: translate(140px, 80px) scale(1.2) rotate(180deg);
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    }
    100% {
        transform: translate(-40px, 160px) scale(0.95) rotate(360deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

@keyframes float-aurora-2 {
    0% {
        transform: translate(0, 0) scale(1.1) rotate(0deg);
        border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
    }
    50% {
        transform: translate(-150px, -60px) scale(0.85) rotate(-180deg);
        border-radius: 30% 70% 70% 30% / 50% 30% 70% 50%;
    }
    100% {
        transform: translate(60px, -180px) scale(1.2) rotate(-360deg);
        border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
    }
}

.auth-container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
}

.overlay-left {
    transform: translateX(-20%);
}

.auth-container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.auth-container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.auth-form-container form {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px 40px !important;
    height: 100%;
    box-sizing: border-box !important;
    text-align: center;
}

.auth-logo {
    height: 95px;
    width: auto;
    margin-bottom: 24px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.mobile-toggle-text {
    display: none;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .auth-wrapper {
        padding: 16px 12px !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .auth-container {
        width: 100% !important;
        max-width: 440px !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 28px 18px !important;
        box-sizing: border-box !important;
        border-radius: 24px !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }
    
    .overlay-container {
        display: none !important;
    }
    
    .auth-form-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: none !important;
        box-sizing: border-box !important;
    }

    .sign-in-container,
    .sign-up-container {
        width: 100% !important;
        left: 0 !important;
        box-sizing: border-box !important;
    }
    
    .auth-form-container form {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-group,
    .password-group {
        width: 100% !important;
        max-width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 12px !important;
        box-sizing: border-box !important;
    }

    body.lumina-theme input,
    body.lumina-theme .form-control,
    .auth-container input,
    .auth-container .form-control {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 14px !important;
        height: 48px !important;
        padding: 10px 16px !important;
        border-radius: 14px !important;
    }
    
    .sign-in-container {
        opacity: 1 !important;
        pointer-events: auto !important;
        display: block !important;
    }
    
    .sign-up-container {
        opacity: 0 !important;
        pointer-events: none !important;
        display: none !important;
    }
    
    .auth-container.right-panel-active .sign-up-container {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }
    
    .auth-container.right-panel-active .sign-in-container {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .mobile-toggle-text {
        display: block !important;
        margin-top: 20px;
        font-size: 13.5px;
        color: #94a3b8;
    }
    
    .mobile-toggle-btn {
        color: #ff7a18;
        font-weight: 700;
        cursor: pointer;
        text-decoration: underline;
        background: none;
        border: none;
        font-size: 13.5px;
        padding: 0;
        margin-left: 5px;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-brand {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #FFF 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-title {
    font-size: 20px;
    color: var(--text-primary);
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Inputs & Forms - Clean Modern CloudBoard Style */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--cb-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-widget); /* 12px — widget tier */
    padding: 11px 16px;
    color: var(--cb-text-main);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    transition: var(--transition-fast);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-orange, #f37021);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.15);
}

body.dark-mode .form-control,
html.dark .form-control {
    background: #141b2d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #dbe2fb;
    color-scheme: dark;
}

body.dark-mode .form-control:focus,
html.dark .form-control:focus {
    border-color: #f37021;
    background: #181f31;
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.25);
}

/* Global Dark Mode Overrides for Legacy Light Container Boxes & Text */
:root:not(.light-mode) .bg-white:not(.form-control):not(.custom-dropdown-trigger),
html.dark .bg-white:not(.form-control):not(.custom-dropdown-trigger),
body.dark-mode .bg-white:not(.form-control):not(.custom-dropdown-trigger),
body:not(.light-mode) .bg-white:not(.form-control):not(.custom-dropdown-trigger) {
    background-color: #1e2020 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
}

html.dark body.lumina-theme .form-control,
html.dark .auth-container .form-control,
html.dark .auth-container input,
html.dark .auth-container input.form-control,
html.dark body.lumina-theme input,
html.dark .custom-dropdown-trigger,
html.dark #role_dropdown_trigger,
body.dark-mode .form-control,
body.dark-mode input {
    background: #0d1322 !important;
    background-color: #0d1322 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

body.lumina-theme .form-control::placeholder,
.auth-container .form-control::placeholder,
.auth-container input::placeholder,
body.lumina-theme input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Chrome/Safari Autofill Dark Mode Override */
.auth-container input:-webkit-autofill,
.auth-container input:-webkit-autofill:hover,
.auth-container input:-webkit-autofill:focus,
.auth-container input:-webkit-autofill:active,
body.lumina-theme input:-webkit-autofill,
body.lumina-theme input:-webkit-autofill:hover,
body.lumina-theme input:-webkit-autofill:focus,
body.lumina-theme input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #0d1322 inset !important;
    box-shadow: 0 0 0px 1000px #0d1322 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}



:root:not(.light-mode) .bg-slate-50,
html.dark .bg-slate-50,
body.dark-mode .bg-slate-50,
body:not(.light-mode) .bg-slate-50 {
    background-color: #151717 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

:root:not(.light-mode) .bg-slate-200,
html.dark .bg-slate-200,
body.dark-mode .bg-slate-200,
body:not(.light-mode) .bg-slate-200 {
    background-color: #282C2C !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

:root:not(.light-mode) [class*="border-[#E6EAF2]"],
:root:not(.light-mode) [class*="border-[#E8ECF3]"],
html.dark [class*="border-[#E6EAF2]"],
html.dark [class*="border-[#E8ECF3]"],
body.dark-mode [class*="border-[#E6EAF2]"],
body.dark-mode [class*="border-[#E8ECF3]"],
body:not(.light-mode) [class*="border-[#E6EAF2]"],
body:not(.light-mode) [class*="border-[#E8ECF3]"] {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Force All Dark Headings to Pure White in Dark Mode */
:root:not(.light-mode) [class*="text-[#0F172A]"],
html.dark [class*="text-[#0F172A]"],
body.dark-mode [class*="text-[#0F172A]"],
body:not(.light-mode) [class*="text-[#0F172A]"],
:root:not(.light-mode) .text-blue-950,
html.dark .text-blue-950,
body:not(.light-mode) .text-blue-950,
:root:not(.light-mode) .text-blue-900,
html.dark .text-blue-900,
body:not(.light-mode) .text-blue-900 {
    color: #ffffff !important;
}

/* Force Light Subtext/Labels to Accessible Gray in Dark Mode */
:root:not(.light-mode) .text-slate-500,
html.dark .text-slate-500,
body.dark-mode .text-slate-500,
body:not(.light-mode) .text-slate-500,
:root:not(.light-mode) .text-slate-600,
html.dark .text-slate-600,
body.dark-mode .text-slate-600,
body:not(.light-mode) .text-slate-600,
:root:not(.light-mode) .text-slate-700,
html.dark .text-slate-700,
body.dark-mode .text-slate-700,
body:not(.light-mode) .text-slate-700,
:root:not(.light-mode) .text-slate-800,
html.dark .text-slate-800,
body.dark-mode .text-slate-800,
body:not(.light-mode) .text-slate-800 {
    color: #cbd5e1 !important;
}



/* Buttons - Clean Solid Modern SaaS Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-widget); /* 12px — widget tier */
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    white-space: nowrap; /* prevent label wrap */
}

.btn::before {
    display: none !important;
}

/* btn-primary: CII-MCM Orange (was purple — now matches brand) */
.btn-primary {
    background: var(--brand-orange, #f37021);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.25);
}

.btn-primary:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(243, 112, 33, 0.35);
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(243, 112, 33, 0.2);
}

.btn-accent {
    background: #f97316;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.btn-accent:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

body.dark-mode .btn-secondary {
    background: #1e1b30;
    color: #e2e8f0;
}

body.dark-mode .btn-secondary:hover {
    background: #2a2642;
}

.btn-block {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 11px 16px;
    border-radius: var(--radius-widget);
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #A7F3D0;
}

/* Links */
.auth-links {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-links a:hover {
    color: #818CF8;
    text-decoration: underline;
}

/* Admin Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-glass);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    margin-bottom: 32px;
}

.sidebar-logo-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline-block;
    max-width: 100%;
    box-shadow: none;
}

.sidebar-logo {
    display: block;
    max-height: 48px;
    width: auto;
    max-width: 100%;
    height: auto;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    color: #FFF;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    background: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    background: transparent;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #FFF;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h3 {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

/* Tables and Panels */
.panel-card {
    padding: 32px;
    margin-bottom: 24px;
}

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

.crm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    text-align: left;
}

.crm-table th {
    padding: 14px 16px;
    border-bottom: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.crm-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 14px;
}

.crm-table tr:hover td {
    background: #f8fafc;
}

body.dark-mode .crm-table th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

body.dark-mode .crm-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

body.dark-mode .crm-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
}

/* CRUD Form Modal/Section */
.crud-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
}

@media (max-width: 992px) {
    .crud-grid {
        grid-template-columns: 1fr;
    }
}

/* Interactive Cat Avatar Styles */
.interactive-cat-avatar {
    position: relative;
    width: 120px;
    height: 100px;
    margin: 0 auto 16px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 400px;
}

.cat-head {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, #d86208 100%);
    border-radius: 50%;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.cat-ear {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 28px solid #d86208;
    top: -12px;
    transition: transform 0.2s ease;
}

.cat-ear-left {
    left: 10px;
    transform: rotate(-15deg);
}

.cat-ear-right {
    right: 10px;
    transform: rotate(15deg);
}

.cat-ear::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 18px solid #ff9239;
    top: 6px;
    left: -10px;
}

.cat-eye {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    top: 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-eye-left {
    left: 16px;
}

.cat-eye-right {
    right: 16px;
}

.cat-pupil {
    width: 10px;
    height: 10px;
    background: #060913;
    border-radius: 50%;
    position: relative;
    transition: transform 0.05s ease-out;
}

.cat-pupil::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

.cat-eyelid {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #d86208 0%, var(--accent) 100%);
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-cat-avatar.eyes-closed .cat-eyelid {
    transform: translateY(100%);
}

.cat-nose {
    position: absolute;
    width: 8px;
    height: 6px;
    background: #ff4a4a;
    border-radius: 4px 4px 6px 6px;
    top: 46px;
    left: 36px;
}

.cat-mouth {
    position: absolute;
    width: 14px;
    height: 6px;
    border-bottom: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    border-radius: 0 0 8px 8px;
    top: 54px;
    left: 33px;
    opacity: 0.8;
}

.cat-whiskers-left, .cat-whiskers-right {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 4px;
    top: 48px;
}

.cat-whiskers-left {
    left: -12px;
}

.cat-whiskers-right {
    right: -12px;
}

.cat-whiskers-left span, .cat-whiskers-right span {
    width: 18px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.25);
    display: block;
}

.cat-whiskers-left span:nth-child(1) { transform: rotate(10deg); }
.cat-whiskers-left span:nth-child(2) { transform: rotate(-5deg); }
.cat-whiskers-right span:nth-child(1) { transform: rotate(-10deg); }
.cat-whiskers-right span:nth-child(2) { transform: rotate(5deg); }

.password-group input {
    padding-right: 44px !important;
}

.particles-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.auth-form-container {
    position: absolute;
    top: 0;
    height: 100%;
}

}

/* Sapphire UI Dashboard Layout */
.dashboard-content-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
    margin-top: 16px;
}

@media (max-width: 1200px) {
    .dashboard-content-layout {
        grid-template-columns: 1fr;
    }
}

.dashboard-main-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dashboard-side-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Welcome Header */
.welcome-header {
    margin-bottom: 8px;
}

.welcome-title {
    font-size: 36px;
    font-weight: 800;
    color: #FFF;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Hero Grid (Trainers stat + featured intelligence banner) */
.dashboard-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .dashboard-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Card Base */
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(35px) saturate(1.45);
    -webkit-backdrop-filter: blur(35px) saturate(1.45);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1.5px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), inset 0 1.5px 0 rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Card Header row */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 18px;
}

.card-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: auto;
    margin-left: 12px;
}

.card-action-btn {
    font-size: 13px;
    font-weight: 600;
    color: #FFF;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}

.card-action-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-action-btn-icon {
    font-size: 14px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

.card-action-btn-icon:hover {
    color: #FFF;
    transform: rotate(45deg);
}

/* Metric values */
.card-metric-value {
    font-size: 42px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #FFF;
    line-height: 1.1;
}

.card-metric-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Featured intelligence promo card */
.featured-glow-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(10, 20, 38, 0.6) 100%);
    border: 1px solid rgba(167, 139, 250, 0.35);
    box-shadow: 0 12px 36px rgba(138, 43, 226, 0.2), inset 0 1.5px 0 rgba(167, 139, 250, 0.3);
    position: relative;
    overflow: hidden;
}

.featured-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
}

.featured-title {
    font-size: 26px;
    font-weight: 800;
    color: #c084fc;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.featured-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    max-width: 80%;
    line-height: 1.4;
}

.featured-visual-container {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 140px;
    height: 140px;
    pointer-events: none;
}

.featured-3d-blob {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f58220 0%, #a855f7 50%, #00d2ff 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph-blob 8s infinite alternate ease-in-out;
    filter: drop-shadow(0 8px 24px rgba(138, 43, 226, 0.5));
}

@keyframes morph-blob {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg) scale(1); }
    100% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; transform: rotate(180deg) scale(1.1); }
}

/* Mini Bar Chart inside Stats Card */
.mini-bar-chart {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 48px;
    margin-top: 20px;
    padding-top: 8px;
}

.chart-bar {
    flex: 1;
    border-radius: 6px;
    min-height: 4px;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stats Subgrid (4 smaller cards) */
.stats-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.stat-card-sub {
    padding: 22px;
}

.sub-metric-val {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #FFF;
    margin-top: 10px;
}

.sub-metric-growth {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
}

.font-success {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.font-info {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

.font-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.font-error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

/* Engagement Card Grid (GitHub Style Contribution Activity) */
.engagement-card {
    padding: 24px;
}

.card-label-large {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #FFF;
}

.engagement-grid-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.grid-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 90px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.engagement-cells {
    display: grid;
    grid-template-rows: repeat(4, 1.25rem);
    grid-auto-flow: column;
    gap: 8px;
}

.cell {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease, border-color 0.2s;
    cursor: pointer;
}

.cell:hover {
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.25);
    z-index: 5;
}

.cell.level-1 { background: rgba(138, 43, 226, 0.15); }
.cell.level-2 { background: rgba(138, 43, 226, 0.35); }
.cell.level-3 { background: rgba(138, 43, 226, 0.65); }
.cell.level-4 { background: #a855f7; box-shadow: 0 0 10px rgba(168, 85, 247, 0.4); }

.grid-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.legend-cell {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.legend-cell.level-1 { background: rgba(138, 43, 226, 0.15); }
.legend-cell.level-2 { background: rgba(138, 43, 226, 0.35); }
.legend-cell.level-3 { background: rgba(138, 43, 226, 0.65); }
.legend-cell.level-4 { background: #a855f7; }

/* Calendar Card Styles */
.calendar-card {
    padding: 24px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cal-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFF;
}

.cal-month-year {
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 16px;
    color: #FFF;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.cal-day-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 8px;
}

.cal-date {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-date.muted {
    color: rgba(255, 255, 255, 0.15);
}

.cal-date.active {
    background: var(--accent);
    color: #FFF;
    font-weight: 700;
    box-shadow: 0 6px 18px var(--accent-glow), inset 0 1.5px 0 rgba(255, 255, 255, 0.25);
}

.cal-date:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
}

/* Schedule / Task List Card */
.schedule-card {
    padding: 24px;
}

.schedule-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFF;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.schedule-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: var(--transition);
}

.schedule-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.schedule-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(245, 130, 32, 0.12);
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid rgba(245, 130, 32, 0.25);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(245, 130, 32, 0.1);
}

.schedule-details {
    flex: 1;
}

.schedule-details h4 {
    font-size: 14px;
    font-weight: 700;
    color: #FFF;
    line-height: 1.3;
}

.schedule-details p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.create-activity-btn {
    width: 100%;
}

/* ==========================================================================
   CLOUDBOARD DESIGN SYSTEM - EXACT PIXEL REPLICA STYLING
   ========================================================================== */

:root {
    --cb-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --cb-dark-bg: #090910;
    --cb-sidebar-bg: #110d21;
    --cb-sidebar-card: #181330;
    --cb-purple-primary: #7c3aed;
    --cb-purple-light: #8b5cf6;
    --cb-purple-accent: #6d28d9;
    --cb-body-bg: #eef1f8;
    --cb-card-bg: #ffffff;
    --cb-text-main: #0f172a;
    --cb-text-muted: #64748b;
    --cb-text-light: #94a3b8;
    --cb-border-subtle: #e2e8f0;
}

body.cloudboard-body {
    margin: 0;
    padding: 0;
    font-family: var(--cb-font);
    background: #d6daf0;
    color: var(--cb-text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Outer Window Frame */
.cloudboard-app-frame {
    width: 96vw;
    height: 94vh;
    max-width: 1600px;
    background: var(--cb-body-bg);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    overflow: hidden;
}

/* Dual Sidebar Wrapper */
.cloudboard-sidebar-wrapper {
    display: flex;
    width: 320px;
    flex-shrink: 0;
    background: var(--cb-sidebar-bg);
}

/* Slim Leftmost Icon Strip */
.cloudboard-icon-strip {
    width: 64px;
    background: #0d0a1b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.strip-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.strip-nav-icons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center;
}

.strip-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.strip-icon-btn:hover, .strip-icon-btn.active {
    background: #7c3aed;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.strip-bottom-icons {
    margin-top: auto;
}

/* Dark Deep Tree Sidebar */
.cloudboard-dark-sidebar {
    flex: 1;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    color: #e2e8f0;
}

.sidebar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sidebar-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
}

.chevron-collapse {
    color: #94a3b8;
    cursor: pointer;
}

.sidebar-header-badge {
    color: #94a3b8;
}

/* Search Box */
.sidebar-search-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #94a3b8;
}

.sidebar-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    width: 100%;
}

.search-kbd {
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    color: #cbd5e1;
}

/* Tree Navigation */
.sidebar-tree-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tree-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #cbd5e1;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s ease;
}

.tree-group.active .tree-group-header {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
}

.tree-arrow {
    margin-left: auto;
    font-size: 16px;
}

.tree-sub-items {
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.tree-sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tree-sub-link:hover, .tree-sub-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.tree-count-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #fff;
}

.tree-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-top: 16px;
    margin-bottom: 4px;
    padding: 0 10px;
}

.sidebar-new-folder-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    margin-top: 8px;
}

/* Bottom Promo Rocket Card */
.sidebar-promo-card {
    background: linear-gradient(180deg, #181330 0%, #120e26 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    margin-top: auto;
    color: #fff;
}

.promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.promo-rocket {
    font-size: 32px;
}

.promo-dots {
    color: #64748b;
}

.promo-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
}

.promo-desc {
    margin: 0 0 16px 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.promo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s ease;
}

.promo-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Right Main Workspace Frame */
.cloudboard-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--cb-body-bg);
    overflow-y: auto;
}

/* Top Bar */
.workspace-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 36px 12px 36px;
}

.storage-widget-pill {
    background: #fff;
    border-radius: 30px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.storage-label {
    font-weight: 700;
    font-size: 13px;
    margin-right: 6px;
}

.storage-val {
    font-size: 12px;
    color: var(--cb-text-muted);
}

.storage-progress-bar {
    width: 80px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.storage-fill {
    height: 100%;
    background: var(--cb-purple-primary);
    border-radius: 10px;
}

.workspace-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--cb-text-muted);
}

.crumb.active {
    font-weight: 700;
    color: var(--cb-text-main);
}

.crumb-count-chip {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--cb-text-main);
}

/* Content View */
.workspace-content {
    padding: 12px 36px 36px 36px;
}

.cb-section {
    margin-bottom: 28px;
}

.cb-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--cb-text-main);
}

/* Recent Edited Grid Cards */
.cb-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.cb-doc-card {
    background: #fff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cb-doc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.cb-doc-preview-area {
    background: #f8fafc;
    border-radius: 16px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cb-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.cb-avatar-circle.alt-blue {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.cb-details-overlay-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.cb-doc-meta {
    margin-top: 14px;
}

.cb-doc-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cb-doc-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.cb-doc-more {
    color: var(--cb-text-light);
    cursor: pointer;
}

.cb-doc-time {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: var(--cb-text-muted);
}

/* Shared Folders Grid */
.cb-folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.cb-folder-card {
    position: relative;
    border-radius: 24px;
    padding: 24px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.cb-folder-card.dark-folder {
    background: linear-gradient(135deg, #1e1b4b, #0f172a);
    color: #fff;
}

.cb-folder-card.light-folder {
    background: #fff;
    color: var(--cb-text-main);
}

.folder-icon {
    font-size: 24px;
    margin-bottom: 12px;
    color: #ec4899;
}

.folder-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.folder-sub {
    margin: 4px 0 16px 0;
    font-size: 12px;
    opacity: 0.7;
}

.folder-avatars {
    display: flex;
    align-items: center;
}

.folder-avatars img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: -8px;
    object-fit: cover;
}

.avatar-count-chip {
    background: #e2e8f0;
    color: var(--cb-text-main);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 12px;
}

/* Filter Bar & Table */
.cb-table-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cb-filter-pill {
    background: #e2e8f0;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cb-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cb-filter-pill.active {
    background: var(--cb-purple-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.cb-table-wrapper {
    background: #fff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.cb-data-table {
    width: 100%;
    border-collapse: collapse;
}

.cb-data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--cb-text-light);
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f5f9;
}

.cb-data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f8fafc;
    vertical-align: middle;
}

.cb-data-table tr.selected-row {
    background: #f5f3ff;
}

.cb-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--cb-purple-primary);
    border-radius: 4px;
}

.cb-file-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.file-icon.word-icon {
    background: #eff6ff;
    color: #2563eb;
}

.file-icon.excel-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.file-icon.figma-table-icon {
    background: #fdf2f8;
    color: #ec4899;
}

.file-title {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--cb-text-main);
}

.file-sub {
    font-size: 11px;
    color: var(--cb-text-muted);
}

.owner-avatar-group {
    display: flex;
    align-items: center;
}

.owner-avatar-group img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: -8px;
    object-fit: cover;
}

.cb-date-text {
    font-size: 13px;
    color: var(--cb-text-muted);
}

/* ==========================================================================
   ANIMATED DAY/NIGHT SKY THEME SWITCHER (EXACT MATCH TO REFERENCE DESIGN)
   ========================================================================== */

.sky-theme-toggle {
    position: relative;
    width: 90px;
    height: 38px;
    min-width: 90px;
    min-height: 38px;
    max-width: 90px;
    max-height: 38px;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 20px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 -1px 2px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sky-theme-toggle:hover {
    transform: scale(1.05);
}

.sky-theme-toggle:active {
    transform: scale(0.97);
}

/* Background Track */
.sky-track {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Sky */
.sky-theme-toggle.is-light .sky-track {
    background: linear-gradient(135deg, #2b6cb0 0%, #3b82f6 40%, #60a5fa 100%);
}

/* Dark Mode Sky */
.sky-theme-toggle.is-dark .sky-track {
    background: linear-gradient(135deg, #090d16 0%, #111827 50%, #1f2937 100%);
}

/* Day Concentric Rings */
.day-rings {
    position: absolute;
    left: -12px;
    top: -12px;
    width: 65px;
    height: 65px;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.sky-theme-toggle.is-light .day-rings {
    opacity: 1;
    transform: scale(1);
}

.sky-theme-toggle.is-dark .day-rings {
    opacity: 0;
    transform: scale(0.6);
}

/* Night Concentric Rings */
.night-rings {
    position: absolute;
    right: -12px;
    top: -12px;
    width: 65px;
    height: 65px;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.sky-theme-toggle.is-light .night-rings {
    opacity: 0;
    transform: scale(0.6);
}

.sky-theme-toggle.is-dark .night-rings {
    opacity: 1;
    transform: scale(1);
}

/* Clouds Layer (Right side of day pill) */
.clouds-layer {
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 55px;
    height: 32px;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.sky-theme-toggle.is-light .clouds-layer {
    transform: translateY(0) translateX(0);
    opacity: 1;
    animation: cloudBaseFloat 4s ease-in-out infinite alternate;
}

.sky-theme-toggle.is-dark .clouds-layer {
    transform: translateY(18px) translateX(12px);
    opacity: 0;
    animation: none;
}

/* Parallax Cloud Layers */
.cloud-back {
    animation: cloudBackDrift 6s ease-in-out infinite alternate;
    transform-origin: center;
}

.cloud-front {
    animation: cloudFrontDrift 4s ease-in-out infinite alternate;
    transform-origin: center;
}

.sky-theme-toggle:hover .cloud-front {
    animation-duration: 2s;
}

.sky-theme-toggle:hover .cloud-back {
    animation-duration: 3s;
}

@keyframes cloudBaseFloat {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-1.5px) translateX(-2px); }
    100% { transform: translateY(1px) translateX(1px); }
}

@keyframes cloudBackDrift {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-3px) translateY(-1px); }
}

@keyframes cloudFrontDrift {
    0% { transform: translateX(0) translateY(0) scale(1); }
    100% { transform: translateX(3px) translateY(-1.5px) scale(1.03); }
}

/* Stars Layer (Left side of night pill) */
.stars-layer {
    position: absolute;
    left: 8px;
    top: 0;
    width: 44px;
    height: 38px;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.sky-theme-toggle.is-light .stars-layer {
    transform: translateY(-14px) translateX(-10px);
    opacity: 0;
}

.sky-theme-toggle.is-dark .stars-layer {
    transform: translateY(0) translateX(0);
    opacity: 1;
}

/* Individual Star Twinkle Keyframe */
.star-icon {
    position: absolute;
    fill: #ffffff;
    animation: starPulse 2.5s infinite ease-in-out;
}

.star-icon-1 { top: 7px; left: 8px; width: 8px; height: 8px; animation-delay: 0s; }
.star-icon-2 { top: 20px; left: 16px; width: 10px; height: 10px; animation-delay: 0.6s; }
.star-icon-3 { top: 10px; left: 28px; width: 6px; height: 6px; animation-delay: 1.2s; }
.star-icon-4 { top: 24px; left: 32px; width: 7px; height: 7px; animation-delay: 1.8s; }

@keyframes starPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Tactile Bezel Shadow Overlay */
.sky-bezel-shadow {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 -1px 2px rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 2;
}

/* Moving Thumb Container - Guaranteed Perfect Circle */
.sky-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
    z-index: 3;
    transition: transform 0.5s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.sky-theme-toggle.is-light .sky-toggle-thumb {
    transform: translateX(0px);
}

.sky-theme-toggle.is-dark .sky-toggle-thumb {
    transform: translateX(52px);
}

/* Sun Disc - Guaranteed 1:1 Aspect Ratio Perfect Circle */
.sun-disc {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
    background: radial-gradient(circle at 35% 35%, #fde047 0%, #eab308 60%, #ca8a04 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 2px 2px rgba(255, 255, 255, 0.7);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.sky-theme-toggle.is-light .sun-disc {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.sky-theme-toggle.is-dark .sun-disc {
    opacity: 0;
    transform: rotate(180deg) scale(0.4);
}

/* Moon Disc - Guaranteed 1:1 Aspect Ratio Perfect Circle */
.moon-disc {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
    background: radial-gradient(circle at 35% 35%, #f1f5f9 0%, #cbd5e1 55%, #94a3b8 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
    overflow: hidden;
}

.sky-theme-toggle.is-light .moon-disc {
    opacity: 0;
    transform: rotate(-180deg) scale(0.4);
}

.sky-theme-toggle.is-dark .moon-disc {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Moon Craters (3 Craters matching reference picture) */
.moon-crater {
    position: absolute;
    border-radius: 50%;
    background: #64748b;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(255, 255, 255, 0.3);
    opacity: 0.75;
}

.moon-crater-1 {
    top: 5px;
    right: 6px;
    width: 9px;
    height: 9px;
}

.moon-crater-2 {
    bottom: 4px;
    right: 8px;
    width: 11px;
    height: 11px;
}

.moon-crater-3 {
    top: 13px;
    left: 5px;
    width: 7px;
    height: 7px;
}

/* ==========================================================================
   SOFT TACTILE THEME TOGGLE SWITCH (EXACT MATCH TO USER REFERENCE IMAGES)
   ========================================================================== */

.top-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tactile-theme-toggle {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.toggle-track {
    position: relative;
    width: 110px;
    height: 42px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Track (matching user's Light image) */
.tactile-theme-toggle.is-light .toggle-track {
    background: #d4d7e3;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* Dark Mode Track (matching user's Dark image) */
.tactile-theme-toggle.is-dark .toggle-track {
    background: #181724;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6);
}

/* Text Labels */
.toggle-text {
    font-family: var(--cb-font);
    font-size: 13px;
    font-weight: 600;
    z-index: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.tactile-theme-toggle.is-light .text-dark { display: none; }
.tactile-theme-toggle.is-light .text-light {
    color: #ffffff;
    font-weight: 700;
    margin-left: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tactile-theme-toggle.is-dark .text-light { display: none; }
.tactile-theme-toggle.is-dark .text-dark {
    color: #8b8a9d;
    font-weight: 600;
    margin-right: auto;
}

/* Tactile Thumb Button */
.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.35s ease, box-shadow 0.35s ease;
    z-index: 2;
}

/* Light Mode Thumb Position & Aesthetics (exact matching white sun button) */
.tactile-theme-toggle.is-light .toggle-thumb {
    transform: translateX(0px);
    background: #ffffff;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 -2px 3px rgba(0, 0, 0, 0.08);
}

/* Dark Mode Thumb Position & Aesthetics (exact matching dark moon button) */
.tactile-theme-toggle.is-dark .toggle-thumb {
    transform: translateX(68px);
    background: #2a283a;
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.thumb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tactile-theme-toggle.is-light .moon-icon { display: none; }
.tactile-theme-toggle.is-light .sun-icon {
    display: flex;
    color: #334155;
}

.tactile-theme-toggle.is-dark .sun-icon { display: none; }
.tactile-theme-toggle.is-dark .moon-icon {
    display: flex;
    color: #ffffff;
}

/* Dark Mode Theme Overrides for CloudBoard Workspace */
body.dark-mode {
    background: #06050b;
}

body.dark-mode .cloudboard-app-frame {
    background: #0f0c1d;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

body.dark-mode .cloudboard-workspace {
    background: #0f0c1d;
    color: #f8fafc;
}

body.dark-mode .storage-widget-pill {
    background: #19152b;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .storage-label,
body.dark-mode .crumb.active,
body.dark-mode .cb-section-title,
body.dark-mode .cb-doc-title,
body.dark-mode .folder-name,
body.dark-mode .file-title {
    color: #f8fafc;
}

body.dark-mode .crumb-count-chip,
body.dark-mode .avatar-count-chip {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

body.dark-mode .cb-doc-card,
body.dark-mode .cb-folder-card.light-folder,
body.dark-mode .cb-table-wrapper {
    background: #171329;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .cb-doc-preview-area {
    background: #100d1e;
}

body.dark-mode .cb-filter-pill {
    background: #19152b;
    color: #94a3b8;
}

body.dark-mode .cb-filter-pill.active {
    background: var(--cb-purple-primary);
    color: #ffffff;
}

body.dark-mode .cb-data-table th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

body.dark-mode .cb-data-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

body.dark-mode .cb-data-table tr.selected-row {
    background: rgba(124, 58, 237, 0.15);
}

/* ==========================================
   LUMINA GLASS CRM DESIGN SYSTEM (STITCH)
   ========================================== */
:root {
    --lumina-bg: #0b1326;
    --lumina-surface: #0b1326;
    --lumina-surface-dim: #0b1326;
    --lumina-surface-bright: #31394d;
    --lumina-surface-container-lowest: #060e20;
    --lumina-surface-container-low: #131b2e;
    --lumina-surface-container: #171f33;
    --lumina-surface-container-high: #222a3d;
    --lumina-surface-container-highest: #2d3449;
    --lumina-on-surface: #dae2fd;
    --lumina-on-surface-variant: #c7c4d7;
    --lumina-outline: #908fa0;
    --lumina-outline-variant: #464554;
    --lumina-primary: #c0c1ff;
    --lumina-primary-container: #8083ff;
    --lumina-accent-blue: #6366f1;
    --lumina-secondary: #ddb7ff;
    --lumina-secondary-container: #6f00be;
    --lumina-tertiary: #4edea3;
    --lumina-tertiary-container: #00885d;
    --lumina-error: #ffb4ab;
    --lumina-error-container: #93000a;
    --lumina-font-headline: 'Plus Jakarta Sans', sans-serif;
    --lumina-font-body: 'Inter', sans-serif;
}

body.lumina-theme,
body.dark-mode {
    background-color: #0b1326 !important;
    color: #dae2fd !important;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glass Panel Component */
.glass-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-right-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Glow Line Utility */
.glow-line {
    box-shadow: 0 0 20px 2px currentColor;
}

/* Nueform Page Entrance & Interactive Styling */
@keyframes nueformReveal {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
        filter: blur(6px);
    }
    60% {
        opacity: 0.9;
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.auth-container,
.main-content,
.stat-card,
.panel-card {
    animation: nueformReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Tactile Active Feedback */
.btn:active,
.glass-panel:active,
.stat-card:active {
    transform: scale(0.985);
}

/* ==========================================================================
   IMAGE 1 REFERENCE MATCHING ULTRA-DARK GLASSMORPHISM FORM STYLES
   ========================================================================== */

.auth-form-container form {
    background: transparent !important;
}

.auth-form-container h2 {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

.auth-form-container p {
    color: rgba(218, 226, 253, 0.7) !important;
    font-size: 14px !important;
}

/* Translucent Dark Input Fields */
.auth-form-container .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.custom-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.custom-dropdown-item.selected {
    background: rgba(168, 85, 247, 0.18) !important;
}

.auth-form-container .form-control::placeholder {
    color: rgba(218, 226, 253, 0.45) !important;
}

.auth-form-container .form-control:focus {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(168, 85, 247, 0.7) !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    outline: none !important;
}

/* Vibrant Gradient Action Button (Matches Reference Image 1) */
.auth-form-container .btn-primary,
.auth-form-container .btn-accent {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%) !important;
    border-radius: 16px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 14px 24px !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 25px -4px rgba(236, 72, 153, 0.5), 0 4px 12px rgba(99, 102, 241, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

.auth-form-container .btn-primary:hover,
.auth-form-container .btn-accent:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 12px 32px -4px rgba(236, 72, 153, 0.7), 0 6px 20px rgba(99, 102, 241, 0.5) !important;
}

.auth-form-container .btn-primary:active,
.auth-form-container .btn-accent:active {
    transform: translateY(0) scale(0.985) !important;
}

/* Translucent Glass Overlay Side Panel */
.overlay {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.50) 0%, rgba(88, 28, 135, 0.45) 50%, rgba(157, 23, 77, 0.45) 100%) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.overlay-panel h1 {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 700 !important;
}

.overlay-panel p {
    color: rgba(218, 226, 253, 0.8) !important;
    font-size: 14px !important;
}

.overlay-panel .btn-secondary {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    padding: 11px 24px !important;
    font-weight: 600 !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.25s ease !important;
}

.overlay-panel .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   ENTERPRISE SAAS LIGHT MODE DESIGN SYSTEM (3 VISUAL LAYERS & CONTRAST)
   ========================================================================== */

/* LAYER 1: APPLICATION & CONTENT BACKGROUND */
html:not(.dark) body,
body.light-mode {
    background-color: #EEF2F6 !important;
    color: #1E293B !important;
}

html:not(.dark) main,
html:not(.dark) .main-content {
    background-color: #F3F5F8 !important;
}

html:not(.dark) #fluid-canvas {
    opacity: 0.25;
    transition: opacity 0.5s ease;
}

html.dark #fluid-canvas {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Stable Ambient Sky & Drifting Cloud System */
.sky-bg-viewport {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none !important;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, #0d1527 0%, #070e1f 60%, #030712 100%);
}

.sky-stars {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1.5px 1.5px at 15% 20%, rgba(255,255,255,0.7) 100%, transparent),
        radial-gradient(1px 1px at 35% 65%, rgba(255,255,255,0.5) 100%, transparent),
        radial-gradient(1.5px 1.5px at 60% 30%, rgba(255,255,255,0.6) 100%, transparent),
        radial-gradient(1px 1px at 80% 75%, rgba(255,255,255,0.5) 100%, transparent),
        radial-gradient(2px 2px at 90% 15%, rgba(243,112,33,0.8) 100%, transparent);
    opacity: 0.85;
}

.sky-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.sky-glow-orb.orb-1 {
    top: -10%; left: 20%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(243, 112, 33, 0.25), transparent 70%);
}
.sky-glow-orb.orb-2 {
    bottom: -10%; right: 15%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 70%);
}

/* Cloud Parallax Drift Tracks (Disabled) */
.cloud-drift-track, .sky-cloud {
    display: none !important;
}

.track-1 {
    animation: continuousCloudDrift 42s linear infinite;
    opacity: 0.85;
}

.track-2 {
    animation: continuousCloudDrift 28s linear infinite;
    top: 15vh;
    opacity: 0.95;
}

.cloud-group {
    position: absolute;
    display: flex;
    align-items: center;
}

.cloud-group.pos-1 { top: 5vh; left: 5vw; }
.cloud-group.pos-2 { top: 35vh; left: 45vw; }
.cloud-group.pos-3 { top: 65vh; left: 85vw; }

.cloud-group.pos-4 { top: 12vh; left: 20vw; }
.cloud-group.pos-5 { top: 50vh; left: 65vw; }

/* SVG Cloud Sizes & Illumination */
.sky-cloud {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.40)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.15));
}
.cloud-md  { width: 280px; height: 140px; }
.cloud-lg  { width: 380px; height: 190px; }
.cloud-xl  { width: 500px; height: 250px; }
.cloud-xxl { width: 620px; height: 310px; }

@keyframes continuousCloudDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50vw); }
}

/* TYPOGRAPHY & TEXT CONTRAST IN LIGHT MODE */
html:not(.dark) h1, html:not(.dark) h2, html:not(.dark) h3,
html:not(.dark) h4, html:not(.dark) h5, html:not(.dark) h6,
html:not(.dark) .text-white, html:not(.dark) .text-slate-100,
html:not(.dark) .text-slate-200, html:not(.dark) .text-on-surface {
    color: #1E293B !important;
}

html:not(.dark) .text-slate-300, html:not(.dark) .text-slate-400,
html:not(.dark) .text-on-surface-variant {
    color: #64748B !important;
}

html:not(.dark) .text-slate-500, html:not(.dark) .text-muted {
    color: #94A3B8 !important;
}

html:not(.dark) .text-brand-400, html:not(.dark) .text-brand-500 {
    color: #059669 !important;
}

html:not(.dark) .holographic-text {
    background: linear-gradient(135deg, #1E293B 0%, #334155 50%, #FF7A1A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* LAYER 2: SIDEBAR (#F6F8FB) & TOP NAVBAR (#FAFBFC) */
html:not(.dark) nav,
html:not(.dark) .sidebar,
html:not(.dark) #sidebar-nav {
    background-color: #F6F8FB !important;
    border-right: 1px solid #DCE4EC !important;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.03) !important;
    backdrop-filter: blur(20px) !important;
}

html:not(.dark) nav:not(#apple-dock-nav) a,
html:not(.dark) .sidebar a {
    color: #64748B !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html:not(.dark) nav:not(#apple-dock-nav) a:hover,
html:not(.dark) .sidebar a:hover {
    background-color: #EEF2F6 !important;
    color: #1E293B !important;
    transform: translateX(3px) !important;
}

html:not(.dark) nav a.text-brand-500,
html:not(.dark) nav a[class*="border-brand-500"],
html:not(.dark) .sidebar a.active {
    background-color: rgba(255, 122, 26, 0.12) !important;
    color: #FF7A1A !important;
    border-right: 4px solid #FF7A1A !important;
    box-shadow: 0 4px 14px rgba(255, 122, 26, 0.15) !important;
    font-weight: 700 !important;
}

html:not(.dark) header,
html:not(.dark) .dashboard-header {
    background-color: rgba(250, 251, 252, 0.90) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid #DCE4EC !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

html:not(.dark) header button {
    color: #64748B !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}

html:not(.dark) header button:hover {
    background-color: #EEF2F6 !important;
    color: #1E293B !important;
}

html:not(.dark) header .bg-white\/5,
html:not(.dark) header form div,
html:not(.dark) .floating-search-bar {
    background-color: #F8FAFC !important;
    border: 1px solid #DCE4EC !important;
    border-radius: 12px !important;
}

html:not(.dark) header input {
    color: #1E293B !important;
}

html:not(.dark) header input::placeholder {
    color: #94A3B8 !important;
}

/* LAYER 3: FLOATING CARDS & CONTENT (#FFFFFF) */
html:not(.dark) .ultra-glass,
html:not(.dark) .glass-panel,
html:not(.dark) .stat-card,
html:not(.dark) .panel-card,
html:not(.dark) .card,
html:not(.dark) [class*="bg-surface-container"] {
    background-color: #FFFFFF !important;
    border: 1px solid #DCE4EC !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
    color: #1E293B !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease !important;
}

html:not(.dark) .ultra-glass:hover,
html:not(.dark) .glass-panel:hover,
html:not(.dark) .stat-card:hover,
html:not(.dark) .panel-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(255, 122, 26, 0.4) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12), 0 0 20px rgba(255, 122, 26, 0.08) !important;
}

/* SUBTLE TINTED MODULE CARDS IN LIGHT MODE */
/* Attendance: Very light green */
html:not(.dark) .card-attendance,
html:not(.dark) [data-module="attendance"],
html:not(.dark) .ultra-glass:has(.text-emerald-400),
html:not(.dark) .ultra-glass:has(.text-emerald-500),
html:not(.dark) .ultra-glass:has(.text-green-400),
html:not(.dark) .ultra-glass:has(.text-green-500) {
    background-color: #F0FDF4 !important;
    border-color: #BBF7D0 !important;
}

/* Finance: Very light orange */
html:not(.dark) .card-finance,
html:not(.dark) [data-module="finance"],
html:not(.dark) .ultra-glass:has(.text-amber-400),
html:not(.dark) .ultra-glass:has(.text-amber-500),
html:not(.dark) .ultra-glass:has(.text-orange-400) {
    background-color: #FFF7ED !important;
    border-color: #FED7AA !important;
}

/* Certificates: Very light purple */
html:not(.dark) .card-certificates,
html:not(.dark) [data-module="certificates"],
html:not(.dark) .ultra-glass:has(.text-purple-400),
html:not(.dark) .ultra-glass:has(.text-purple-500),
html:not(.dark) .ultra-glass:has(.text-violet-400) {
    background-color: #FAF5FF !important;
    border-color: #E9D5FF !important;
}

/* Inventory: Very light blue */
html:not(.dark) .card-inventory,
html:not(.dark) [data-module="inventory"],
html:not(.dark) .ultra-glass:has(.text-blue-400),
html:not(.dark) .ultra-glass:has(.text-blue-500),
html:not(.dark) .ultra-glass:has(.text-sky-400) {
    background-color: #EFF6FF !important;
    border-color: #BFDBFE !important;
}

/* Reports: Very light gray */
html:not(.dark) .card-reports,
html:not(.dark) [data-module="reports"],
html:not(.dark) .ultra-glass:has(.text-slate-400) {
    background-color: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

/* FORM CONTROLS & INPUTS IN LIGHT MODE */
html:not(.dark) input,
html:not(.dark) select,
html:not(.dark) textarea,
html:not(.dark) .form-control,
html:not(.dark) .glass-input {
    background-color: #F8FAFC !important;
    border: 1px solid #DCE4EC !important;
    color: #1E293B !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color-scheme: light !important;
}

html:not(.dark) input::placeholder,
html:not(.dark) textarea::placeholder {
    color: #94A3B8 !important;
}

html:not(.dark) input:focus,
html:not(.dark) select:focus,
html:not(.dark) textarea:focus,
html:not(.dark) .form-control:focus,
html:not(.dark) .glass-input:focus {
    background-color: #FFFFFF !important;
    border-color: #FF7A1A !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18) !important;
    outline: none !important;
}

/* TABLES IN LIGHT MODE */
html:not(.dark) table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

html:not(.dark) table th {
    background-color: #FAFBFC !important;
    color: #64748B !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #DCE4EC !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    padding: 14px 18px !important;
}

html:not(.dark) table td {
    border-bottom: 1px solid #DCE4EC !important;
    color: #1E293B !important;
    padding: 14px 18px !important;
}

html:not(.dark) table tbody tr:nth-child(odd) {
    background-color: #FFFFFF !important;
}

html:not(.dark) table tbody tr:nth-child(even) {
    background-color: #F8FAFC !important;
}

html:not(.dark) table tbody tr:hover {
    background-color: #F1F5F9 !important;
}

/* BUTTONS IN LIGHT MODE */
html:not(.dark) .btn-primary,
html:not(.dark) .btn-shimmer,
html:not(.dark) .btn-accent,
html:not(.dark) button[class*="bg-brand-500"],
html:not(.dark) a[class*="bg-brand-500"] {
    background: linear-gradient(135deg, #FF833B 0%, #FF7A1A 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 6px 16px rgba(255, 122, 26, 0.25) !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html:not(.dark) .btn-primary:hover,
html:not(.dark) .btn-shimmer:hover,
html:not(.dark) .btn-accent:hover,
html:not(.dark) button[class*="bg-brand-500"]:hover,
html:not(.dark) a[class*="bg-brand-500"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(255, 122, 26, 0.38) !important;
}

html:not(.dark) .btn-secondary {
    background-color: #F1F5F9 !important;
    border: 1px solid #DCE4EC !important;
    color: #1E293B !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html:not(.dark) .btn-secondary:hover {
    background-color: #E2E8F0 !important;
    transform: translateY(-1px) !important;
    border-color: #CBD5E1 !important;
}

/* DROPDOWN MENUS & DIVIDERS IN LIGHT MODE */
html:not(.dark) #user-dropdown-menu {
    background-color: #FFFFFF !important;
    border: 1px solid #DCE4EC !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
    border-radius: 16px !important;
}

html:not(.dark) #user-dropdown-menu p {
    color: #1E293B !important;
}

html:not(.dark) .border-white\/5,
html:not(.dark) .border-white\/10,
html:not(.dark) .border-white\/15,
html:not(.dark) .border-white\/20 {
    border-color: #DCE4EC !important;
}

html:not(.dark) .divide-white\/5 > :not([hidden]) ~ :not([hidden]),
html:not(.dark) .divide-white\/10 > :not([hidden]) ~ :not([hidden]) {
    border-color: #DCE4EC !important;
}

/* ==========================================================================
   APPLE DOCK NAVIGATION COMPONENT STYLES
   ========================================================================== */
.apple-dock-glass {
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 20px rgba(243, 112, 33, 0.15);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html:not(.dark) .apple-dock-glass {
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4) !important;
}

.apple-dock-tile {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1.2), box-shadow 0.2s ease;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
}

.apple-dock-tile:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 15px rgba(255, 255, 255, 0.25);
}

.apple-dock-tooltip {
    position: absolute;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%) translateY(4px) scale(0.95);
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 60;
}

html:not(.dark) .apple-dock-tooltip {
    background: rgba(30, 41, 59, 0.92);
    color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.3);
}

.apple-dock-item:hover .apple-dock-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.apple-dock-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

html:not(.dark) .apple-dock-divider {
    background: rgba(203, 213, 225, 0.8);
}

/* ==========================================================================
   LOTECH NEON EMERALD CRM THEME SYSTEM
   ========================================================================== */

/* Pitch Slate Card Panels */
.lotech-card {
    background: #14161d !important;
    border: 1px solid #232632 !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.lotech-card:hover {
    border-color: rgba(0, 255, 102, 0.3) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 102, 0.06) !important;
}

/* Electric Lime Primary Pill Action Button ("Export CSV" & Active Nav) */
.lotech-btn-primary {
    background: linear-gradient(135deg, #00ff66 0%, #10b981 100%) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 8px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 255, 102, 0.35) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.lotech-btn-primary:hover {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 6px 24px rgba(0, 255, 102, 0.5) !important;
    background: linear-gradient(135deg, #26ff7b 0%, #059669 100%) !important;
}

/* Dark Pill Sub-Actions ("Add Widget", "Last 30 Days") */
.lotech-btn-dark {
    background: #191c26 !important;
    color: #d1d5db !important;
    border: 1px solid #2b3040 !important;
    border-radius: 9999px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.lotech-btn-dark:hover {
    background: #222634 !important;
    color: #ffffff !important;
    border-color: #3b4257 !important;
}

/* Neon Emerald Active Navigation Pill */
.lotech-nav-active {
    background: linear-gradient(135deg, #00ff66 0%, #10b981 100%) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 255, 102, 0.4) !important;
}
.lotech-nav-active * {
    color: #000000 !important;
}

/* Chart Bar Visual Accents */
.lotech-bar-lime {
    background: #00ff66 !important;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.6) !important;
}

.lotech-bar-amber {
    background: linear-gradient(to top, #ea580c 0%, #f97316 100%) !important;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4) !important;
}

.lotech-bar-fire {
    background: linear-gradient(to top, #ef4444 0%, #f97316 50%, #eab308 100%) !important;
}

.lotech-purple-gradient {
    background: linear-gradient(to top, #8b5cf6 0%, #ec4899 100%) !important;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4) !important;
}

/* ==========================================================================
   UROOS CHINESE BLACK & NAPLES YELLOW DASHBOARD THEME SYSTEM
   ========================================================================== */
.font-script {
    font-family: 'Pacifico', cursive !important;
}

.uroos-card {
    background: #242424 !important;
    border: 1px solid #2f3434 !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4) !important;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease !important;
}

.uroos-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5) !important;
}

.uroos-subcard {
    background: #282C2C !important;
    border: 1px solid #333838 !important;
    border-radius: 18px !important;
}

/* Vibrant Glowing Top Metric Cards - Lumina Glass System */
.uroos-card-cyan {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, rgba(6, 95, 70, 0.45) 100%) !important;
    color: #ffffff !important;
    border-radius: 26px !important;
    border: 1.5px solid rgba(16, 185, 129, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 12px 40px -10px rgba(16, 185, 129, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.uroos-card-cyan:hover {
    box-shadow: 0 20px 50px -10px rgba(16, 185, 129, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(52, 211, 153, 0.85) !important;
    transform: translateY(-2px);
}

.uroos-card-yellow {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(146, 64, 14, 0.45) 100%) !important;
    color: #ffffff !important;
    border-radius: 26px !important;
    border: 1.5px solid rgba(245, 158, 11, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 12px 40px -10px rgba(245, 158, 11, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.uroos-card-yellow:hover {
    box-shadow: 0 20px 50px -10px rgba(245, 158, 11, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(251, 191, 36, 0.85) !important;
    transform: translateY(-2px);
}

.uroos-card-pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.28) 0%, rgba(131, 24, 67, 0.45) 100%) !important;
    color: #ffffff !important;
    border-radius: 26px !important;
    border: 1.5px solid rgba(236, 72, 153, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 12px 40px -10px rgba(236, 72, 153, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.uroos-card-pink:hover {
    box-shadow: 0 20px 50px -10px rgba(236, 72, 153, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(244, 114, 182, 0.85) !important;
    transform: translateY(-2px);
}

.uroos-btn-yellow {
    background: #FAD85D !important;
    color: #151717 !important;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 8px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 16px rgba(250, 216, 93, 0.35) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.uroos-btn-yellow:hover {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 6px 24px rgba(250, 216, 93, 0.5) !important;
    background: #ffe375 !important;
}

/* Connector notches on edges of Uroos metric cards */
.uroos-card-notch-left {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 36px;
    background-color: #151717;
    border-radius: 0 16px 16px 0;
    z-index: 20;
}
.uroos-card-notch-right {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 36px;
    background-color: #151717;
    border-radius: 16px 0 0 16px;
    z-index: 20;
}

/* ==========================================================================
   ENTERPRISE SAAS LIGHT MODE DESIGN SYSTEM (Apple + Linear + Arc + Vercel)
   ========================================================================== */

html.light-mode,
body.light-mode,
body.light-mode .min-h-screen,
body.light-mode [class*="bg-[#151717]"],
body.light-mode [class*="bg-[#060a17]"],
body.light-mode [class*="bg-[#090d16]"] {
    background-color: #F8FAFC !important;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(254, 215, 170, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(186, 230, 253, 0.35) 0%, transparent 45%),
        linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%) !important;
    background-attachment: fixed !important;
    color: #0F172A !important;
}

/* NAVBAR (Semi-transparent white with blur & bottom border shadow) */
body.light-mode header,
body.light-mode header[class*="bg-"] {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid #CBD5E1 !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
}

body.light-mode header .text-white,
body.light-mode header .text-slate-200,
body.light-mode header .text-slate-300 {
    color: #0F172A !important;
}

body.light-mode header .text-slate-400 {
    color: #64748B !important;
}

/* Header Search Input & Action Buttons in Light Mode */
body.light-mode header [class*="bg-[#282C2C]"] {
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

body.light-mode header input {
    color: #0F172A !important;
}

body.light-mode header input::placeholder {
    color: #94A3B8 !important;
}

body.light-mode header input:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
}

/* Notification & Search Header Tile Buttons */
body.light-mode header [class*="bg-[#191c26]"],
body.light-mode header button[class*="bg-[#191c26]"] {
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #475569 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06) !important;
}

body.light-mode header button[class*="bg-[#191c26]"]:hover {
    background-color: #F8FAFC !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
}

body.light-mode header button[class*="bg-[#191c26]"] .material-symbols-outlined {
    color: #475569 !important;
}

/* User Menu & Dropdown in Light Mode */
body.light-mode #user-menu-container {
    border-color: #CBD5E1 !important;
}

body.light-mode #user-dropdown-menu,
body.light-mode [class*="bg-[#14161d]"],
body.light-mode .dropdown-menu {
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.14) !important;
    color: #0F172A !important;
}

body.light-mode #user-dropdown-menu p.text-white,
body.light-mode #user-dropdown-menu span,
body.light-mode #user-dropdown-menu a {
    color: #0F172A !important;
}

body.light-mode #user-dropdown-menu [class*="border-"] {
    border-color: #E2E8F0 !important;
}

/* CARDS, PANELS, CONTAINER BOXES & BENTO GRIDS IN LIGHT MODE */
body.light-mode [class*="bg-slate-900"],
body.light-mode [class*="bg-slate-950"],
body.light-mode [class*="bg-slate-850"],
body.light-mode [class*="bg-slate-800"],
body.light-mode [class*="bg-[#14161d]"],
body.light-mode [class*="bg-[#151717]"],
body.light-mode [class*="bg-[#191c26]"],
body.light-mode [class*="bg-[#242424]"],
body.light-mode [class*="bg-[#1c1d22]"],
body.light-mode [class*="bg-[#181a20]"],
body.light-mode [class*="bg-[#17181c]"],
body.light-mode [class*="bg-[#1e1f26]"],
body.light-mode [class*="bg-[#12141a]"],
body.light-mode [class*="bg-[#111318]"],
body.light-mode [class*="bg-[#1a1c23]"],
body.light-mode [class*="bg-[#0d1322]"],
body.light-mode [class*="bg-[#13151c]"],
body.light-mode [class*="bg-[#1b1e2b]"],
body.light-mode [class*="bg-[#1a1d26]"],
body.light-mode [class*="bg-[#282C2C]"],
body.light-mode [class*="from-slate-900"],
body.light-mode [class*="from-slate-950"],
body.light-mode [class*="from-black"],
body.light-mode .ultra-glass,
body.light-mode .bento-card,
body.light-mode .card-surface,
body.light-mode .lotech-card,
body.light-mode .uroos-card,
body.light-mode .glass-panel {
    background-color: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04) !important;
    color: #0F172A !important;
}

/* MODALS & OVERLAYS IN LIGHT MODE */
body.light-mode [class*="bg-black/"],
body.light-mode .fixed.inset-0.bg-black\/70 {
    background-color: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(8px) !important;
}

body.light-mode [id*="Modal"] > div,
body.light-mode [id*="modal"] > div,
body.light-mode .modal-content {
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    color: #0F172A !important;
}

/* INPUTS, SELECTS, & TEXTAREAS IN LIGHT MODE */
body.light-mode input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not(.sky-theme-toggle),
body.light-mode select,
body.light-mode textarea {
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}

body.light-mode input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not(.sky-theme-toggle):focus,
body.light-mode select:focus,
body.light-mode textarea:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
    outline: none !important;
}

body.light-mode select option,
body.light-mode select optgroup {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
    color: #94A3B8 !important;
    opacity: 1 !important;
}

/* BORDERS IN LIGHT MODE */
body.light-mode [class*="border-white"],
body.light-mode [class*="border-[#2e3232]"],
body.light-mode [class*="border-[#333838]"],
body.light-mode [class*="border-[#242828]"],
body.light-mode [class*="border-[#232632]"] {
    border-color: #CBD5E1 !important;
}

/* TABLES IN LIGHT MODE */
body.light-mode table thead tr,
body.light-mode table th {
    background-color: #F1F5F9 !important;
    color: #334155 !important;
    border-bottom: 2px solid #CBD5E1 !important;
    font-weight: 800 !important;
}

body.light-mode table tbody tr {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

body.light-mode table tbody tr:nth-child(even) {
    background-color: #F8FAFC !important;
}

body.light-mode table tbody tr:hover {
    background-color: #EEF4FF !important;
}

body.light-mode table td {
    color: #0F172A !important;
}

/* TYPOGRAPHY HIERARCHY IN LIGHT MODE */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode .text-white,
body.light-mode td.text-white,
body.light-mode span.text-white,
body.light-mode div.text-white,
body.light-mode p.text-white,
body.light-mode .text-slate-100,
body.light-mode .text-slate-200 {
    color: #0F172A !important;
}

body.light-mode .text-slate-300,
body.light-mode .text-slate-400 {
    color: #475569 !important;
}

body.light-mode .text-slate-500 {
    color: #64748B !important;
}

/* SVG Chart lines in Light Mode */
body.light-mode line[stroke="#2e3232"],
body.light-mode line[stroke="rgba(255,255,255,0.1)"] {
    stroke: #CBD5E1 !important;
}

/* BUTTONS IN LIGHT MODE */
/* Primary Action Buttons */
body.light-mode .uroos-btn-yellow,
body.light-mode .btn-primary,
body.light-mode button.bg-\[\#FAD85D\],
body.light-mode .lotech-btn-primary {
    background-color: #F5B300 !important;
    color: #111827 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(245, 179, 0, 0.22) !important;
    transition: all 0.2s ease !important;
}

body.light-mode .uroos-btn-yellow:hover,
body.light-mode .btn-primary:hover,
body.light-mode button.bg-\[\#FAD85D\]:hover,
body.light-mode .lotech-btn-primary:hover {
    background-color: #E3A200 !important;
    box-shadow: 0 6px 20px rgba(245, 179, 0, 0.32) !important;
}

/* Secondary Buttons */
body.light-mode .btn-secondary,
body.light-mode button[class*="bg-white/10"],
body.light-mode button[class*="bg-slate-800"] {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.2s ease !important;
}

body.light-mode .btn-secondary:hover,
body.light-mode button[class*="bg-white/10"]:hover,
body.light-mode button[class*="bg-slate-800"]:hover {
    background-color: #F8FAFC !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
}

/* ATTENDANCE & STATUS PILLS IN LIGHT MODE */
.bg-emerald-500,
button.bg-emerald-500,
body.light-mode button.bg-emerald-500,
body.light-mode .bg-emerald-500 {
    background-color: #10B981 !important;
    color: #FFFFFF !important;
    border: none !important;
}

.bg-rose-500,
button.bg-rose-500,
body.light-mode button.bg-rose-500,
body.light-mode .bg-rose-500 {
    background-color: #F43F5E !important;
    color: #FFFFFF !important;
    border: none !important;
}

.bg-amber-500,
button.bg-amber-500,
body.light-mode button.bg-amber-500,
body.light-mode .bg-amber-500 {
    background-color: #F59E0B !important;
    color: #FFFFFF !important;
    border: none !important;
}

/* Status Pills */
body.light-mode [class*="bg-emerald-500/"],
body.light-mode .status-present {
    background-color: #DCFCE7 !important;
    color: #15803D !important;
    border: 1px solid rgba(21, 128, 61, 0.2) !important;
}

body.light-mode [class*="bg-amber-500/"],
body.light-mode .status-late {
    background-color: #FEF3C7 !important;
    color: #B45309 !important;
    border: 1px solid rgba(180, 83, 9, 0.2) !important;
}

body.light-mode [class*="bg-rose-500/"],
body.light-mode [class*="bg-red-500/"],
body.light-mode .status-absent {
    background-color: #FEE2E2 !important;
    color: #B91C1C !important;
    border: 1px solid rgba(185, 28, 28, 0.2) !important;
}

body.light-mode [class*="bg-cyan-500/"] {
    background-color: #E0F2FE !important;
    color: #0369A1 !important;
    border: 1px solid rgba(3, 105, 161, 0.2) !important;
}

body.light-mode [class*="bg-purple-500/"] {
    background-color: #F3E8FF !important;
    color: #6B21A8 !important;
    border: 1px solid rgba(107, 33, 168, 0.2) !important;
}

/* NAVIGATION DOCK IN LIGHT MODE */
body.light-mode #mac-dock,
body.light-mode .dock-container,
body.light-mode nav.fixed {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .uroos-card-notch-left,
body.light-mode .uroos-card-notch-right {
    background-color: #E2E8F0 !important;
}

/* ==========================================================================
   UIVERSE ANIMATED NOTIFICATION BELL BUTTON (by 3bdel3ziz-T)
   ========================================================================== */
.notification-uiverse-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms ease;
}

.notification-uiverse-btn:hover {
    background: rgba(170, 170, 170, 0.12) !important;
}

.notification-uiverse-btn:hover .bell-container {
    animation: bell-animation 650ms ease-out 0s 1 normal both;
}

/* Pure CSS Bell Shape (Optional standalone variant) */
.bell-css-icon {
    border: 2px solid currentColor;
    border-radius: 10px 10px 0 0;
    width: 15px;
    height: 17px;
    background: transparent;
    display: block;
    position: relative;
    top: -2px;
}

.bell-css-icon::before,
.bell-css-icon::after {
    content: "";
    background: currentColor;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
}

.bell-css-icon::before {
    top: 100%;
    width: 19px;
}

.bell-css-icon::after {
    top: calc(100% + 4px);
    width: 7px;
}

/* Bell ring and scale animation */
@keyframes bell-animation {
    20% {
        transform: rotate(15deg);
    }
    40% {
        transform: rotate(-15deg) scale(1.15);
    }
    60% {
        transform: rotate(10deg) scale(1.15);
    }
    80% {
        transform: rotate(-10deg);
    }
    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }
}


/* ════════════════════════════════════════════════════════════════════════════
   HAMSTER WHEEL LOADER — Global Page Loading Overlay
   From UIverse.io by Nawsome
   ════════════════════════════════════════════════════════════════════════════ */

/* Fullscreen overlay */
#crm-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(13, 15, 20, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#crm-loader-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

#crm-loader-overlay .loader-label {
    color: #e2e8f0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ── Hamster widget ─────────────────────────────────────────────── */
.wheel-and-hamster {
    --dur: 1s;
    position: relative;
    width: 12em;
    height: 12em;
    font-size: 14px;
}

.wheel-and-hamster .wheel,
.wheel-and-hamster .hamster,
.wheel-and-hamster .hamster div,
.wheel-and-hamster .spoke {
    position: absolute;
}

.wheel-and-hamster .wheel,
.wheel-and-hamster .spoke {
    border-radius: 50%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wheel-and-hamster .wheel {
    background: radial-gradient(100% 100% at center, hsla(0,0%,60%,0) 47.8%, hsl(0,0%,60%) 48%);
    z-index: 2;
}

.wheel-and-hamster .hamster {
    animation: hamster var(--dur) ease-in-out infinite;
    top: 50%;
    left: calc(50% - 3.5em);
    width: 7em;
    height: 3.75em;
    transform: rotate(4deg) translate(-0.8em, 1.85em);
    transform-origin: 50% 0;
    z-index: 1;
}

.wheel-and-hamster .hamster__head {
    animation: hamsterHead var(--dur) ease-in-out infinite;
    background: hsl(30,90%,55%);
    border-radius: 70% 30% 0 100% / 40% 25% 25% 60%;
    box-shadow: 0 -0.25em 0 hsl(30,90%,80%) inset, 0.75em -1.55em 0 hsl(30,90%,90%) inset;
    top: 0;
    left: -2em;
    width: 2.75em;
    height: 2.5em;
    transform-origin: 100% 50%;
}

.wheel-and-hamster .hamster__ear {
    animation: hamsterEar var(--dur) ease-in-out infinite;
    background: hsl(0,90%,85%);
    border-radius: 50%;
    box-shadow: -0.25em 0 hsl(30,90%,55%) inset;
    top: -0.25em;
    right: -0.25em;
    width: 0.75em;
    height: 0.75em;
    transform-origin: 50% 75%;
}

.wheel-and-hamster .hamster__eye {
    animation: hamsterEye var(--dur) linear infinite;
    background-color: hsl(0,0%,0%);
    border-radius: 50%;
    top: 0.375em;
    left: 1.25em;
    width: 0.5em;
    height: 0.5em;
}

.wheel-and-hamster .hamster__nose {
    background: hsl(0,90%,75%);
    border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%;
    top: 0.75em;
    left: 0;
    width: 0.2em;
    height: 0.25em;
}

.wheel-and-hamster .hamster__body {
    animation: hamsterBody var(--dur) ease-in-out infinite;
    background: hsl(30,90%,90%);
    border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%;
    box-shadow: 0.1em 0.75em 0 hsl(30,90%,55%) inset, 0.15em -0.5em 0 hsl(30,90%,80%) inset;
    top: 0.25em;
    left: 2em;
    width: 4.5em;
    height: 3em;
    transform-origin: 17% 50%;
    transform-style: preserve-3d;
}

.wheel-and-hamster .hamster__limb--fr,
.wheel-and-hamster .hamster__limb--fl {
    clip-path: polygon(0 0, 100% 0, 70% 80%, 60% 100%, 0% 100%, 40% 80%);
    top: 2em;
    left: 0.5em;
    width: 1em;
    height: 1.5em;
    transform-origin: 50% 0;
}

.wheel-and-hamster .hamster__limb--fr {
    animation: hamsterFRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30,90%,80%) 80%, hsl(0,90%,75%) 80%);
    transform: rotate(15deg) translateZ(-1px);
}

.wheel-and-hamster .hamster__limb--fl {
    animation: hamsterFLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30,90%,90%) 80%, hsl(0,90%,85%) 80%);
    transform: rotate(15deg);
}

.wheel-and-hamster .hamster__limb--br,
.wheel-and-hamster .hamster__limb--bl {
    border-radius: 0.75em 0.75em 0 0;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 70% 90%, 70% 100%, 30% 100%, 40% 90%, 0% 30%);
    top: 1em;
    left: 2.8em;
    width: 1.5em;
    height: 2.5em;
    transform-origin: 50% 30%;
}

.wheel-and-hamster .hamster__limb--br {
    animation: hamsterBRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30,90%,80%) 90%, hsl(0,90%,75%) 90%);
    transform: rotate(-25deg) translateZ(-1px);
}

.wheel-and-hamster .hamster__limb--bl {
    animation: hamsterBLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30,90%,90%) 90%, hsl(0,90%,85%) 90%);
    transform: rotate(-25deg);
}

.wheel-and-hamster .hamster__tail {
    animation: hamsterTail var(--dur) linear infinite;
    background: hsl(0,90%,85%);
    border-radius: 0.25em 50% 50% 0.25em;
    box-shadow: 0 -0.2em 0 hsl(0,90%,75%) inset;
    top: 1.5em;
    right: -0.5em;
    width: 1em;
    height: 0.5em;
    transform: rotate(30deg) translateZ(-1px);
    transform-origin: 0.25em 0.25em;
}

.wheel-and-hamster .spoke {
    animation: spoke var(--dur) linear infinite;
    background:
        radial-gradient(100% 100% at center, hsl(0,0%,60%) 4.8%, hsla(0,0%,60%,0) 5%),
        linear-gradient(hsla(0,0%,55%,0) 46.9%, hsl(0,0%,65%) 47% 52.9%, hsla(0,0%,65%,0) 53%)
        50% 50% / 99% 99% no-repeat;
}

/* ── Hamster keyframes ───────────────────────────────────────────── */
@keyframes hamster {
    from, to { transform: rotate(4deg) translate(-0.8em, 1.85em); }
    50%       { transform: rotate(0) translate(-0.8em, 1.85em); }
}
@keyframes hamsterHead {
    from, 25%, 50%, 75%, to   { transform: rotate(0); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(8deg); }
}
@keyframes hamsterEye {
    from, 90%, to { transform: scaleY(1); }
    95%            { transform: scaleY(0); }
}
@keyframes hamsterEar {
    from, 25%, 50%, 75%, to   { transform: rotate(0); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(12deg); }
}
@keyframes hamsterBody {
    from, 25%, 50%, 75%, to   { transform: rotate(0); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-2deg); }
}
@keyframes hamsterFRLimb {
    from, 25%, 50%, 75%, to    { transform: rotate(50deg) translateZ(-1px); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-30deg) translateZ(-1px); }
}
@keyframes hamsterFLLimb {
    from, 25%, 50%, 75%, to    { transform: rotate(-30deg); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(50deg); }
}
@keyframes hamsterBRLimb {
    from, 25%, 50%, 75%, to    { transform: rotate(-60deg) translateZ(-1px); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(20deg) translateZ(-1px); }
}
@keyframes hamsterBLLimb {
    from, 25%, 50%, 75%, to    { transform: rotate(20deg); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-60deg); }
}
@keyframes hamsterTail {
    from, 25%, 50%, 75%, to    { transform: rotate(30deg) translateZ(-1px); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(10deg) translateZ(-1px); }
}
@keyframes spoke {
    from { transform: rotate(0); }
    to   { transform: rotate(-1turn); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODERN GLASSMORPHIC SEARCH BAR COMPONENT
   ═══════════════════════════════════════════════════════════════════════════ */
.modern-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 380px;
    background: rgba(26, 34, 52, 0.75) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 16px !important;
    padding: 4px 8px 4px 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modern-search-box:focus-within,
.modern-search-box:hover {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(243, 112, 33, 0.6) !important;
    box-shadow: 0 0 25px rgba(243, 112, 33, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.modern-search-icon {
    color: #f37021;
    font-size: 20px !important;
    margin-right: 10px;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.modern-search-box:focus-within .modern-search-icon {
    transform: scale(1.15);
    color: #ff833b;
}

.modern-search-input,
.modern-search-box input {
    width: 100%;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 0;
}

.modern-search-input:focus,
.modern-search-input:hover,
.modern-search-box input:focus,
.modern-search-box input:hover {
    background: transparent !important;
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.modern-search-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400;
}

.modern-search-badge {
    display: none !important;
}

/* ==========================================================================
   PILL SEARCH BAR (Seamless Glass Pill Replica)
   ========================================================================== */
.pill-search-container {
    position: relative !important;
    background: #FFFFFF !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 4px 0 20px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
}

.pill-search-container:focus-within {
    box-shadow: 0 14px 38px -5px rgba(0, 0, 0, 0.24), 0 6px 16px rgba(0, 0, 0, 0.10) !important;
    transform: translateY(-1px);
}

.pill-search-input,
.pill-search-container input,
body.light-mode input.pill-search-input,
body.light-mode .pill-search-container input {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #1E293B !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 46px 0 0 !important;
    margin: 0 !important;
}

.pill-search-input:focus,
.pill-search-container input:focus,
body.light-mode input.pill-search-input:focus {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.pill-search-input:-webkit-autofill,
.pill-search-input:-webkit-autofill:hover,
.pill-search-input:-webkit-autofill:focus,
.pill-search-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #1e293b !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.pill-search-input::-webkit-search-decoration,
.pill-search-input::-webkit-search-cancel-button,
.pill-search-input::-webkit-search-results-button,
.pill-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    appearance: none !important;
}

.pill-search-input::placeholder {
    color: #94A3B8 !important;
    font-weight: 400 !important;
}

.pill-search-btn {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background-color: #222222 !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 10 !important;
}

.pill-search-btn:hover {
    background-color: #000000 !important;
    transform: translateY(-50%) scale(1.06) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38) !important;
}

.pill-search-btn:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.pill-search-btn .material-symbols-outlined {
    font-size: 20px !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVE OPTIMIZATIONS (Whole Site & Admin Panel)
   ========================================================================== */
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Top Navigation Header mobile compact layout */
    header {
        padding-left: 12px !important;
        padding-right: 12px !important;
        height: 64px !important;
    }

    /* Main content padding clearing bottom Apple Dock */
    main, .min-h-screen {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-bottom: 110px !important;
    }

    /* Data Table responsive auto-scrolling containers */
    .overflow-x-auto, 
    .table-responsive,
    .table-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 16px !important;
    }

    table {
        min-width: 580px !important;
    }

    /* Grid cards stack cleanly into single column */
    .grid-cols-2, .grid-cols-3, .grid-cols-4, .lg\:grid-cols-4, .md\:grid-cols-3, .sm\:grid-cols-2 {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    /* Modal dialogs fit mobile screen bounds */
    .modal-content, .dialog-content, [role="dialog"] {
        width: 95vw !important;
        max-width: 95vw !important;
        padding: 16px !important;
        border-radius: 20px !important;
    }

    /* Form input fields touch target height */
    input:not([type="checkbox"]):not([type="radio"]):not(.sky-theme-toggle),
    select,
    textarea {
        font-size: 14px !important;
        padding: 10px 14px !important;
    }
}

/* ==========================================================================
   GLOBAL TOAST NOTIFICATIONS — TOP RIGHT CORNER POSITIONING
   ========================================================================== */
#toast-container,
.toast-container {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    pointer-events: none !important;
}

/* ==========================================================================
   NOTIFICATION CARD UI (MATCHING SPEC)
   ========================================================================== */
.ui-toast-card {
    width: 360px;
    max-width: 90vw;
    background: rgba(20, 26, 40, 0.92) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    padding: 16px !important;
    position: relative;
    pointer-events: auto !important;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
}

.ui-toast-card.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ui-toast-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.ui-toast-icon-box {
    width: 48px;
    height: 48px;
    background-color: #1a1a2f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f37021;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ui-toast-content {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.ui-toast-title {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.3;
}

.ui-toast-subtitle {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.35;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-toast-detail {
    font-size: 12.5px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.ui-toast-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000000;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ui-toast-action-btn:hover {
    background: #1e293b;
    transform: translateY(-1px) scale(1.02);
    border-color: rgba(243, 112, 33, 0.5);
}

.ui-toast-arrow-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.ui-toast-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ui-toast-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   GLOW BUTTON SYSTEM (Green Edge Glow for Approve & Red Edge Glow for Decline)
   ========================================================================== */
.btn-glow-wrap {
    position: relative;
    padding: 2px;
    border-radius: 0.65rem;
    transition: all 0.4s ease;
    display: inline-block;
}

.btn-glow-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 0.65rem;
    z-index: 0;
    filter: blur(0);
    transition: filter 0.4s ease;
}

.btn-glow-wrap:hover::before {
    filter: blur(0.75em);
}

.btn-glow-wrap:active::before {
    filter: blur(0.15em);
}

/* Green Edge Glow for Approve */
.btn-glow-green {
    background: linear-gradient(90deg, #10b981, #10F3B9);
}
.btn-glow-green::before {
    background: linear-gradient(90deg, #10b981, #10F3B9);
}

/* Red Edge Glow for Decline */
.btn-glow-red {
    background: linear-gradient(90deg, #f43f5e, #ef4444);
}
.btn-glow-red::before {
    background: linear-gradient(90deg, #f43f5e, #ef4444);
}

/* Inner Button element */
.btn-glow-inner {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45em 0.85em;
    border-radius: 0.55rem;
    border: none;
    background-color: #060a17;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-glow-inner:hover {
    background-color: #0c1222;
}

.btn-glow-inner:active {
    transform: scale(0.97);
}

/* ==========================================================================
   UNIFIED CRM LIGHT & DARK MODE COMPATIBILITY ENGINE
   ========================================================================== */

/* 1. Global Light Mode Root Canvas & Page Background */
html.light-mode,
body.light-mode {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

html.light-mode .sky-bg-viewport,
body.light-mode .sky-bg-viewport {
    background: radial-gradient(circle at 50% 20%, #f8fafc 0%, #f1f5f9 60%, #e2e8f0 100%) !important;
}

html.light-mode .sky-stars {
    opacity: 0.25;
}

html.light-mode .sky-glow-orb.orb-1 {
    background: radial-gradient(circle, rgba(243, 112, 33, 0.12), transparent 70%) !important;
}

html.light-mode .sky-glow-orb.orb-2 {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%) !important;
}

/* 2. Primary Card Containers & Surfaces in Light Mode */
html.light-mode .bg-slate-950,
html.light-mode .bg-slate-900,
html.light-mode .bg-[#0f172a],
html.light-mode .bg-[#0F172A],
html.light-mode .bg-[#111827],
html.light-mode .bg-[#1e293b],
html.light-mode .bg-[#1E293B],
html.light-mode .bg-[#0e0f14],
html.light-mode .bg-[#14161d],
html.light-mode .bg-[#151717],
html.light-mode .bg-[#1e2020],
html.light-mode .bg-[#07080b],
html.light-mode .bg-[#191c26],
html.light-mode [class*="bg-slate-900"],
html.light-mode [class*="bg-slate-950"],
html.light-mode [class*="from-slate-900"],
html.light-mode [class*="from-slate-950"],
html.light-mode [class*="from-[#0f172a]"],
html.light-mode [class*="from-[#0F172A]"],
html.light-mode [class*="from-[#1e293b]"],
html.light-mode [class*="from-[#1E293B]"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
}

/* 3. Nested Secondary Cards & Translucent Panels in Light Mode */
html.light-mode .bg-slate-800,
html.light-mode .bg-slate-800\/80,
html.light-mode .bg-slate-800\/50,
html.light-mode .bg-slate-900\/60,
html.light-mode .bg-slate-900\/80,
html.light-mode .bg-slate-900\/90,
html.light-mode .bg-slate-950\/40,
html.light-mode .bg-slate-950\/90,
html.light-mode .bg-white\/5,
html.light-mode .bg-white\/10,
html.light-mode .bg-white\/[0.02],
html.light-mode .bg-white\/[0.03],
html.light-mode .bg-white\/[0.05],
html.light-mode .ultra-glass {
    background-color: #f8fafc !important;
    background-image: none !important;
    border-color: #e2e8f0 !important;
}

/* 4. Borders & Dividers in Light Mode */
html.light-mode [class*="border-white/"],
html.light-mode [class*="border-[#2b3040]"],
html.light-mode [class*="border-[#232632]"],
html.light-mode [class*="border-slate-800"],
html.light-mode [class*="border-slate-700"] {
    border-color: #e2e8f0 !important;
}

/* 5. Headings & Body Typography in Light Mode */
html.light-mode .text-white,
html.light-mode .text-slate-100,
html.light-mode .text-slate-200,
html.light-mode .text-slate-300,
html.light-mode .text-slate-50,
html.light-mode [class*="text-slate-100"],
html.light-mode [class*="text-slate-200"] {
    color: #0f172a !important;
}

html.light-mode .text-slate-400,
html.light-mode .text-slate-500 {
    color: #475569 !important;
}

html.light-mode .text-slate-600,
html.light-mode .text-slate-700 {
    color: #334155 !important;
}

/* Accent Text High-Contrast Contrast for Light Mode */
html.light-mode .text-cyan-300,
html.light-mode .text-cyan-400 { color: #0284c7 !important; }
html.light-mode .text-emerald-300,
html.light-mode .text-emerald-400 { color: #059669 !important; }
html.light-mode .text-amber-300,
html.light-mode .text-amber-400 { color: #d97706 !important; }
html.light-mode .text-purple-300,
html.light-mode .text-purple-400 { color: #7c3aed !important; }
html.light-mode .text-rose-300,
html.light-mode .text-rose-400 { color: #e11d48 !important; }
html.light-mode .text-orange-300,
html.light-mode .text-orange-400 { color: #ea580c !important; }

/* 6. Form Controls & Inputs in Light Mode */
html.light-mode input:not([type="checkbox"]):not([type="radio"]),
html.light-mode select,
html.light-mode textarea,
html.light-mode .form-control,
html.light-mode .glass-input {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    color-scheme: light !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

html.light-mode input:focus,
html.light-mode select:focus,
html.light-mode textarea:focus,
html.light-mode .form-control:focus,
html.light-mode .glass-input:focus {
    background-color: #ffffff !important;
    border-color: #f37021 !important;
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.2) !important;
}

html.light-mode input::placeholder,
html.light-mode textarea::placeholder {
    color: #94a3b8 !important;
}

html.light-mode option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

html.light-mode input:-webkit-autofill,
html.light-mode input:-webkit-autofill:hover,
html.light-mode input:-webkit-autofill:focus,
html.light-mode input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #0f172a !important;
}

/* 7. Dropdowns & Navigation Panels in Light Mode */
html.light-mode #notification-dropdown-menu,
html.light-mode #user-dropdown-menu,
html.light-mode .dropdown-menu {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 20px 40px -5px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.08) !important;
}

/* 8. Modals & Dialog Popups in Light Mode */
html.light-mode .fixed.inset-0.z-50 > div,
html.light-mode [id$="-modal"] > div {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
}

/* 9. Data Tables in Light Mode */
html.light-mode table thead tr,
html.light-mode table th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border-bottom-color: #e2e8f0 !important;
}

html.light-mode table tbody tr {
    border-bottom-color: #f1f5f9 !important;
}

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

/* ==========================================================================
   GLOBAL 360-DEGREE LIGHT & DARK THEME OVERRIDE SYSTEM
   ========================================================================== */

/* ── LIGHT MODE COMPREHENSIVE OVERRIDES ─────────────────────────────────── */
html.light-mode,
body.light-mode,
html:not(.dark) {
    background-color: #F8FAFC !important;
    color: #0F172A !important;
}

/* Light mode background container overrides for ALL dark hex classes */
html.light-mode [class*="bg-[#151717]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#242424]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#1e2020]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#14161d]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#13151c]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#1b1e2b]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#1a1c23]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#191c26]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#1a1d26]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#111318]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#0d1322]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#090d16]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#060a17]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#282C2C]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
html.light-mode [class*="bg-[#1a1c1c]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#151717]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#242424]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#1e2020]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#14161d]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#13151c]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#1b1e2b]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#1a1c23]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#191c26]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#1a1d26]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#111318]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#0d1322]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#090d16]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#060a17]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#282C2C]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink),
body.light-mode [class*="bg-[#1a1c1c]"]:not(.uroos-card-cyan):not(.uroos-card-yellow):not(.uroos-card-pink) {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
}

/* Light mode outer page main container background */
html.light-mode main,
body.light-mode main {
    background-color: #F8FAFC !important;
}

/* Light mode border replacements for dark border classes */
html.light-mode [class*="border-[#2e3232]"],
html.light-mode [class*="border-[#333838]"],
html.light-mode [class*="border-[#242828]"],
html.light-mode [class*="border-[#232632]"],
html.light-mode [class*="border-white/10"],
html.light-mode [class*="border-white/20"],
html.light-mode [class*="border-white/5"],
body.light-mode [class*="border-[#2e3232]"],
body.light-mode [class*="border-[#333838]"],
body.light-mode [class*="border-[#242828]"],
body.light-mode [class*="border-[#232632]"],
body.light-mode [class*="border-white/10"],
body.light-mode [class*="border-white/20"],
body.light-mode [class*="border-white/5"] {
    border-color: #E2E8F0 !important;
}

/* Light mode sub-elements: pills, buttons, inner boxes */
html.light-mode button[class*="bg-[#151717]"],
html.light-mode button[class*="bg-[#1a1c1c]"],
html.light-mode button[class*="bg-[#2e3232]"],
html.light-mode div[id="calEventBanner"],
html.light-mode #calEventBanner,
html.light-mode div[class*="bg-[#151717]"]:not(main),
html.light-mode div[class*="bg-[#1a1c1c]"],
body.light-mode button[class*="bg-[#151717]"],
body.light-mode button[class*="bg-[#1a1c1c]"],
body.light-mode button[class*="bg-[#2e3232]"],
body.light-mode div[id="calEventBanner"],
body.light-mode #calEventBanner,
body.light-mode div[class*="bg-[#151717]"]:not(main),
body.light-mode div[class*="bg-[#1a1c1c]"] {
    background-color: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

/* Light mode text contrast overrides */
html.light-mode .text-white:not(.uroos-card-cyan *):not(.uroos-card-yellow *):not(.uroos-card-pink *):not(.btn-shimmer *):not(.btn-primary *),
html.light-mode span.text-white:not(.uroos-card-cyan *):not(.uroos-card-yellow *):not(.uroos-card-pink *):not(.btn-shimmer *):not(.btn-primary *),
html.light-mode div.text-white:not(.uroos-card-cyan *):not(.uroos-card-yellow *):not(.uroos-card-pink *):not(.btn-shimmer *):not(.btn-primary *),
html.light-mode p.text-white:not(.uroos-card-cyan *):not(.uroos-card-yellow *):not(.uroos-card-pink *):not(.btn-shimmer *):not(.btn-primary *),
body.light-mode .text-white:not(.uroos-card-cyan *):not(.uroos-card-yellow *):not(.uroos-card-pink *):not(.btn-shimmer *):not(.btn-primary *),
body.light-mode span.text-white:not(.uroos-card-cyan *):not(.uroos-card-yellow *):not(.uroos-card-pink *):not(.btn-shimmer *):not(.btn-primary *),
body.light-mode div.text-white:not(.uroos-card-cyan *):not(.uroos-card-yellow *):not(.uroos-card-pink *):not(.btn-shimmer *):not(.btn-primary *),
body.light-mode p.text-white:not(.uroos-card-cyan *):not(.uroos-card-yellow *):not(.uroos-card-pink *):not(.btn-shimmer *):not(.btn-primary *) {
    color: #0F172A !important;
}

html.light-mode .text-slate-300,
html.light-mode .text-slate-400,
body.light-mode .text-slate-300,
body.light-mode .text-slate-400 {
    color: #475569 !important;
}

/* Ensure vibrant top cards stay white text in Light Mode */
html.light-mode .uroos-card-cyan,
body.light-mode .uroos-card-cyan {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border: 1.5px solid #059669 !important;
    box-shadow: 0 12px 30px -8px rgba(5, 150, 105, 0.35) !important;
}

html.light-mode .uroos-card-yellow,
body.light-mode .uroos-card-yellow {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border: 1.5px solid #d97706 !important;
    box-shadow: 0 12px 30px -8px rgba(217, 119, 6, 0.35) !important;
}

html.light-mode .uroos-card-pink,
body.light-mode .uroos-card-pink {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%) !important;
    border: 1.5px solid #db2777 !important;
    box-shadow: 0 12px 30px -8px rgba(219, 39, 119, 0.35) !important;
}

html.light-mode .uroos-card-cyan *,
html.light-mode .uroos-card-yellow *,
html.light-mode .uroos-card-pink *,
body.light-mode .uroos-card-cyan *,
body.light-mode .uroos-card-yellow *,
body.light-mode .uroos-card-pink * {
    color: #FFFFFF !important;
}

html.light-mode .uroos-card-cyan .text-emerald-200,
body.light-mode .uroos-card-cyan .text-emerald-200 { color: #e6fffa !important; }
html.light-mode .uroos-card-yellow .text-amber-200,
body.light-mode .uroos-card-yellow .text-amber-200 { color: #fffbea !important; }
html.light-mode .uroos-card-pink .text-pink-200,
body.light-mode .uroos-card-pink .text-pink-200 { color: #fff1f2 !important; }

/* Dropdown menus & modals in light mode */
html.light-mode [id*="Modal"] > div,
html.light-mode [id*="modal"] > div,
html.light-mode div[id="tradeFilterMenu"],
body.light-mode [id*="Modal"] > div,
body.light-mode [id*="modal"] > div,
body.light-mode div[id="tradeFilterMenu"] {
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 20px 40px -5px rgba(15, 23, 42, 0.15) !important;
    color: #0F172A !important;
}

/* ── DARK MODE COMPREHENSIVE OVERRIDES ─────────────────────────────────── */
html.dark,
body.dark-mode,
:root.dark {
    background-color: #151717 !important;
    color: #FFFFFF !important;
}

html.dark .bg-white:not(.sky-theme-toggle):not(.uroos-btn-yellow),
html.dark .bg-slate-50,
html.dark .bg-slate-100,
html.dark .bg-slate-200,
html.dark .bg-gray-50,
html.dark .bg-gray-100,
body.dark-mode .bg-white:not(.sky-theme-toggle):not(.uroos-btn-yellow),
body.dark-mode .bg-slate-50,
body.dark-mode .bg-slate-100,
body.dark-mode .bg-slate-200,
body.dark-mode .bg-gray-50,
body.dark-mode .bg-gray-100 {
    background-color: #242424 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
}

html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .text-[#0F172A],
body.dark-mode .text-slate-900,
body.dark-mode .text-slate-800,
body.dark-mode .text-[#0F172A] {
    color: #FFFFFF !important;
}




