/* ==========================================================================
   ANTIGRAVITY UI SPECIFICATION - PREMIUM SAAS EXPERIENCE ("VAVAVOOM")
   ========================================================================== */

/* Design Tokens & Primitives */
:root {
    /* Colors - Soft premium HSL palettes */
    --canvas-bg: #F5F8FC; /* Matte ice-blue canvas background */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Branding / Primary Accent */
    --accent-primary: #6366f1; /* Electric Violet */
    --accent-primary-glow: rgba(99, 102, 241, 0.3);
    
    /* Translucent Badges (10% Opacity Fill, High Contrast Text) */
    --status-pending-bg: rgba(245, 158, 11, 0.08);
    --status-pending-text: #b45309;
    --status-approved-bg: rgba(16, 185, 129, 0.08);
    --status-approved-text: #047857;
    --status-rejected-bg: rgba(244, 63, 94, 0.08);
    --status-rejected-text: #be123c;
    --status-info-bg: rgba(6, 182, 212, 0.08);
    --status-info-text: #0891b2;
    --status-warning-bg: rgba(239, 68, 68, 0.08);
    --status-warning-text: #dc2626;

    /* Glassmorphism Primitives */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-hover: rgba(255, 255, 255, 0.75);
    --glass-blur: blur(16px);
    --glass-blur-hover: blur(24px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    
    /* Dynamic Glass Shadows */
    --glass-shadow: 0 30px 60px -15px rgba(99, 102, 241, 0.05), 
                    0 10px 20px -10px rgba(0, 0, 0, 0.02);
    --glass-shadow-hover: 0 38px 72px -12px rgba(99, 102, 241, 0.09), 
                          0 12px 24px -10px rgba(99, 102, 241, 0.04);

    /* Radius Harmony */
    --radius-primary: 16px;
    --radius-secondary: 12px;
    --radius-pill: 8px;
    --radius-avatar: 50%;

    /* Spacing: Negative Space Dominance (>= 24px) */
    --space-xl: 32px;
    --space-lg: 24px;
    --space-md: 16px;
    --space-sm: 12px;
    --space-xs: 8px;
}

/* Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--canvas-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 1. Spatial Physics Background (Floating ambient light) */
.canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #fbfcfe 0%, #edf2f7 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    mix-blend-mode: multiply;
    animation: drift 25s ease-in-out infinite alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
    animation-duration: 30s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 22s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, 50px) scale(1.1); }
    100% { transform: translate(-40px, -60px) scale(0.9); }
}

/* Dynamic Ambient Backglow projections on Cards */
.stat-card, .quick-action-card, .grid-card {
    position: relative;
    z-index: 1;
}

.stat-card::before, .quick-action-card::before {
    content: '';
    position: absolute;
    top: 15%; left: 15%; right: 15%; bottom: 15%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease, filter 0.4s ease;
    pointer-events: none;
}

/* Colors backglow matrix map */
.balance-glow-indigo::before, .hover-glow-violet:hover::before {
    background: rgba(99, 102, 241, 0.2);
    filter: blur(24px);
    opacity: 0.5;
}
.balance-glow-indigo:hover::before, .hover-glow-violet:hover::before {
    filter: blur(36px);
    opacity: 1;
}

.balance-glow-teal::before, .hover-glow-teal:hover::before {
    background: rgba(13, 148, 136, 0.2);
    filter: blur(24px);
    opacity: 0.5;
}
.balance-glow-teal:hover::before, .hover-glow-teal:hover::before {
    filter: blur(36px);
    opacity: 1;
}

.balance-glow-emerald::before, .hover-glow-emerald:hover::before {
    background: rgba(16, 185, 129, 0.2);
    filter: blur(24px);
    opacity: 0.5;
}
.balance-glow-emerald:hover::before, .hover-glow-emerald:hover::before {
    filter: blur(36px);
    opacity: 1;
}

.balance-glow-rose::before {
    background: rgba(244, 63, 94, 0.15);
    filter: blur(24px);
    opacity: 0.5;
}
.balance-glow-rose:hover::before {
    filter: blur(36px);
    opacity: 1;
}

.balance-glow-amber::before, .hover-glow-amber:hover::before {
    background: rgba(245, 158, 11, 0.18);
    filter: blur(24px);
    opacity: 0.5;
}
.balance-glow-amber:hover::before, .hover-glow-amber:hover::before {
    filter: blur(36px);
    opacity: 1;
}

/* 2. Main Layout (Edge-to-edge frame) */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    position: relative;
}

.brand-logo {
    width: 42px;
    height: 32px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--accent-primary) 0%, #818cf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.3);
}

.logo-text {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-item i {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
}

.nav-item:hover i {
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.8);
    color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.nav-item.active i {
    color: var(--accent-primary);
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: var(--space-md);
}

/* Main Content Column */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    padding: 0 var(--space-xl) var(--space-xl) var(--space-xl);
}

/* Header Component */
.dashboard-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: var(--space-lg);
    flex-shrink: 0;
}

.header-search {
    position: relative;
    width: 320px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke-width: 2px;
    color: var(--text-muted);
}

.header-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border-radius: var(--radius-secondary);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.header-search input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-secondary);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.action-btn i {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
    color: var(--text-secondary);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.notification-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #f43f5e;
    box-shadow: 0 0 0 2px #ffffff;
    display: none;
}

.notification-badge.active {
    display: block;
}

/* Kinetic Greeting Typography */
.current-date-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-date-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-greeting-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 14px;
    transition: all 0.5s ease;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-secondary);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.8);
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-arrow {
    width: 14px;
    height: 14px;
    stroke-width: 2px;
    color: var(--text-muted);
}

/* Avatars */
.avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-avatar);
    object-fit: cover;
}

.profile-avatar {
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* SPA Tab Switching System */
.tab-pane {
    display: none;
    flex-direction: column;
    width: 100%;
}

.tab-pane.active {
    display: flex;
    animation: tabFadeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Section Header & Micro-Copy */
.section-header-block {
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-micro-copy {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.85;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 10px 20px;
    border-radius: var(--radius-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-secondary);
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-icon-only {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-only:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.btn-icon-only.danger:hover {
    color: var(--status-rejected-text);
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.2);
}

/* 🕹️ The "Vavavoom" Floating Action Buttons (FAB - Liquid Border Spin) */
.liquid-gradient {
    position: relative;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%) !important;
    color: #ffffff;
    box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: none;
}

.liquid-gradient::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(255, 255, 255, 0.45), transparent, var(--accent-primary), transparent);
    animation: rotateConic 4s linear infinite;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s;
}

.liquid-gradient::after {
    content: '';
    position: absolute;
    top: 1px; left: 1px; right: 1px; bottom: 1px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%);
    border-radius: calc(var(--radius-secondary) - 1px);
    z-index: -1;
    transition: all 0.3s;
}

.liquid-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -8px rgba(99, 102, 241, 0.45);
}

.liquid-gradient:hover::before {
    opacity: 1;
}

@keyframes rotateConic {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Gentle Ripple Effect elements */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
    z-index: 5;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 🚀 Quick Action Bar Styles */
.quick-action-bar-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.action-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-actions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.quick-action-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-secondary);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
}

.qa-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.qa-icon.warning {
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
}

.qa-icon.success {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
}

.qa-icon i {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

.qa-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qa-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.qa-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* ⚠️ Smart Alerts (Floating Amber Banner) */
.smart-alert-banner {
    background: rgba(245, 158, 11, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 16px 36px -12px rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-secondary);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    animation: alertSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-content-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.alert-banner-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b45309;
}

.alert-banner-icon i {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

.alert-banner-text {
    font-size: 14px;
    font-weight: 500;
    color: #92400e;
}

.alert-action-btn {
    padding: 6px 14px;
    font-size: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    border: none;
    color: #ffffff;
}

.alert-action-btn:hover {
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

/* Amber Breath Pulse Animation for Quick Action Fix Icon */
.pulse-amber-slow {
    animation: amberPulse 2.5s ease-in-out infinite alternate;
}

@keyframes amberPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35);
        background-color: rgba(245, 158, 11, 0.08);
    }
    100% {
        box-shadow: 0 0 12px 6px rgba(245, 158, 11, 0.18);
        background-color: rgba(245, 158, 11, 0.2);
    }
}

/* 📊 My Balances Row styling */
.overview-balances-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.stat-sub-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* 📅 Upcoming Holidays Scroll Ribbon */
.holidays-ribbon-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.ribbon-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.holidays-scroll-ribbon {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    overflow-x: auto;
    padding: 4px 0 12px 0;
    scrollbar-width: none;
}

.holidays-scroll-ribbon::-webkit-scrollbar {
    display: none;
}

.holiday-ribbon-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-secondary);
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 160px;
    transition: all 0.3s;
    cursor: default;
}

.holiday-ribbon-card:hover {
    transform: translateY(-2px);
    background: var(--glass-bg-hover);
    box-shadow: 0 12px 24px -8px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
}

.holiday-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.holiday-arrow-divider {
    color: var(--text-muted);
    opacity: 0.5;
    display: flex;
    align-items: center;
}

.holiday-arrow-divider i {
    width: 16px;
    height: 16px;
}

/* ⏱️ Today's Timer */
.today-timer-container {
    display: flex;
    flex-direction: column;
}

.timer-card-wrapper {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-secondary);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timer-section-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.timer-indicator-orb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.animated-pulse {
    animation: orbPulse 2s infinite alternate;
}

@keyframes orbPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 14px rgba(16, 185, 129, 0.9); }
}

.timer-status-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timer-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.timer-section-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.timer-value.highlight {
    font-size: 20px;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-primary);
}

/* 3. Stats Grid (Float Glass Modules) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-primary);
    padding: 24px;
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Micro-Hover Elevator on Cards */
.stat-card:hover {
    transform: translateY(-4px);
    background: var(--glass-bg-hover);
    backdrop-filter: var(--glass-blur-hover);
    -webkit-backdrop-filter: var(--glass-blur-hover);
    box-shadow: var(--glass-shadow-hover);
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 36px;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-decorator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-bottom-left-radius: var(--radius-primary);
    border-bottom-right-radius: var(--radius-primary);
    opacity: 0.6;
}

/* Dynamic Balances Hover Breakdown Tooltip */
.balance-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 200px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-secondary);
    padding: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
}

.balance-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.9) transparent transparent transparent;
}

.stat-card:hover .balance-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tooltip-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.tooltip-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin-bottom: var(--space-xs);
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.tooltip-row:last-child {
    margin-bottom: 0;
}

.tooltip-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* 4. Dashboard Grid Area */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: start;
    margin-bottom: var(--space-xl);
}

/* General Float Glass Card */
.grid-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-primary);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-card.main-panel {
    min-height: auto;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
}

.badge-warning {
    background-color: var(--status-pending-bg);
    color: var(--status-pending-text);
}

/* Filter Groups inside Glass Cards */
.filter-group {
    display: flex;
    background: rgba(0, 0, 0, 0.03);
    padding: 3px;
    border-radius: var(--radius-secondary);
}

.filter-btn {
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background: #ffffff;
    color: var(--accent-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Table Design (No Harsh Borders, Layered Depth) */
.table-container {
    overflow-x: auto;
    flex-grow: 1;
}

.leaves-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaves-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.leaves-table td {
    font-size: 14px;
    color: var(--text-primary);
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 400;
}

/* 🕹️ Table Row Slide rightwards on hover */
.leaves-table tbody tr {
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), 
                background-color 0.35s ease, 
                backdrop-filter 0.35s ease;
    cursor: pointer;
}

.leaves-table tbody tr:hover {
    transform: translateX(6px);
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px);
}

.text-right { text-align: right; }
.text-center { text-align: center; }

.action-cell {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-xs);
}

/* Status Translucent Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-pending {
    background-color: var(--status-pending-bg);
    color: var(--status-pending-text);
}

.status-badge.status-approved,
.status-badge.status-present {
    background-color: var(--status-approved-bg);
    color: var(--status-approved-text);
}

.status-badge.status-rejected {
    background-color: var(--status-rejected-bg);
    color: var(--status-rejected-text);
}

/* 📝 Hover marquee typewriter warning for "Missing Swipe" */
.status-badge.status-missing_swipe {
    background-color: var(--status-warning-bg);
    color: var(--status-warning-text);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.status-badge.status-missing_swipe::after {
    content: "Incomplete Log: Click Fix Punch to restore timeline completeness.";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fee2e2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0 10px;
}

.status-badge.status-missing_swipe:hover::after {
    opacity: 1;
}

/* 🕹️ Custom Chart and Columns Micro-Animations */
.chart-container {
    display: flex;
    height: 180px;
    padding-top: var(--space-md);
    position: relative;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 140px;
    font-size: 11px;
    color: var(--text-muted);
    width: 30px;
    padding-right: var(--space-xs);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    flex-grow: 1;
    height: 140px;
    padding-left: var(--space-md);
}

.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 32px;
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                filter 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dim other chart columns on hover */
.chart-bars:hover .chart-column:not(:hover) {
    opacity: 0.35;
    filter: blur(0.5px);
}

.chart-bar-fill {
    width: 100%;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(to top, var(--accent-primary) 0%, #818cf8 100%);
    /* Elastic bounce on growth height set in JS */
    transition: height 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                filter 0.3s ease, 
                transform 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.25));
}

.chart-column:hover .chart-bar-fill {
    filter: drop-shadow(0 4px 15px rgba(99, 102, 241, 0.5));
    transform: scaleX(1.08);
}

/* Neon Violet Floor Indicator on chart column hover */
.chart-column::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: -2px;
    right: -2px;
    height: 3px;
    background-color: #818cf8;
    box-shadow: 0 0 8px #6366f1, 0 0 16px #6366f1;
    border-radius: 4px;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chart-column:hover::after {
    opacity: 1;
    transform: scaleX(1.3);
}

/* Specific styling colors for chart bars based on labels */
.chart-column[data-label="Mon"] .chart-bar-fill,
.chart-column[data-label="Tue"] .chart-bar-fill,
.chart-column[data-label="Thu"] .chart-bar-fill,
.chart-column[data-label="Fri"] .chart-bar-fill {
    background: linear-gradient(to top, var(--accent-primary) 0%, #818cf8 100%);
}

/* Warning alert Wed log */
.chart-column.warning .chart-bar-fill {
    background: linear-gradient(to top, #ef4444 0%, #fca5a5 100%) !important;
    filter: drop-shadow(0 4px 10px rgba(239, 68, 68, 0.3)) !important;
}

.chart-column.warning:hover .chart-bar-fill {
    filter: drop-shadow(0 4px 14px rgba(239, 68, 68, 0.55)) !important;
}

.chart-column.warning::after {
    background-color: #f87171 !important;
    box-shadow: 0 0 8px #ef4444, 0 0 16px #ef4444 !important;
}

/* Tooltip overlay in data viz */
.chart-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: all 0.2s;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chart-column:hover .chart-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Earnings: Tax Documents List */
.tax-docs-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.tax-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-secondary);
    transition: all 0.2s;
}

.tax-doc-item:hover {
    background: rgba(255, 255, 255, 0.45);
}

.doc-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.doc-icon i {
    width: 16px;
    height: 16px;
}

.doc-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-left: var(--space-md);
}

.doc-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* 📝 Animated sliding arrow for Tax download triggers */
.btn-download-tax:hover i {
    animation: arrowSlideDown 0.8s ease-in-out infinite;
}

@keyframes arrowSlideDown {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(5px); opacity: 0; }
    51% { transform: translateY(-5px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Workplace: Hardware Asset Cards */
.hardware-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.hardware-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-primary);
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hardware-card:hover {
    transform: translateY(-4px);
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
}

.hardware-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hardware-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-secondary);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.hardware-icon-box i {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.hardware-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: var(--space-xs);
}

.hardware-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.hardware-serial {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.hardware-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: var(--space-sm);
    margin-top: var(--space-sm);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 7. Modal (Blurred Overlay container) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Backdrop & Card Standardizer for Academy & Warning Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.modal-backdrop.active .modal-card {
    transform: scale(1) translateY(0);
}

/* VERY WIDE CENTERED CONTENT BOX & DIM BACKDROP */
.slide-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.slide-panel-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-panel-drawer {
    position: relative;
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    background: #ffffff;
    border-radius: 1.75rem;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(226, 232, 240, 0.9);
    z-index: 10000;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
}

.slide-panel-backdrop.active .slide-panel-drawer {
    transform: scale(1) translateY(0);
}

.habit-card-bad {
    background-color: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 1rem;
    padding: 1rem;
    color: #991b1b;
}

.habit-card-good {
    background-color: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 1rem;
    padding: 1rem;
    color: #166534;
}

.modal-container {
    width: 600px;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-primary);
    box-shadow: 0 48px 96px -24px rgba(15, 23, 42, 0.15);
    padding: var(--space-xl);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
}

.modal-close {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
}

.modal-close i {
    width: 18px;
    height: 18px;
}

/* Modal Form Controls */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-row {
    display: flex;
    gap: var(--space-lg);
}

.col-6 {
    flex: 1;
    width: 50%;
}

.col-4 {
    flex: 1;
    width: 33.33%;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Segmented Toggle Control */
.toggle-group {
    display: flex;
    background: rgba(0, 0, 0, 0.03);
    padding: 3px;
    border-radius: var(--radius-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-opt {
    flex: 1;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 10px;
    border-radius: var(--radius-secondary);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.toggle-opt.active {
    background: #ffffff;
    color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Stacked inputs inside a blurred overlay */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    stroke-width: 2px;
    color: var(--text-muted);
    pointer-events: none;
}

.modal-form input[type="text"],
.modal-form input[type="date"],
.modal-form input[type="time"],
.modal-form input[type="number"],
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-secondary);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s;
}

.modal-form .input-with-icon input,
.modal-form .input-with-icon select {
    padding-left: 42px;
}

.modal-form select {
    appearance: none;
    cursor: pointer;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

.modal-form input:read-only {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-secondary);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.2);
}

.modal-form textarea {
    height: 90px;
    resize: none;
}

.textarea-footer {
    display: flex;
    justify-content: flex-end;
    font-size: 11px;
    color: var(--text-muted);
}

/* Radio Group & Custom Styling */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-radio {
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
}

.radio-label:hover input[type="radio"] ~ .custom-radio {
    border-color: var(--accent-primary);
    background-color: rgba(255, 255, 255, 0.8);
}

.radio-label input[type="radio"]:checked ~ .custom-radio {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.custom-radio:after {
    content: "";
    position: absolute;
    display: none;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.radio-label input[type="radio"]:checked ~ .custom-radio:after {
    display: block;
}

/* Checkbox Custom Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label:hover input[type="checkbox"] ~ .custom-checkbox {
    border-color: var(--accent-primary);
    background-color: rgba(255, 255, 255, 0.8);
}

.checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.custom-checkbox:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox:after {
    display: block;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Alert Boxes & Notifications */
.alert-box-info {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-secondary);
    padding: var(--space-md);
}

.alert-header {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: 4px;
}

.alert-icon {
    width: 18px;
    height: 18px;
}

.alert-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.alert-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Suggestion Times Grid for Regularization */
.suggestion-box {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-secondary);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.suggestion-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.suggestion-times {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-pill);
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.time-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.time-val {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-primary);
}

.time-divider i {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

/* Payslip Digital Document Styling */
.payslip-document-wrapper {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-secondary);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.5);
}

.payslip-doc-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid rgba(0, 0, 0, 0.03);
    padding-bottom: var(--space-lg);
}

.payslip-doc-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payslip-doc-brand .name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.payslip-doc-brand .addr {
    font-size: 12px;
    color: var(--text-muted);
}

.payslip-doc-title {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payslip-doc-title .main {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
}

.payslip-doc-title .sub {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.payslip-doc-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    background: rgba(0, 0, 0, 0.015);
    padding: var(--space-md);
    border-radius: var(--radius-secondary);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.payslip-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payslip-meta-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.payslip-meta-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.payslip-split-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.payslip-sub-table {
    width: 100%;
    border-collapse: collapse;
}

.payslip-sub-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.03);
}

.payslip-sub-table td {
    font-size: 13px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    color: var(--text-secondary);
}

.payslip-sub-table tr.total-row td {
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: none;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    padding-top: var(--space-sm);
}

.payslip-doc-summary {
    border-top: 2px solid rgba(0, 0, 0, 0.03);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-words {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.summary-net-box {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-secondary);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.35);
}

.net-box-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.net-box-val {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 24px;
}

/* Toast System (Floating glass notices) */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.toast {
    min-width: 300px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-secondary);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 20px;
    height: 20px;
}

.toast-icon.success {
    color: var(--status-approved-text);
}

.toast-icon.error {
    color: var(--status-rejected-text);
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Responsive Grid Adaptation */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .hardware-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .overview-balances-row {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-row {
        grid-template-columns: 1fr;
    }
    
    .payslip-split-tables {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-md);
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .sidebar-brand {
        margin-bottom: 0;
    }
    
    .sidebar-nav {
        display: none;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .main-content {
        padding: 0 var(--space-md) var(--space-md) var(--space-md);
    }
    
    .hardware-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 550px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .col-6 {
        width: 100%;
    }
    
    .col-4 {
        width: 100%;
    }
}

/* ==========================================================================
   WOLFF BRANDING & PREMIUM METRICS EXPANSIONS (BE RIGHT BACK)
   ========================================================================== */

/* Profile Glass Details Panel */
.profile-details-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-primary);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.profile-details-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.profile-meta-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.profile-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-avatar);
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.3);
}

.profile-name-role {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-fullname {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.profile-role {
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 600;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 36px;
}

.profile-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-detail-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-detail-label i {
    width: 12px;
    height: 12px;
}

.profile-detail-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Balance Progress Indicators */
.balance-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    margin-top: 14px;
    overflow: hidden;
}

.balance-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-emerald-bg { background-color: #10b981; }
.color-teal-bg { background-color: #0d9488; }
.color-amber-bg { background-color: #f59e0b; }

.stat-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.stat-card-icon {
    width: 16px;
    height: 16px;
    opacity: 0.85;
}

/* Holiday Carousel Visual controls */
.holidays-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.holiday-controls {
    display: flex;
    gap: var(--space-xs);
}

.holiday-slide-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.holiday-slide-btn:hover {
    background: var(--glass-bg-hover);
    color: var(--accent-primary);
    transform: scale(1.08);
}

.holiday-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.holiday-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.holiday-countdown-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-top: var(--space-xs);
    width: fit-content;
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
}

/* Modal Duration Slider Gauge */
.slide-gauge-container {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.slide-gauge-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, #818cf8 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Translucent Glass Footer styles */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 12px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 12px;
    color: var(--text-muted);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-app-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
}

.designer-name {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-primary);
    font-weight: 600;
}

.footer-separator {
    color: var(--text-muted);
}

.footer-version {
    font-weight: 500;
}

/* ==========================================================================
   ADMIN PORTAL DESIGN SYSTEM UPDATES
   ========================================================================== */

/* Role Selector Block */
.role-selector-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
    padding: 0 8px;
}

.role-select-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    padding: 3px;
    border-radius: var(--radius-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.role-btn {
    flex: 1;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: calc(var(--radius-secondary) - 2px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
}

.role-btn.active {
    background: #ffffff;
    color: var(--accent-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

/* Team Density Donut Chart styling */
.donut-svg {
    transform: rotate(-90deg);
}

.donut-ring {
    transition: stroke-width 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    transform-origin: center;
}

.donut-ring:hover {
    stroke-width: 6.5px;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.1));
}

/* Ambient Halos for Donut Hover Vavavoom */
.glow-halo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    filter: blur(120px);
    z-index: -2;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s ease;
}

.glow-halo.active {
    opacity: 0.15;
}

.dashboard-dim {
    opacity: 0.25 !important;
    filter: blur(1.5px) !important;
}

.dashboard-dim-ignore {
    transform: translateY(-4px) scale(1.01) !important;
    box-shadow: var(--glass-shadow-hover), 0 0 40px rgba(99, 102, 241, 0.2) !important;
    z-index: 50;
}

/* Donut Legend Elements */
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.3);
    border: var(--glass-border);
    transition: all 0.2s;
    cursor: pointer;
}

.legend-item:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-item .dot.color-violet { background-color: var(--accent-primary); }
.legend-item .dot.color-mint { background-color: #10b981; }
.legend-item .dot.color-amber { background-color: #f59e0b; }
.legend-item .dot.color-rose { background-color: #f43f5e; }

/* SVG absence line animations */
.absence-trends-chart {
    animation: chartFadeIn 0.8s ease-out;
}

@keyframes chartFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Approvals Hub warning-tints */
.approval-row {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.approval-row.warning-tint {
    background-color: rgba(245, 158, 11, 0.02);
}

.approval-row.warning-tint:hover {
    background-color: rgba(245, 158, 11, 0.06) !important;
}

/* Timeline Absences Master Grid */
.timeline-bar {
    padding: 8px var(--space-sm);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: help;
}

.timeline-bar:hover {
    transform: translateY(-2px) scale(1.03);
}

.timeline-bar.active-work {
    background: rgba(99, 102, 241, 0.06);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.timeline-bar.casual-leave {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.timeline-bar.lop-leave {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}

.timeline-bar.weekend {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-muted);
    border: 1px dashed rgba(0, 0, 0, 0.06);
}

/* Floating Typewriter Tooltip (GPU Stabilized to prevent subpixel ghosting/recalculation bugs) */
.timeline-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.97);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: var(--radius-secondary);
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    z-index: 9999;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 260px;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-tooltip.active {
    opacity: 1;
}

/* GPU rendering layer stabilizer class */
.gpu-stabilized {
    transform: translateZ(0);
    will-change: transform, opacity;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
}

/* Approvals Hub Risk Trigger static layout wrapping to prevent layout recalculation of rows */
.risk-trigger-wrapper {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 22px;
    vertical-align: middle;
}

.risk-trigger {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    transform: translateZ(0);
    will-change: transform, opacity;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, box-shadow 0.3s;
}

.risk-trigger:hover {
    z-index: 50;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

#approvals-queue-table td {
    position: relative;
}

/* Morphing Circular Progress Track for Button Actions */
.btn-morph-loading {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    background: transparent !important;
    border: 3px solid rgba(99, 102, 241, 0.2) !important;
    border-top-color: var(--accent-primary) !important;
    animation: buttonSpin 1s linear infinite !important;
    pointer-events: none !important;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.4) !important;
}

.btn-morph-loading i,
.btn-morph-loading span {
    display: none !important;
}

@keyframes buttonSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   LANDING PAGE SPLIT DESIGN (STAFF VS ADMIN SEPARATION)
   ========================================================================== */

.landing-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    padding: var(--space-xl);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
}

.landing-container.active {
    display: flex;
    animation: landingFadeIn 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes landingFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.landing-header {
    text-align: center;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.landing-brand-logo {
    width: 64px;
    height: 48px;
    border-radius: var(--radius-secondary);
    background: linear-gradient(135deg, var(--accent-primary) 0%, #818cf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px -6px rgba(99, 102, 241, 0.4);
    margin-bottom: 12px;
}

.landing-logo-text {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.landing-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.landing-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.landing-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 820px;
    width: 100%;
}

.landing-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-primary);
    padding: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
}

.landing-card:hover {
    transform: translateY(-8px);
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
}

.landing-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.02);
}

.landing-card-icon.color-emerald {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
}

.landing-card-icon.color-indigo {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-primary);
}

.landing-card-icon i {
    width: 24px;
    height: 24px;
}

.landing-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.landing-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.enter-portal-btn {
    width: 100%;
}

/* ==========================================================================
   ✨ PREMIUM VISUAL RECONSTRUCTION (STAFF & ADMIN PORTALS)
   ========================================================================== */

/* Premium Glass Cards & Hover Elevator */
.brb-glass-panel,
.ag-glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.02),
                0 10px 30px -10px rgba(99, 102, 241, 0.03);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
}

.brb-glass-panel:hover,
.ag-glass-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px -15px rgba(99, 102, 241, 0.08),
                0 0 40px -5px rgba(99, 102, 241, 0.04);
}

/* 1. Translucent Filter Capsules */
.filter-group {
    display: flex;
    gap: 8px;
}

.filter-group .filter-btn {
    border-radius: var(--radius-pill) !important;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.filter-group .filter-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(99, 102, 241, 0.2);
}

.filter-group .filter-btn.active {
    background: #ffffff !important;
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15) !important;
    transform: translateY(-2px) scale(1.02);
}

/* 2. Attendance Pulse Ring */
.attendance-pulse-ring-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.attendance-pulse-ring {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #10b981;
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
    animation: breathingPulse 2s infinite ease-in-out;
}

@keyframes breathingPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
        border-color: #10b981;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 16px rgba(99, 102, 241, 0.5), 0 0 8px rgba(16, 185, 129, 0.2);
        border-color: var(--accent-primary);
    }
    100% {
        transform: scale(0.9);
        opacity: 0.7;
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
        border-color: #10b981;
    }
}

/* 3. Zero-Line Table Settings & Smooth Hover Rows */
.leaves-table {
    border-collapse: separate;
    border-spacing: 0 6px;
}

.leaves-table th,
.leaves-table td {
    border: none !important;
    padding: 12px 16px;
    background: transparent;
}

.leaves-table tbody tr {
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s;
    border-radius: 12px;
}

.leaves-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.45) !important;
    transform: scale(1.005) translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

/* 4. Workforce Schedules Timeline patterns */
.timeline-icon {
    font-size: 10px;
    margin: 0 4px;
    display: inline-block;
}

.pip-balance-indicator {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    vertical-align: middle;
}

.pip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transition: all 0.3s;
}

.pip-dot.hollow {
    border: 1px solid #10b981;
    background: transparent;
    box-shadow: 0 0 3px rgba(16, 185, 129, 0.15);
}

.pip-dot.solid {
    background: var(--accent-primary);
    box-shadow: 0 0 6px var(--accent-primary-glow);
}

/* 5. Approvals Queue Card layout (Replaces standard table rows) */
.approvals-queue-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: var(--space-xs);
}

.approval-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin-bottom: 0;
    position: relative;
    overflow: visible;
}

.card-employee-info {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 180px;
}

.avatar-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
}

.avatar-wrapper .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #ffffff;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.employee-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.employee-meta .emp-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.employee-meta .request-subtext {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-primary);
    opacity: 0.85;
}

.date-capsule {
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.approval-card.warning-tint {
    background: rgba(255, 255, 255, 0.55);
}

.action-buttons-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.premium-approve-btn {
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-approve-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3) !important;
    background: #059669 !important;
}

.premium-reject-btn {
    background: rgba(244, 63, 94, 0.08) !important;
    border: 1px solid rgba(244, 63, 94, 0.15) !important;
    color: #be123c !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 12px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-reject-btn:hover {
    transform: translateY(-2px) !important;
    background: rgba(244, 63, 94, 0.15) !important;
    color: #9f1239 !important;
}

/* 6. Compensation Desk Stacked Metrics Layout */
.stacked-metrics-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.supporting-metrics-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.compensation-primary-card {
    padding: 32px !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1.5px solid rgba(99, 102, 241, 0.3) !important;
    box-shadow: 0 30px 60px -15px rgba(99, 102, 241, 0.12),
                0 0 30px rgba(99, 102, 241, 0.05) !important;
    transform: scale(1.02);
    z-index: 10;
}

.compensation-primary-card .stat-value {
    font-size: 42px !important;
}

.compensation-supporting-card {
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    opacity: 0.9;
}

/* ==========================================================================
   🌐 HIGH-FIDELITY FULL-SCREEN CANVAS ENGINE & VIEWPORT OVERRIDES
   ========================================================================== */

body {
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
}

.app-container {
    display: flex !important;
    flex-direction: row !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
}

.sidebar {
    width: 256px !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.4) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: var(--space-lg) !important;
    flex-shrink: 0 !important;
    z-index: 40 !important;
}

.main-content {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    overflow: hidden !important;
    padding: 0 var(--space-xl) !important;
    background: linear-gradient(180deg, #f8fafc 0%, #F5F8FC 100%) !important;
}

.dashboard-header {
    height: 80px !important;
    flex-shrink: 0 !important;
    margin-bottom: var(--space-md) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.tab-pane {
    display: none !important;
    flex-direction: column !important;
    width: 100% !important;
}

.tab-pane.active {
    display: flex !important;
    flex-grow: 1 !important;
    overflow-y: auto !important;
    height: calc(100vh - 80px - var(--space-md)) !important;
    padding-bottom: var(--space-xl) !important;
}

/* 1. Instant-Read Balance Ribbon */
.balance-ribbon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.ribbon-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ribbon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
}

.ribbon-card-hd {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ribbon-card-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ribbon-card.balance-glow-emerald .ribbon-card-tag {
    color: #047857;
}

.ribbon-card.balance-glow-indigo .ribbon-card-tag {
    color: var(--accent-primary);
}

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

.ribbon-graphic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    z-index: 2;
}

.ribbon-pips {
    display: flex;
    gap: 6px;
}

.ribbon-pips .pip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

.ribbon-card.balance-glow-emerald .pip-dot.solid {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.ribbon-card.balance-glow-emerald .pip-dot.hollow {
    border: 2px solid #10b981;
    background: transparent;
}

.ribbon-card.balance-glow-indigo .pip-dot.solid {
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.ribbon-card.balance-glow-indigo .pip-dot.hollow {
    border: 2px solid var(--accent-primary);
    background: transparent;
}

.ribbon-numerical-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ribbon-numerical-value .val-bold {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.ribbon-numerical-value .val-sub {
    font-size: 11px;
    color: var(--text-secondary);
}

.ribbon-asset-bg {
    position: absolute;
    bottom: -15px;
    right: -10px;
    width: 160px;
    height: 160px;
    opacity: 0.05;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1;
}

.mountain-silhouette {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%2310b981" d="M0,100 L30,40 L60,80 L80,50 L100,100 Z"/></svg>');
}

.medical-cross {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%236366f1" d="M35,0 h30 v35 h35 v30 h-35 v35 h-30 v-35 h-35 v-30 h35 Z"/></svg>');
}

/* 2. Graphical Micro-Calendar Card styling */
.micro-calendar-card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.05) !important;
}

.calendar-grid-header {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 8px !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    margin-bottom: 8px !important;
}

.calendar-grid-days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 8px 4px !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.calendar-day {
    padding: 6px 0 !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: all 0.2s !important;
}

.calendar-day.empty {
    opacity: 0.3 !important;
}

.calendar-day.weekend {
    color: var(--text-muted) !important;
}

/* Neon fusion capsule track selection */
.calendar-day.track-start {
    background: rgba(99, 102, 241, 0.2) !important;
    color: var(--accent-primary) !important;
    border-top-left-radius: 14px !important;
    border-bottom-left-radius: 14px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.4), -4px 0 12px rgba(99, 102, 241, 0.15) !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    border-right: none !important;
}

.calendar-day.track-mid {
    background: rgba(99, 102, 241, 0.2) !important;
    color: var(--accent-primary) !important;
    border-radius: 0 !important;
    border-top: 1px solid rgba(99, 102, 241, 0.4) !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.4) !important;
}

.calendar-day.track-end {
    background: rgba(99, 102, 241, 0.2) !important;
    color: var(--accent-primary) !important;
    border-top-right-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    box-shadow: inset -1px 1px 0 rgba(255, 255, 255, 0.4), 4px 0 12px rgba(99, 102, 241, 0.15) !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    border-left: none !important;
}

.calendar-day.track-single {
    background: rgba(99, 102, 241, 0.25) !important;
    color: var(--accent-primary) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2) !important;
}

/* Locked / Approved leave tracks */
.calendar-day.track-locked-start {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #059669 !important;
    border-top-left-radius: 14px !important;
    border-bottom-left-radius: 14px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.4), -4px 0 12px rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    border-right: none !important;
}

.calendar-day.track-locked-mid {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #059669 !important;
    border-radius: 0 !important;
    border-top: 1px solid rgba(16, 185, 129, 0.4) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.calendar-day.track-locked-end {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #059669 !important;
    border-top-right-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    box-shadow: inset -1px 1px 0 rgba(255, 255, 255, 0.4), 4px 0 12px rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    border-left: none !important;
}

.calendar-day.track-locked-single {
    background: rgba(16, 185, 129, 0.25) !important;
    color: #059669 !important;
    border-radius: 14px !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2) !important;
}

.calendar-day.overlap-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #b45309 !important;
    border: 1px dashed rgba(245, 158, 11, 0.5) !important;
}

.validation-insight-box {
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.validation-insight-text {
    font-size: 12px !important;
    color: var(--text-secondary) !important;
    line-height: 1.4 !important;
}

/* ==========================================================================
   🎨 LOGO POSITION & ONBOARDING / ORG / SETTINGS VIEW SYSTEM STYLES
   ========================================================================== */

.sidebar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: var(--space-xl) !important;
    padding: 0 8px !important;
}

/* Onboarding view grid & checklists */
.onboarding-grid {
    display: grid !important;
    grid-template-columns: 1.6fr 1fr !important;
    gap: 24px !important;
}

.checklist-card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    transition: transform 0.3s ease;
}

.checklist-card:hover {
    transform: translateY(-2px);
}

.checklist-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 14px !important;
}

.checklist-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}

.checklist-progress-bar {
    width: 100px !important;
    height: 6px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 3px !important;
    overflow: hidden !important;
}

.checklist-progress-fill {
    height: 100% !important;
    background: var(--accent-primary) !important;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.task-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 0 !important;
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.04) !important;
}

.task-item:last-child {
    border-bottom: none !important;
}

.task-checkbox {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--accent-primary) !important;
    cursor: pointer !important;
}

.task-item.completed {
    text-decoration: line-through !important;
    opacity: 0.6 !important;
}

/* Organization form details */
.details-form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}

/* Settings elements */
.settings-section-card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.settings-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.settings-row:last-child {
    border-bottom: none !important;
}

.settings-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.settings-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
}

.settings-desc {
    font-size: 12px !important;
    color: var(--text-muted) !important;
}

/* Switch controller */
.switch-control {
    position: relative !important;
    display: inline-block !important;
    width: 44px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
}

.switch-control input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.switch-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background-color: #cbd5e1 !important;
    transition: .3s !important;
    border-radius: 24px !important;
}

.switch-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 18px !important;
    width: 18px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: white !important;
    transition: .3s !important;
    border-radius: 50% !important;
}

.switch-control input:checked + .switch-slider {
    background-color: var(--accent-primary) !important;
}

.switch-control input:checked + .switch-slider:before {
    transform: translateX(20px) !important;
}

/* ==========================================================================
   🖼️ ZERO-PADDING PREMIUM EDGE-BLEED LAYOUT SYSTEM
   ========================================================================== */

.app-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    font-family: 'Inter', sans-serif !important;
}

.dashboard-header {
    height: 64px !important; /* h-16 equivalent */
    width: 100% !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 0 var(--space-xl) 0 var(--space-lg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
    z-index: 50 !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 0 !important;
}

.workspace-container {
    display: flex !important;
    flex-direction: row !important;
    height: calc(100vh - 64px) !important;
    width: 100% !important;
    overflow: hidden !important;
    flex-grow: 1 !important;
}

.sidebar {
    width: 256px !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-top: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: var(--space-lg) !important;
    flex-shrink: 0 !important;
    z-index: 40 !important;
}

.main-content {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow-y: auto !important;
    padding: var(--space-xl) !important;
    background: linear-gradient(135deg, #f8fafc 0%, #F5F8FC 50%, #ffffff 100%) !important;
    position: relative !important;
}

.tab-pane {
    display: none !important;
    flex-direction: column !important;
    width: 100% !important;
}

.tab-pane.active {
    display: flex !important;
    flex-grow: 1 !important;
    overflow-y: auto !important;
    height: auto !important;
    padding-bottom: var(--space-xl) !important;
}

/* 🎨 Logo / Brand Luxury Emblem */
.brand-emblem-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    width: calc(256px - var(--space-lg)) !important;
}

.brand-gem-container {
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 50%, #ec4899 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.25) !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.brand-gem-container:hover {
    transform: rotate(12deg) scale(1.08) !important;
}

.brand-gem-container i {
    width: 18px !important;
    height: 18px !important;
    color: #ffffff !important;
    stroke-width: 3px !important;
}

.brand-text-block {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

.brand-title-premium {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: var(--text-primary) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
}

.brand-subtitle-premium {
    font-size: 9px !important;
    font-weight: 600 !important;
    color: var(--accent-primary) !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-top: 2px !important;
}

/* 🌴 Vacation & Medical Premium Vector Cards */
.metric-card-premium {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    padding: 24px !important;
    color: #ffffff !important;
    min-height: 160px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.metric-card-premium.vacation {
    background: linear-gradient(135deg, #064e3b 0%, #042f2e 100%) !important;
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.15) !important;
}

.metric-card-premium.medical {
    background: linear-gradient(135deg, #312e81 0%, #0f172a 100%) !important;
    box-shadow: 0 12px 30px rgba(49, 46, 129, 0.15) !important;
}

.metric-card-premium:hover {
    transform: translateY(-4px) scale(1.01) !important;
}

.metric-card-premium.vacation:hover {
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.25) !important;
}

.metric-card-premium.medical:hover {
    box-shadow: 0 20px 40px rgba(49, 46, 129, 0.25) !important;
}

.metric-card-vector-bg {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 45% !important;
    opacity: 0.2 !important;
    transition: all 0.5s ease !important;
    pointer-events: none !important;
    mix-blend-mode: overlay !important;
}

.metric-card-premium:hover .metric-card-vector-bg {
    opacity: 0.35 !important;
    transform: scale(1.08) rotate(2deg) !important;
}

.metric-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 10 !important;
}

.metric-card-tag {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
}

.metric-card-premium.vacation .metric-card-tag {
    color: #a7f3d0 !important;
}

.metric-card-premium.medical .metric-card-tag {
    color: #c7d2fe !important;
}

.metric-card-status {
    font-size: 11px !important;
    padding: 2px 10px !important;
    border-radius: 9999px !important;
    font-weight: 500 !important;
}

.metric-card-premium.vacation .metric-card-status {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #a7f3d0 !important;
}

.metric-card-premium.medical .metric-card-status {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #c7d2fe !important;
}

.metric-card-pips {
    display: flex !important;
    gap: 6px !important;
    margin-top: 20px !important;
    z-index: 10 !important;
}

.metric-card-pips .pip-bar {
    width: 10px !important;
    height: 24px !important;
    border-radius: 6px !important;
    transition: all 0.3s !important;
}

.metric-card-premium.vacation .pip-bar.active {
    background: #34d399 !important;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5) !important;
}

.metric-card-premium.vacation .pip-bar.active:hover {
    transform: scaleY(1.15) !important;
}

.metric-card-premium.vacation .pip-bar.inactive {
    background: rgba(255, 255, 255, 0.1) !important;
}

.metric-card-premium.medical .pip-bar.active {
    background: #818cf8 !important;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.5) !important;
}

.metric-card-premium.medical .pip-bar.active:hover {
    transform: scaleY(1.15) !important;
}

.metric-card-premium.medical .pip-bar.inactive {
    background: rgba(255, 255, 255, 0.1) !important;
}

.metric-card-value-row {
    font-family: 'Outfit', sans-serif !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px !important;
    margin-top: 16px !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
}

.metric-card-value-sub {
    font-size: 12px !important;
    font-weight: 500 !important;
}

.metric-card-premium.vacation .metric-card-value-sub {
    color: rgba(167, 243, 208, 0.8) !important;
}

.metric-card-premium.medical .metric-card-value-sub {
    color: rgba(199, 210, 254, 0.8) !important;
}

.calendar-card-tag {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--accent-primary) !important;
}

.calendar-card-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.3px !important;
    margin-top: 4px !important;
}

.scrollbar-none::-webkit-scrollbar {
    display: none !important;
}
.scrollbar-none {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.hover-translate-up:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

/* ==================== ANTIGRAVITY MASTER LUXURY STAFF PORTAL SYSTEMS ==================== */
.ag-portal-card {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 45px -15px rgba(99, 102, 241, 0.03),
              0 10px 20px -10px rgba(0, 0, 0, 0.01) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform: translateZ(0) !important;
  will-change: transform, opacity !important;
}

.ag-portal-card:hover {
  transform: translateY(-4px) translateZ(0) !important;
  box-shadow: 0 35px 60px -15px rgba(99, 102, 241, 0.08) !important;
}

.active-staff-tab {
  background: rgba(99, 102, 241, 0.08) !important;
  color: #4f46e5 !important;
  font-weight: 700 !important;
  border-left: 4px solid #4f46e5 !important;
}

/* ==================== INNER FORM TABS AND NESTED MODAL CARDS ==================== */
.form-tabs {
  display: flex !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  margin-bottom: 20px !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding-bottom: 4px !important;
}

.form-tab-btn {
  padding: 8px 16px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border-radius: 6px 6px 0 0 !important;
  white-space: nowrap !important;
}

.form-tab-btn:hover {
  color: #4f46e5 !important;
  background: rgba(99, 102, 241, 0.03) !important;
}

.form-tab-btn.active {
  color: #4f46e5 !important;
  border-bottom-color: #4f46e5 !important;
  font-weight: 800 !important;
  background: rgba(99, 102, 241, 0.05) !important;
}

.form-tab-content {
  display: none;
}

.form-tab-content.active {
  display: block;
}

/* Greyed-out verified styles */
.verified-readonly {
  background-color: rgba(241, 245, 249, 0.6) !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  border-color: #e2e8f0 !important;
}

/* ==========================================================================
   GOOGLE SKILLSHOP ACADEMY & PROGRESSIVE DISCIPLINE STYLES
   ========================================================================== */

/* Google Skillshop Cards */
.academy-skillshop-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.academy-skillshop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.15);
  border-color: #818cf8;
}

.academy-badge-level1 {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.academy-badge-level2 {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.academy-badge-level3 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.academy-gated-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 16px;
  position: relative;
}

.academy-gated-box.locked {
  opacity: 0.65;
  filter: grayscale(0.5);
  cursor: not-allowed;
}

.academy-gated-box.pending {
  border-color: #f59e0b;
  background: #fffbeb;
}

.academy-gated-box.approved {
  border-color: #10b981;
  background: #f0fdf4;
}

/* Certificate Preview Styling */
.certificate-preview-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 4px double #cbd5e1;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.certificate-seal {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3);
}

/* Warning Badges */
.warning-badge-verbal {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.warning-badge-1st {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.warning-badge-final {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.warning-badge-cleared {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

