/* =============================================
   AKSÜT CLOUD ERP 
 
   ============================================= */

/* ---- Tipografi: Inter Variable (gövde/başlıklar), JetBrains Mono (sayısal/teknik) ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

/* ---- Design Tokens (Liquid Glass Morphism Palette) ---- */
:root {
    /* Liquid Glass configuration */
    --glass-blur: 32px;
    --glass-saturate: 190%;
    --glass-brightness: 1.08;
    --glass-opacity-light: 0.08;
    --glass-border-light: rgba(255, 255, 255, 0.20);
    --glass-highlight-light: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    --glass-shadow-light: 0 16px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    
    /* Standard Palette Defaults (Light mode) */
    --grey-0:    #FFFFFF;
    --grey-10:   #F5F5F7;
    --grey-15:   #EAEAEF;
    --grey-20:   #E5E5EA;
    --grey-50:   #D1D1D6;
    --grey-100:  #C7C7CC;
    --grey-200:  #AEAEB2;
    --grey-300:  #8E8E93;
    --grey-400:  #636366;
    --grey-800:  #48484A;
    --grey-900:  #2C2C2E;
    --grey-1000: #1C1C1E;
    --grey-1100: #151517;
    --grey-1200: #0A0A0C;

    --blue-500:  #0071E3;
    --blue-600:  #2997FF;
    --blue-700:  #0058B0;

    --green-500: #34C759;
    --green-bg:  rgba(52, 199, 89, 0.12);
    --red-500:   #FF3B30;
    --red-bg:    rgba(255, 59, 48, 0.12);
    --amber-500: #FF9500;
    --amber-bg:  rgba(255, 149, 0, 0.12);
    --teal-500:  #30B0C7;
    --teal-bg:   rgba(48, 176, 199, 0.12);

    /* Semantic tokens */
    --surface:          rgba(255, 255, 255, 0.55);
    --surface-container:        rgba(255, 255, 255, 0.35);
    --surface-container-high:   rgba(255, 255, 255, 0.65);
    --surface-container-higher: rgba(255, 255, 255, 0.85);
    --on-surface:       var(--grey-1200);
    --on-surface-variant: var(--grey-400);

    --primary:     var(--blue-500);
    --on-primary:  #FFFFFF;
    --warning:     var(--amber-500);
    --success:     var(--green-500);
    --danger:      var(--red-500);
    --info:        var(--teal-500);
    --bg-card:     rgba(255, 255, 255, 0.45);
    --text-primary: var(--on-surface);

    --outline:         rgba(0, 0, 0, 0.08);
    --outline-variant: rgba(0, 0, 0, 0.04);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow:    0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12);

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: all 220ms cubic-bezier(.22,.8,.2,1);
    --transition:      all 260ms cubic-bezier(.22,.8,.2,1);
    --transition-slow: all 340ms cubic-bezier(.22,.8,.2,1);

    --font: "Inter Variable", "Inter", sans-serif;
    --font-display: "Inter Variable", "Inter", sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    --navbar-height: 68px;
    
    /* Background gradients */
    --bg-grad-1: #E4E7EB;
    --bg-grad-2: #F0F3F6;
    --bg-grad-3: #E8ECF0;
    --ambient-light-1: rgba(0, 113, 227, 0.08);
    --ambient-light-2: rgba(142, 68, 173, 0.06);
}



/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    overflow-y: scroll;
}

body {
    font-family: var(--font);
    background: linear-gradient(135deg, #e8ebee 0%, #ffffff 100%);
    color: var(--on-surface);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover { color: var(--blue-700); }

/* =============================================
   LOGIN PAGE
   ============================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: 
        radial-gradient(circle at 80% 20%, var(--ambient-light-1) 0%, transparent 55%),
        radial-gradient(circle at 20% 80%, var(--ambient-light-2) 0%, transparent 55%),
        linear-gradient(135deg, var(--bg-grad-2) 0%, var(--bg-grad-3) 100%);
    background-attachment: fixed;
    background-size: 200% 200%;
    animation: gradientMove 20s ease infinite;
    position: relative;
}

.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02), transparent 80%),
        radial-gradient(ellipse 70% 40% at 50% -10%, var(--ambient-light-1) 0%, transparent 60%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.particles { display: none; }

.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    box-shadow: var(--glass-shadow-light), var(--glass-highlight-light);
    position: relative;
    overflow: hidden;
}

.login-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 255, 255, 0.12),
        transparent
    );
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
    transform: translateX(-100%) skewX(-15deg);
    z-index: 5;
}

.login-card:hover::after {
    opacity: 1;
    transform: translateX(100%) skewX(-15deg);
}

.login-card .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--on-surface);
}

.login-card .form-control:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.login-card .form-group .input-wrapper i {
    color: rgba(255, 255, 255, 0.6);
}

.login-card .form-group .input-wrapper:focus-within i {
    color: var(--primary);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .logo-icon {
    width: 48px;
    height: 48px;
   
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.login-logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--on-surface);
    letter-spacing: -0.3px;
    font-family: var(--font-display);
}

.login-logo p {
    color: var(--on-surface-variant);
    font-size: 13px;
    margin-top: 4px;
    letter-spacing: 0.01em;
}

/* ---- Form Elements ---- */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--on-surface-variant);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group .input-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.form-group .input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey-300);
    font-size: 14px;
    transition: var(--transition-fast);
    z-index: 2;
}

.form-control {
    width: 100%;
    box-sizing: border-box !important;
    padding: 11px 14px 11px 42px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    color: var(--on-surface);
    font-family: var(--font);
    font-size: 14px;
    transition: var(--transition-fast);
    outline: none;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.form-group .input-wrapper:focus-within i {
    color: var(--primary);
}

.form-control::placeholder {
    color: var(--grey-300);
    opacity: 0.65;
}

.form-control-no-icon {
    padding-left: 14px;
}

select.form-control {
    padding-left: 14px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B2BBC5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    padding-right: 36px;
}

textarea.form-control {
    padding-left: 14px;
    min-height: 96px;
    resize: vertical;
    line-height: 1.5;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 3px;
}

.form-check label {
    font-size: 13px;
    color: var(--on-surface-variant);
    cursor: pointer;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: scale(0.98);
}

/* Primary — dark fill like Antigravity */
.btn-primary {
    background: var(--grey-1200);
    color: var(--grey-0);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-primary:hover {
    background: var(--grey-900);
    color: var(--grey-0);
    box-shadow: var(--shadow);
}

/* Secondary — tonal fill */
.btn-secondary {
    background: var(--grey-15);
    color: var(--on-surface);
    border: 1px solid var(--outline);
}
.btn-secondary:hover {
    background: var(--grey-50);
    color: var(--on-surface);
}

/* Blue accent */
.btn-info {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-info:hover {
    background: var(--blue-700);
    color: white;
    box-shadow: var(--shadow);
}

/* Success */
.btn-success {
    background: var(--green-500);
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-success:hover {
    background: #166A3E;
    color: white;
}

/* Danger */
.btn-danger {
    background: var(--red-500);
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-danger:hover {
    background: #A41A17;
    color: white;
}

/* Warning */
.btn-warning {
    background: var(--amber-500);
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-warning:hover {
    background: #C26200;
    color: white;
}

.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: var(--radius-sm); flex-shrink: 0; }

.btn-group { display: flex; gap: 6px; flex-wrap: wrap; }

/* Login button */
.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    background: var(--grey-1200);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-sm);
}
.login-btn:hover {
    background: var(--grey-900);
    box-shadow: var(--shadow);
}
.login-btn:active { transform: scale(0.99); }

.login-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.login-extras a {
    font-size: 13px;
    color: var(--on-surface-variant);
}
.login-extras a:hover { color: var(--on-surface); }

/* ---- Alerts ---- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid transparent;
    line-height: 1.5;
}
.alert i { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.alert-danger  { background: var(--red-bg);   color: #A50E0E; border-color: rgba(197,34,31,0.15); }
.alert-success { background: var(--green-bg); color: #0F5223; border-color: rgba(27,139,81,0.15); }
.alert-warning { background: var(--amber-bg); color: #7A4100; border-color: rgba(227,116,0,0.15); }
.alert-info    { background: #E8F0FE;         color: #174EA6; border-color: rgba(50,121,249,0.15); }

/* =============================================
   NAVBAR / TOP MENU — Antigravity style
   ============================================= */

.navbar {
    position: fixed;
    top: 14px;
    left: 20px;
    right: 20px;
    height: var(--navbar-height);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    gap: 8px;
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    box-shadow: var(--glass-shadow-light), var(--glass-highlight-light);
    transition: var(--transition);
}

.navbar::before {
    display: none;
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: 8px;
    flex-shrink: 0;
}
.navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: var(--font-display);
    position: relative;
    overflow: hidden;
}
.navbar-brand .brand-icon::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -150%;
    width: 50%;
    height: 180%;
    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 255, 255, 0.75),
        transparent
    );
    transform: rotate(15deg);
    animation: shine 7s infinite;
}
@keyframes shine {
    0%, 70% {
        left: -150%;
    }
    100% {
        left: 180%;
    }
}
.navbar-brand span {
    font-size: 15px;
    font-weight: 600;
    color: var(--on-surface);
    letter-spacing: 0.5px;
    font-family: var(--font-display);
}

/* Mobile toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--on-surface);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.navbar-toggle:hover { background: var(--grey-15); }

/* Nav menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    list-style: none;
}

.navbar-menu > li { position: relative; }

.navbar-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 5px;
    color: var(--on-surface-variant);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.navbar-menu > li > a:hover {
    color: var(--on-surface);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.navbar-menu > li > a.active {
    color: var(--on-surface);
    background: rgba(0, 113, 227, 0.12);
    border: 1px solid rgba(0, 113, 227, 0.2);
    box-shadow: 0 0 12px rgba(0, 113, 227, 0.1);
}
.navbar-menu > li > a i {
    font-size: 13px;
    width: 16px;
    text-align: center;
    color: var(--grey-300);
}
.navbar-menu > li > a:hover i { color: var(--grey-800); }
.navbar-menu > li > a .caret {
    font-size: 10px;
    margin-left: 2px;
    color: var(--grey-300);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--surface);
background-color:#FFF;
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl), var(--glass-highlight-light);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top left;
    transition: opacity 240ms cubic-bezier(.22,.8,.2,1),
                transform 240ms cubic-bezier(.22,.8,.2,1),
                visibility 240ms;
    list-style: none;
    z-index: 1001;
}
.navbar-menu > li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.navbar-menu > li:hover > a .caret { transform: rotate(180deg); }

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--on-surface-variant);
    font-size: 13px;
    font-weight: 400;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    letter-spacing: 0.01em;
}
.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--on-surface);
}
.dropdown-menu li a i {
    width: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--grey-300);
    flex-shrink: 0;
}
.dropdown-menu li a:hover i { color: var(--grey-800); }

.dropdown-divider {
    height: 1px;
    background: var(--outline-variant);
    margin: 4px 6px;
}

/* Navbar Right */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: var(--transition-fast);
    position: relative;
}
.navbar-user:hover { 
    background: rgba(255, 255, 255, 0.15); 
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-user .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), #9B59B6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
    overflow: visible !important;
    position: relative !important;
}

.navbar-user .user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.navbar-user .user-info .user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--on-surface);
}
.navbar-user .user-info .user-role {
    font-size: 11px;
    color: var(--on-surface-variant);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--surface);
background-color:#fff;
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl), var(--glass-highlight-light);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: opacity 240ms cubic-bezier(.22,.8,.2,1),
                transform 240ms cubic-bezier(.22,.8,.2,1),
                visibility 240ms;
    list-style: none;
    z-index: 1002;
}
.navbar-user:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.user-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--on-surface-variant);
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    letter-spacing: 0.01em;
}
.user-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--on-surface);
}
.user-dropdown li a i {
    width: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--grey-300);
}
.user-dropdown li a.text-danger { color: var(--red-500); }
.user-dropdown li a.text-danger:hover { background: var(--red-bg); color: var(--red-500); }

@media (min-width: 993px) {
    .navbar-brand {
        position: absolute;
        left: 24px;
    }
    .navbar-right {
        position: absolute;
        right: 24px;
    }
    .navbar-menu {
        margin: 0 auto;
        flex: none;
    }

    /* Full-width Dropdown Menu Layout */
    .navbar-menu > li {
        position: static;
    }
    
    .navbar-menu > li > .dropdown-menu {
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
        padding: 24px max(24px, calc((100% - 1250px) / 2));
        border-radius: 0 0 var(--radius) var(--radius);
        border-top: none;
        top: calc(100% - 10px);
        transform: none;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        z-index: -1;
    }

    .navbar-menu > li:hover > .dropdown-menu {
        transform: none;
    }
    
    .navbar-menu > li > .dropdown-menu li {
        display: block;
    }
    
    .navbar-menu > li > .dropdown-menu li a {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 14px 18px;
        background: rgba(0, 0, 0, 0.015);
        border: 1px solid rgba(0, 0, 0, 0.04);
        border-radius: var(--radius-sm);
        white-space: normal;
        font-weight: 500;
        transition: var(--transition);
        text-decoration: none;
    }
    
    .navbar-menu > li > .dropdown-menu li a:hover {
        background: #FFFFFF;
        border-color: rgba(0, 113, 227, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        transform: translateY(-2px);
    }
    
    .navbar-menu > li > .dropdown-menu li a i {
        font-size: 18px;
        color: #ff1529;
        margin-top: 3px;
        transition: transform 0.2s ease;
    }
    
    .navbar-menu > li > .dropdown-menu li a:hover i {
        transform: scale(1.1);
    }

    .navbar-menu > li > .dropdown-menu li .menu-item-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .navbar-menu > li > .dropdown-menu li .menu-item-title {
        font-size: 14px;
        font-weight: 700;
        color: var(--on-surface);
    }

    .navbar-menu > li > .dropdown-menu li .menu-item-desc {
        font-size: 11px;
        color: var(--on-surface-variant);
        font-weight: 400;
        line-height: 1.4;
    }

    /* Blur main content when a navbar dropdown is active */
    body:has(.navbar-menu > li:hover) .main-content {
        filter: blur(8px);
    }
    
    body:has(.navbar-menu > li:hover) .navbar-menu-overlay {
        display: block;
        background: rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(4px);
    }
    
    .main-content {
        transition: filter 240ms cubic-bezier(.22,.8,.2,1);
    }
}

/* =============================================
   MAIN CONTENT
   ============================================= */

.main-content {
    margin-top: calc(var(--navbar-height) + 24px);
    padding: 28px 28px 40px;
    min-height: calc(100vh - var(--navbar-height));
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Page Header ---- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h2 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.2px;
    font-family: var(--font-display);
    color: var(--on-surface);
}
.page-header h2 i {
    color: var(--grey-300);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--on-surface-variant);
    list-style: none;
}
.breadcrumb li + li::before {
    content: '/';
    margin-right: 6px;
    color: var(--grey-300);
}
.breadcrumb a { color: var(--on-surface-variant); }
.breadcrumb a:hover { color: var(--on-surface); }

/* ---- Cards ---- */
.card {
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glass-shadow-light), var(--glass-highlight-light);
    transition: var(--transition);
    position: relative;
}
.card.mb-3 { margin-bottom: 16px; }

.card::after, .stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 255, 255, 0.12),
        transparent
    );
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
    transform: translateX(-100%) skewX(-15deg);
    z-index: 5;
}

.card:hover::after, .stat-card:hover::after {
    opacity: 0;
}

.card:hover {
    transform: none;
    border-color: var(--glass-border-light);
    box-shadow: var(--glass-shadow-light), var(--glass-highlight-light);
}

.card:active {
    transform: none;
    box-shadow: var(--glass-shadow-light), var(--glass-highlight-light);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--outline-variant);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: transparent;
}
.card-header h3 {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--on-surface);
    letter-spacing: 0.01em;
}
.card-header h3 i {
    font-size: 13px;
    color: var(--grey-300);
}

.card-body { padding: 20px; }

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--outline-variant);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    background: rgba(0, 0, 0, 0.03);
}

/* ---- Dashboard Stats ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--glass-shadow-light), var(--glass-highlight-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card:hover {
    transform: none;
    border-color: var(--glass-border-light);
    box-shadow: var(--glass-shadow-light), var(--glass-highlight-light);
}
.stat-card:active {
    transform: none;
    box-shadow: var(--glass-shadow-light), var(--glass-highlight-light);
}
.stat-card .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.stat-card .stat-icon.primary { background: var(--green-bg); color: var(--primary); }
.stat-card .stat-icon.success { background: var(--green-bg); color: var(--green-500); }
.stat-card .stat-icon.warning { background: var(--amber-bg); color: var(--amber-500); }
.stat-card .stat-icon.info    { background: #E2F4F5; color: var(--teal-500); }
.stat-card .stat-icon.danger  { background: var(--red-bg); color: var(--red-500); }

.stat-card .stat-info h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
    font-family: var(--font-display);
    color: var(--on-surface);
}
.stat-card .stat-info p {
    font-size: 10px;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* ---- Tables ---- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-family: var(--font-mono);
    font-weight: 500;
}
.data-table th {
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--on-surface-variant);
    background: transparent;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid var(--outline-variant);
}
.data-table td {
    padding: 12px 16px;
    font-size: 13px;
    border: none;
    vertical-align: middle;
    color: var(--on-surface);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-fast);
}
.data-table td:first-child {
    border-top-left-radius: var(--radius-sm);
    border-bottom-left-radius: var(--radius-sm);
}
.data-table td:last-child {
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}
#weeklyTasksTable td { padding: 9px 10px; }

.data-table tbody tr { transition: var(--transition-fast); }
.data-table tbody tr:hover td { 
    background: rgba(255, 255, 255, 0.08); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.badge-primary   { background: rgba(0, 113, 227, 0.12); color: var(--blue-500); }
.badge-success   { background: var(--green-bg); color: var(--green-500); }
.badge-danger    { background: var(--red-bg); color: var(--red-500); }
.badge-warning   { background: var(--amber-bg); color: var(--amber-500); }
.badge-secondary { background: rgba(255, 255, 255, 0.1); color: var(--grey-800); }
.badge-info      { background: var(--teal-bg); color: var(--teal-500); }

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal {
    background: #FFFFFF;
    border: 1px solid var(--grey-50);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}
.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--grey-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #FFFFFF;
    z-index: 1;
}
.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--on-surface);
    letter-spacing: -0.1px;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-header h3 i { color: var(--grey-300); font-size: 15px; }

.modal-close {
    background: none;
    border: none;
    color: var(--grey-300);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    line-height: 1;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.15); color: var(--on-surface); }

.modal-body { padding: 22px; }

.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--grey-50);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #F5F5F7;
}

/* ---- Pagination ---- */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.pagination {
    display: flex;
    gap: 3px;
    list-style: none;
}
.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--on-surface-variant);
    background: var(--surface);
    border: 1px solid var(--outline);
    transition: var(--transition-fast);
}
.pagination li a:hover {
    background: var(--grey-15);
    color: var(--on-surface);
    border-color: var(--outline);
}
.pagination li.active a {
    background: var(--grey-1200);
    color: white;
    border-color: var(--grey-1200);
}

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    top: 76px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    max-width: 380px;
    font-size: 13px;
    color: var(--on-surface);
}
.toast.toast-success { border-left: 3px solid var(--green-500); }
.toast.toast-danger  { border-left: 3px solid var(--red-500); }
.toast.toast-warning { border-left: 3px solid var(--amber-500); }
.toast.toast-info    { border-left: 3px solid var(--primary); }

.toast i { font-size: 16px; flex-shrink: 0; }
.toast.toast-success i { color: var(--green-500); }
.toast.toast-danger i  { color: var(--red-500); }
.toast.toast-warning i { color: var(--amber-500); }
.toast.toast-info i    { color: var(--primary); }

.toast-message { flex: 1; line-height: 1.4; }
.toast-close {
    background: none;
    border: none;
    color: var(--grey-300);
    font-size: 13px;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: var(--transition-fast);
}
.toast-close:hover { color: var(--on-surface); }

/* ---- Permission Matrix ---- */
.permission-grid { display: grid; gap: 8px; }
.permission-row {
    display: grid;
    grid-template-columns: 1fr repeat(4, 80px);
    align-items: center;
    padding: 10px 14px;
    background: var(--surface-container);
    border-radius: var(--radius-sm);
    gap: 8px;
    border: 1px solid var(--outline-variant);
}
.permission-row.header {
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    letter-spacing: 0.04em;
    border: none;
}
.permission-row .module-name { font-size: 13px; font-weight: 500; }
.permission-row .perm-check { text-align: center; }

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--grey-100);
    border-radius: 20px;
    transition: var(--transition-fast);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--grey-1200); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ---- Search & Filters ---- */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.search-input {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.search-input input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    color: var(--on-surface);
    font-family: var(--font);
    font-size: 13px;
    transition: var(--transition-fast);
    outline: none;
}
.search-input input:hover { border-color: rgba(33,34,38,0.18); }
.search-input input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(50,121,249,0.1); }
.search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey-300);
    font-size: 13px;
}

/* ---- Form Row Grid ---- */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--on-surface-variant);
}
.empty-state i {
    font-size: 40px;
    margin-bottom: 14px;
    opacity: 0.35;
    display: block;
}
.empty-state h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--on-surface-variant);
    font-weight: 500;
}
.empty-state p { font-size: 13px; margin-bottom: 18px; }

/* ---- Footer ---- */
.footer {
    padding: 20px 28px;
    text-align: center;
    color: var(--on-surface-variant);
    font-size: 12px;
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-lg);
    margin-top: 40px;
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    box-shadow: var(--glass-shadow-light), var(--glass-highlight-light);
}
.footer a { color: var(--on-surface-variant); }
.footer a:hover { color: var(--on-surface); }

/* ---- Utility ---- */
.text-primary   { color: var(--primary) !important; }
.text-success   { color: var(--green-500) !important; }
.text-danger    { color: var(--red-500) !important; }
.text-warning   { color: var(--amber-500) !important; }
.text-muted     { color: var(--on-surface-variant) !important; }
.text-center    { text-align: center !important; }
.text-right     { text-align: right !important; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.d-flex      { display: flex; }
.align-center{ align-items: center; }
.gap-1       { gap: 8px; }
.gap-2       { gap: 16px; }
.w-100       { width: 100%; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 992px) {
    .navbar { padding: 0 16px; }
    .navbar-brand { order: 1; margin-right: auto; }
    .navbar-right { order: 2; margin-left: 0; margin-right: 8px; }
    .navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        order: 3;
        margin-left: 0;
        cursor: pointer;
        position: relative;
        z-index: 1010;
    }

    .navbar-menu {
        position: fixed;
        top: 10px;
        left: 10px;
        height: 600px;
        width: 280px;
        background: #FFFFFF;
        border: 1px solid var(--grey-50);
        border-radius: var(--radius-lg);
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        overflow-y: auto;
        transform: translateX(-110%);
        transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
        z-index: 999;
        box-shadow: var(--shadow-xl);
        gap: 4px;
    }
    .navbar-menu.active { transform: translateX(0); }

    .navbar-menu > li > a { padding: 15px 5px; }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-sm);
        margin-top: 2px;
        display: none;
        padding: 4px;
    }
    .navbar-menu > li.open > .dropdown-menu { display: block; }

    .navbar-right .user-info { display: none; }
    .permission-row { grid-template-columns: 1fr repeat(4, 56px); font-size: 12px; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
    .main-content { padding: 16px 16px 32px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .card-body { padding: 16px; }
    .login-card { padding: 32px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 16px; }
    .data-table th, .data-table td { padding: 10px 12px; }
    .btn-group { flex-direction: column; }
    .permission-row { grid-template-columns: 1fr; gap: 10px; }
    .toast { min-width: auto; max-width: calc(100vw - 40px); }
}

@media (max-width: 480px) {
    html { font-size: 13.5px; }
    .navbar-brand span { display: none; }
}

/* ---- Loading Spinner ---- */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Tabs ---- */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--outline-variant);
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--on-surface-variant);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}
.tab:hover { 
    color: var(--on-surface);
    background: rgba(255,255,255,0.1);
}
.tab.active {
    color: var(--on-surface);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.1);
    box-shadow: var(--shadow-sm);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.30); }

/* ---- Activity Timeline ---- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--outline);
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grey-1200);
    border: 2px solid var(--surface-container);
}
.timeline-item .timeline-time {
    font-size: 11px;
    color: var(--on-surface-variant);
    margin-bottom: 3px;
}
.timeline-item .timeline-content { font-size: 13px; color: var(--on-surface-variant); }
.timeline-item .timeline-action { font-weight: 600; color: var(--on-surface); }

/* ---- Avatar Click Container ---- */
.avatar-click-container { position: relative; display: inline-block; cursor: pointer; }

/* ---- Animations ---- */
@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive toggle button z-fix ---- */
@media (max-width: 992px) {
    .navbar-toggle { position: relative; z-index: 1010; }
}

/* ---- Mobile overlay when menu open ---- */
.navbar-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18, 19, 23, 0.3);
    backdrop-filter: blur(2px);
    z-index: 998;
}
.navbar-menu-overlay.active { display: block; }

/* ---- Autofill Style Overrides ---- */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover, 
.form-control:-webkit-autofill:focus, 
.form-control:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--on-surface) !important;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px rgba(255, 255, 255, 0.4) !important;
}

/* ---- Login Page Layout & Theme Harmonization ---- */
.login-card .form-control {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #1D1D1F !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.login-card .form-control:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.login-card .form-control:focus {
    background: #FFFFFF !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.login-btn {
    background: #0A0A0C !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.login-btn:hover {
    background: #1C1C1E !important;
}

#captchaImg {
    height: 44px !important;
    box-sizing: border-box;
    border: 1px solid var(--outline) !important;
}

/* =============================================
   Global Glassmorphism Background Blobs
   ============================================= */
.glass-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.30;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}
.gb1 {
    width: 650px; height: 650px;
    background: radial-gradient(circle at 30% 30%, #f0f0f3, #f8f8fa 40%, #ffffff 75%);
    top: -180px; left: -140px;
    animation: drift1 18s ease-in-out infinite alternate;
}
.gb2 {
    width: 550px; height: 550px;
    background: radial-gradient(circle at 70% 40%, #fef9c3, #fefce8 35%, #ffffff 70%);
    bottom: -120px; right: -120px;
    animation: drift2 22s ease-in-out infinite alternate;
}
.gb3 {
    width: 420px; height: 420px;
    background: radial-gradient(circle at 50% 30%, #fce7f3, #fdf2f8 40%, #ffffff 75%);
    top: 30%; left: 55%;
    animation: drift3 25s ease-in-out infinite alternate;
}
.gb4 {
    width: 350px; height: 350px;
    background: radial-gradient(circle at 40% 40%, #e5e7eb, #f3f4f6 35%, #ffffff 70%);
    top: 5%; left: 70%;
    animation: drift4 16s ease-in-out infinite alternate;
}
@keyframes drift1 {
    0%   { transform: translate(0vw, 0vh) scale(1); }
    20%  { transform: translate(30vw, -20vh) scale(1.06); }
    40%  { transform: translate(-15vw, 25vh) scale(0.95); }
    60%  { transform: translate(20vw, 15vh) scale(1.04); }
    80%  { transform: translate(-25vw, -15vh) scale(0.96); }
    100% { transform: translate(10vw, -25vh) scale(1.02); }
}
@keyframes drift2 {
    0%   { transform: translate(0vw, 0vh) scale(1); }
    20%  { transform: translate(-20vw, 25vh) scale(0.94); }
    40%  { transform: translate(25vw, -15vh) scale(1.07); }
    60%  { transform: translate(-10vw, -20vh) scale(0.97); }
    80%  { transform: translate(15vw, 22vh) scale(1.05); }
    100% { transform: translate(-25vw, 10vh) scale(0.95); }
}
@keyframes drift3 {
    0%   { transform: translate(0vw, 0vh) scale(1); }
    20%  { transform: translate(-25vw, -15vh) scale(0.95); }
    40%  { transform: translate(15vw, 25vh) scale(1.06); }
    60%  { transform: translate(25vw, -10vh) scale(0.97); }
    80%  { transform: translate(-15vw, 20vh) scale(1.04); }
    100% { transform: translate(20vw, -12vh) scale(0.96); }
}
@keyframes drift4 {
    0%   { transform: translate(0vw, 0vh) scale(1); }
    20%  { transform: translate(20vw, 15vh) scale(1.05); }
    40%  { transform: translate(-25vw, -20vh) scale(0.93); }
    60%  { transform: translate(-12vw, 25vh) scale(1.06); }
    80%  { transform: translate(25vw, -12vh) scale(0.96); }
    100% { transform: translate(-15vw, 18vh) scale(1.03); }
}

@media (max-width: 992px) {
    .menu-item-desc {
        display: none !important;
    }
}

/* Login screen logo shine effect */
.login-logo .logo-icon {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}
.login-logo .logo-icon::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -150%;
    width: 50%;
    height: 180%;
    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 255, 255, 0.75),
        transparent
    );
    transform: rotate(15deg);
    animation: shine 7s infinite;
}

/* Nav TV Live Button Styling */
.nav-tv-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff !important;
    font-size: 15px;
    text-decoration: none !important;
    margin-right: 12px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    transition: all 0.25s cubic-bezier(.22,.8,.2,1);
}
.nav-tv-btn:hover {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.55);
}
.nav-tv-btn .live-pulse-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

