/* ==========================================================================
   OneTeamHR Design System & Styling
   Sleek Dark Mode, Modern Typography, Glassmorphism, & Fluid Animations
   ========================================================================== */

/* 1. CSS VARIABLES & SYSTEM DESIGN TOKENS */
:root {
    /* Color Palette - Premium HSL tailored colors */
    --base-dark: 222, 47%, 7%; /* Dark blue/slate background #0b0f19 */
    --surface-dark: 223, 47%, 11%; /* #0f1524 */
    --surface-panel: 222, 47%, 15%; /* #141d30 */
    --surface-glass: rgba(15, 23, 42, 0.45);
    --border-color: 222, 47%, 20%; /* #1c273e */
    --border-glass: rgba(99, 102, 241, 0.08);
    
    /* Brand Accents */
    --primary-hue: 239;
    --primary: hsl(var(--primary-hue), 84%, 67%); /* #6366f1 Indigo */
    --primary-gradient: linear-gradient(135deg, hsl(239, 84%, 67%) 0%, hsl(263, 84%, 62%) 100%);
    --accent-hover: hsl(var(--primary-hue), 84%, 72%);
    --accent-glow: rgba(99, 102, 241, 0.25);
    
    /* Semantic Colors */
    --color-success: 142, 70%, 45%; /* Emerald green */
    --color-warning: 38, 92%, 50%; /* Amber yellow */
    --color-danger: 350, 89%, 60%; /* Rose red */
    --color-info: 199, 89%, 48%; /* Cyan blue */

    /* Typography & Sizing */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Animations */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. BASE STYLES & RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: hsl(var(--base-dark));
    color: #f1f5f9;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
}

body.dark-theme {
    background-attachment: fixed;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(15, 23, 42, 0.5) 0px, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

input, select, textarea {
    font-family: inherit;
    color: inherit;
}

/* Helper Utilities */
.text-secondary {
    color: #94a3b8;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}
.badge-danger {
    background-color: rgba(244, 63, 94, 0.12);
    color: hsl(var(--color-danger));
    border: 1px solid rgba(244, 63, 94, 0.2);
}
.badge-blue {
    background-color: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.badge-emerald {
    background-color: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge-glass {
    background-color: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.pt-4 { padding-top: 1rem !important; }
.pt-6 { padding-top: 1.5rem !important; }
.text-right { text-align: right !important; }

/* 3. LAYOUT STRUCTURE */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* 4. SIDEBAR NAVIGATION */
.sidebar {
    width: 260px;
    height: 100%;
    background-color: hsl(var(--surface-dark));
    border-right: 1px solid hsl(var(--border-color));
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-header {
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border-color));
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-gradient);
    box-shadow: 0 0 15px var(--accent-glow);
    position: relative;
}
.logo-icon::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}
.logo-text .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: #94a3b8;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-item i {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.nav-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: #ffffff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}
.nav-item.active i {
    color: #ffffff;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid hsl(var(--border-color));
}

.current-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.02);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid hsl(var(--border-color));
}

.user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.user-role {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 6px;
    transition: var(--transition-fast);
}
.logout-btn:hover {
    color: hsl(var(--color-danger));
    background-color: rgba(244, 63, 94, 0.08);
}


/* 5. MAIN CONTENT HEADER & TOOLS */
.main-content {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid hsl(var(--border-color));
    background-color: hsl(var(--surface-dark));
}

.main-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Premium Button Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--primary-gradient);
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-glass {
    background-color: var(--surface-glass);
    border: 1px solid hsl(var(--border-color));
    color: #e2e8f0;
}
.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #475569;
}

.btn-text {
    background: none;
    color: var(--primary);
    padding: 0.25rem 0.5rem;
}
.btn-text:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.btn-icon-sm {
    background: none;
    border: 1px solid hsl(var(--border-color));
    color: #94a3b8;
    padding: 0.35rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-icon-sm:hover {
    color: #ffffff;
    border-color: #475569;
    background-color: rgba(255, 255, 255, 0.03);
}

/* Tenant Dropdown Trigger */
.dropdown-trigger {
    font-family: inherit;
}
.dropdown-trigger i {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}
.dropdown-arrow {
    margin-left: 0.25rem;
}


/* 6. STATS GRID & STATS CARDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 2rem 0.75rem 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(20, 29, 48, 0.8) 0%, rgba(15, 21, 36, 0.8) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
}
.stat-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    transition: var(--transition-fast);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon-wrapper i {
    width: 22px;
    height: 22px;
}

/* Card Themes & Vibrant Distinctive Colors */
.stat-card.stat-card-purple {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.16) 0%, rgba(99, 102, 241, 0.06) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 10px 25px -5px rgba(147, 51, 234, 0.15);
}
.stat-card.stat-card-purple::before {
    background: linear-gradient(90deg, #a855f7, #6366f1);
    height: 4px;
}
.stat-card.stat-card-purple:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 12px 30px -5px rgba(147, 51, 234, 0.3);
    transform: translateY(-3px);
}
.stat-card.stat-card-purple .stat-icon-wrapper {
    background: linear-gradient(135deg, #9333ea, #6366f1);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}
.stat-card.stat-card-purple .stat-label {
    color: #c084fc;
}

.stat-card.stat-card-blue {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16) 0%, rgba(59, 130, 246, 0.06) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.15);
}
.stat-card.stat-card-blue::before {
    background: linear-gradient(90deg, #38bdf8, #3b82f6);
    height: 4px;
}
.stat-card.stat-card-blue:hover {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 12px 30px -5px rgba(14, 165, 233, 0.3);
    transform: translateY(-3px);
}
.stat-card.stat-card-blue .stat-icon-wrapper {
    background: linear-gradient(135deg, #0284c7, #3b82f6);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}
.stat-card.stat-card-blue .stat-label {
    color: #7dd3fc;
}

.stat-card.stat-card-emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.06) 100%);
    border: 1px solid rgba(52, 211, 153, 0.35);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15);
}
.stat-card.stat-card-emerald::before {
    background: linear-gradient(90deg, #34d399, #10b981);
    height: 4px;
}
.stat-card.stat-card-emerald:hover {
    border-color: rgba(52, 211, 153, 0.6);
    box-shadow: 0 12px 30px -5px rgba(16, 185, 129, 0.3);
    transform: translateY(-3px);
}
.stat-card.stat-card-emerald .stat-icon-wrapper {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.4);
}
.stat-card.stat-card-emerald .stat-label {
    color: #6ee7b7;
}

.stat-card.stat-card-amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(239, 68, 68, 0.06) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.15);
}
.stat-card.stat-card-amber::before {
    background: linear-gradient(90deg, #fbbf24, #f97316);
    height: 4px;
}
.stat-card.stat-card-amber:hover {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 12px 30px -5px rgba(245, 158, 11, 0.3);
    transform: translateY(-3px);
}
.stat-card.stat-card-amber .stat-icon-wrapper {
    background: linear-gradient(135deg, #d97706, #f97316);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
}
.stat-card.stat-card-amber .stat-label {
    color: #fcd34d;
}

/* Light Theme Overrides for the 4 Stat Cards */
body.light-theme .stat-card.stat-card-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%) !important;
    border: 1px solid #d8b4fe !important;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.08) !important;
}
body.light-theme .stat-card.stat-card-purple .stat-label {
    color: #7e22ce !important;
}
body.light-theme .stat-card.stat-card-purple .stat-value {
    color: #581c87 !important;
}

body.light-theme .stat-card.stat-card-blue {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border: 1px solid #7dd3fc !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.08) !important;
}
body.light-theme .stat-card.stat-card-blue .stat-label {
    color: #0369a1 !important;
}
body.light-theme .stat-card.stat-card-blue .stat-value {
    color: #075985 !important;
}

body.light-theme .stat-card.stat-card-emerald {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border: 1px solid #6ee7b7 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08) !important;
}
body.light-theme .stat-card.stat-card-emerald .stat-label {
    color: #047857 !important;
}
body.light-theme .stat-card.stat-card-emerald .stat-value {
    color: #064e3b !important;
}

body.light-theme .stat-card.stat-card-amber {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border: 1px solid #fde68a !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.08) !important;
}
body.light-theme .stat-card.stat-card-amber .stat-label {
    color: #b45309 !important;
}
body.light-theme .stat-card.stat-card-amber .stat-value {
    color: #78350f !important;
}

.stat-icon-wrapper.purple { background-color: rgba(139, 92, 246, 0.12); color: #a78bfa; }
.stat-icon-wrapper.blue { background-color: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.stat-icon-wrapper.emerald { background-color: rgba(16, 185, 129, 0.12); color: #34d399; }
.stat-icon-wrapper.amber { background-color: rgba(245, 158, 11, 0.12); color: #fbbf24; }

.stat-data {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-heading);
    margin: 0.15rem 0;
    line-height: 1.2;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.stat-trend i {
    width: 12px;
    height: 12px;
}
.trend-up { color: #34d399; }
.trend-down { color: #f43f5e; }
.trend-neutral { color: #64748b; }


/* 7. DASHBOARD PANELS & LAYOUTS */
.view-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 2rem 2rem 2rem;
}

.content-view {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.content-view.active {
    display: block;
}

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

.dashboard-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Panel Design System */
.panel {
    background-color: hsl(var(--surface-dark));
    border: 1px solid hsl(var(--border-color));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.panel-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border-color));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.panel-body {
    padding: 1.5rem;
}

/* 8. BAR CHART STYLES (PURE CSS) */
.bar-chart-container {
    display: flex;
    height: 200px;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    padding-right: 0.5rem;
    text-align: right;
    width: 30px;
}

.chart-bars {
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: flex-end;
    border-bottom: 1px solid hsl(var(--border-color));
    border-left: 1px solid hsl(var(--border-color));
    padding: 0 1rem;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 24px;
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
    position: relative;
    cursor: pointer;
}
.bar::after {
    content: attr(title);
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background-color: #0f172a;
    color: #ffffff;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.bar:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.bar-purple { background: linear-gradient(to top, rgba(139, 92, 246, 0.4), #a78bfa); }
.bar-blue { background: linear-gradient(to top, rgba(59, 130, 246, 0.4), #60a5fa); }
.bar-pink { background: linear-gradient(to top, rgba(236, 72, 153, 0.4), #f472b6); }
.bar-emerald { background: linear-gradient(to top, rgba(16, 185, 129, 0.4), #34d399); }
.bar-amber { background: linear-gradient(to top, rgba(245, 158, 11, 0.4), #fbbf24); }

.bar-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* 9. AUDIT LOG DETAILS */
.audit-list {
    display: flex;
    flex-direction: column;
}

.audit-item {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: var(--transition-fast);
}
.audit-item:last-child {
    border-bottom: none;
}
.audit-item:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.audit-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}
.dot-purple { background-color: #a78bfa; box-shadow: 0 0 8px rgba(167, 139, 250, 0.5); }
.dot-blue { background-color: #60a5fa; box-shadow: 0 0 8px rgba(96, 164, 250, 0.5); }
.dot-amber { background-color: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.5); }

.audit-details {
    display: flex;
    flex-direction: column;
}

.audit-desc {
    font-size: 0.875rem;
    color: #e2e8f0;
}

.audit-meta {
    font-size: 0.75rem;
    color: #64748b;
}

/* 10. BRANCH LIST */
.branch-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.branch-card-mini {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}
.branch-card-mini:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: #475569;
}

.branch-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
}
.branch-info p {
    font-size: 0.75rem;
    color: #64748b;
}

.tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: #94a3b8;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.branch-status {
    font-size: 0.75rem;
    font-weight: 700;
    color: #34d399;
}


/* 11. CHECKLIST TODO */
.task-todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
    color: #cbd5e1;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid hsl(var(--border-color));
    border-radius: 4px;
    transition: var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #6366f1;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #6366f1;
    border-color: #6366f1;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 1.5px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.todo-text.strike {
    text-decoration: line-through;
    color: #64748b;
}


/* 12. EMPLOYEE DIRECTORY INTERFACES */
.directory-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background-color: hsl(var(--surface-dark));
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid hsl(var(--border-color));
    gap: 1rem;
}

.search-box {
    position: relative;
    flex: 1;
}
.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #64748b;
}
.search-box input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    padding: 0.6rem 1rem 0.6rem 2.25rem;
    font-size: 0.875rem;
    color: #ffffff;
    transition: var(--transition-fast);
}
.search-box input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background-color: rgba(255, 255, 255, 0.04);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
}

.select-field {
    background-color: hsl(var(--surface-dark));
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    padding: 0.6rem 1.75rem 0.6rem 1rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 14px;
    min-width: 160px;
}
.select-field:focus {
    border-color: #6366f1;
}

/* Data Table Styling */
.table-container {
    background-color: hsl(var(--surface-dark));
    border: 1px solid hsl(var(--border-color));
    border-radius: 12px;
    overflow: hidden;
}

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

.data-table th {
    background-color: rgba(255, 255, 255, 0.015);
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
    border-bottom: 1px solid hsl(var(--border-color));
}

.data-table td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    vertical-align: middle;
    font-size: 0.875rem;
}
.data-table tr:last-child td {
    border-bottom: none;
}
.data-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

.emp-profile-cell {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.emp-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}
.emp-name-wrapper {
    display: flex;
    flex-direction: column;
}
.emp-name-wrapper .name {
    font-weight: 600;
    color: #ffffff;
}
.emp-name-wrapper .email {
    font-size: 0.75rem;
    color: #64748b;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.725rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}
.status-badge.active { background-color: rgba(16, 185, 129, 0.1); color: #34d399; }
.status-badge.probation { background-color: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.status-badge.notice_period { background-color: rgba(244, 63, 94, 0.1); color: #f43f5e; }


/* 13. ORGANIZATIONAL TREE DIAGRAMS */
.org-chart-header {
    margin-bottom: 2rem;
}

.org-chart-container {
    width: 100%;
    overflow-x: auto;
    background-color: rgba(15, 21, 36, 0.5);
    border: 1px dashed rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
    min-height: 450px;
}

.org-tree-wrapper {
    display: flex;
    justify-content: center;
}

.org-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.node-card {
    background-color: hsl(var(--surface-panel));
    border: 1px solid hsl(var(--border-color));
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    transition: var(--transition-fast);
}
.node-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.15);
}

.node-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.node-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.node-details h4 {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.node-details span {
    font-size: 0.725rem;
}
.node-role {
    color: #6366f1;
    font-weight: 500;
}
.node-dept, .node-company {
    color: #64748b;
}

/* Connecting Lines */
.org-children {
    display: flex;
    justify-content: center;
    position: relative;
    padding-top: 2rem;
    margin-top: 10px;
}

.org-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background-color: #1e293b;
}

.org-tree-branch {
    position: relative;
    padding: 0 1rem;
}

/* Horizontal connectors */
.org-tree-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1e293b;
}
.org-tree-branch:first-child::before {
    left: 50%;
    width: 50%;
}
.org-tree-branch:last-child::before {
    width: 50%;
}
.org-tree-branch:only-child::before {
    display: none;
}


/* 14. RBAC ROLE CARDS */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.role-card {
    background-color: hsl(var(--surface-dark));
    border: 1px solid hsl(var(--border-color));
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-fast);
}
.role-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
}

.role-card-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    padding-bottom: 1rem;
}

.role-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.role-icon-wrapper i {
    width: 20px;
    height: 20px;
}
.role-icon-wrapper.font-purple { background-color: rgba(139,92,246,0.1); color: #a78bfa; }
.role-icon-wrapper.font-blue { background-color: rgba(59,130,246,0.1); color: #60a5fa; }
.role-icon-wrapper.font-emerald { background-color: rgba(16,185,129,0.1); color: #34d399; }

.role-title-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.role-title-info h4 {
    font-size: 0.95rem;
}

.role-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1rem;
    min-height: 50px;
}

.role-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.725rem;
    color: #94a3b8;
    background-color: rgba(255,255,255,0.01);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.02);
}


/* 15. INPUTS, FORMS & DRAWER SLIDE-OUT */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-field {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid hsl(var(--border-color));
    border-radius: 6px;
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    color: #ffffff;
    transition: var(--transition-fast);
}
.input-field:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}
.form-group.col-6 { width: 50%; }
.form-group.col-4 { width: 33.33%; }

.form-section {
    border-bottom: 1px solid rgba(255,255,255,0.02);
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
}
.form-section:last-child {
    border-bottom: none;
}
.form-section h4 {
    font-size: 0.9rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

/* Side Drawer Component */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 100%;
    background-color: hsl(var(--surface-dark));
    border-left: 1px solid hsl(var(--border-color));
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.active {
    display: block;
    opacity: 1;
}
.drawer-overlay.active .drawer {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border-color));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition-fast);
}
.drawer-close:hover {
    color: #ffffff;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.drawer-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ==========================================
   Phase 2: Attendance, Leave & Shifts CSS
   ========================================== */

/* 1. High-Tech Virtual Clocking Terminal styles */
.panel.clock-terminal-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.panel.clock-terminal-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #38bdf8, #34d399);
}

.terminal-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #34d399;
    box-shadow: 0 0 10px #34d399;
    animation: terminalPulse 2s infinite;
}

@keyframes terminalPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.clock-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    gap: 1rem;
}

.clock-terminal-screen {
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.95) 0%, #030712 100%);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 1.25rem 2.5rem;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 8px 25px rgba(14, 165, 233, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    max-width: 440px;
    margin-bottom: 0.5rem;
}

.clock-date-chip {
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.clock-display {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Outfit', monospace, sans-serif;
    color: #38bdf8;
    letter-spacing: 0.08em;
    background: linear-gradient(180deg, #ffffff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.clock-shift-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.clock-shift-info i {
    width: 13px;
    height: 13px;
    color: #fbbf24;
}

.clock-duration {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 600;
}

.btn-clock {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, #10b981 0%, #047857 100%);
    border: 4px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-clock i {
    width: 32px;
    height: 32px;
}
.btn-clock span {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.btn-clock.clocked-in {
    background: radial-gradient(circle, #ef4444 0%, #b91c1c 100%);
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.btn-clock:hover {
    transform: scale(1.05);
}
.btn-clock:active {
    transform: scale(0.98);
}

.clock-geo-info {
    font-size: 0.775rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.clock-geo-info i {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

/* 2. Leave balance grid styles */
.leave-balances-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.leave-balance-card {
    background: linear-gradient(135deg, rgba(20, 29, 48, 0.85) 0%, rgba(15, 21, 36, 0.85) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.leave-balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}
.leave-balance-card.card-annual::before { background: linear-gradient(to bottom, #a78bfa, #8b5cf6); }
.leave-balance-card.card-casual::before { background: linear-gradient(to bottom, #60a5fa, #3b82f6); }
.leave-balance-card.card-sick::before { background: linear-gradient(to bottom, #34d399, #10b981); }

.bal-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
}

.bal-val {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #ffffff;
    margin-top: 0.25rem;
}

.bal-subtext {
    font-size: 0.775rem;
    color: #64748b;
    margin-top: 0.15rem;
}

/* 3. Shift info & Weekly rosters */
.shift-info-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.015);
    padding-bottom: 0.5rem;
}
.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: #64748b;
    font-weight: 500;
}

.info-val {
    color: #ffffff;
    font-weight: 600;
}

.roster-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.roster-card {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.roster-day-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
}
.roster-day-info p {
    font-size: 0.75rem;
    color: #64748b;
}

.roster-badge {
    background-color: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 0.15rem 0.5rem;
    font-size: 0.725rem;
    font-weight: 700;
    border-radius: 4px;
}

/* 4. Holidays list styles */
.holiday-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.holiday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.holiday-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}
.holiday-info p {
    font-size: 0.75rem;
    color: #64748b;
}

.holiday-date {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-align: center;
}

/* 5. Timesheet cards */
.timesheet-stats-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==========================================
   Phase 3: Payroll & Digital Payslip CSS
   ========================================== */

/* Modal Backdrop */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Digital Payslip Paper Card */
.payslip-modal-card {
    background-color: hsl(var(--surface-dark));
    border: 1px solid hsl(var(--border-color));
    border-radius: 16px;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.payslip-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid hsl(var(--border-color));
    background-color: rgba(255, 255, 255, 0.015);
}

.payslip-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.payslip-brand h3 {
    font-size: 1.1rem;
    font-weight: 700;
}
.payslip-brand p {
    font-size: 0.75rem;
    color: #64748b;
}

.payslip-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payslip-modal-body {
    padding: 2rem;
}

/* Payslip Employee Meta info */
.payslip-emp-meta {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid hsl(var(--border-color));
    border-radius: 10px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.meta-field .lbl {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
}
.meta-field .val {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f1f5f9;
}

/* Breakdown Grid (Earnings vs Deductions) */
.payslip-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.breakdown-box {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid hsl(var(--border-color));
    border-radius: 10px;
    overflow: hidden;
}

.breakdown-box-header {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-bottom: 1px solid hsl(var(--border-color));
    display: flex;
    justify-content: space-between;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.6rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.825rem;
    color: #cbd5e1;
}

.breakdown-total {
    border-top: 1px solid hsl(var(--border-color));
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.02);
}

/* Net Pay Highlight */
.payslip-net-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.12) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.net-label h4 {
    font-size: 1.1rem;
    color: #34d399;
}
.net-label p {
    font-size: 0.75rem;
    color: #94a3b8;
}

.net-amount {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #34d399;
}

/* ==========================================
   Phase 4: Recruitment & ATS CSS
   ========================================= */

/* Job Requisitions */
.job-requisitions-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.job-req-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid hsl(var(--border-color));
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.job-req-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background-color: rgba(99, 102, 241, 0.03);
}

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

.job-req-header h4 {
    font-size: 0.925rem;
    font-weight: 700;
    color: #f8fafc;
}

.job-req-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.job-req-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

/* AI Match Score Badges */
.ai-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.ai-match-badge.strong {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.ai-match-badge.good {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.ai-match-badge.moderate {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* Onboarding Grid & Cards */
.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.onboarding-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid hsl(var(--border-color));
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.onboarding-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.onboarding-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.onboarding-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
}

.onboarding-progress-track {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.onboarding-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #34d399);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.onboarding-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
}

.onboarding-task-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #cbd5e1;
    cursor: pointer;
}

.onboarding-task-item.completed span {
    text-decoration: line-through;
    color: #64748b;
}

/* ==========================================
   Phase 5: Performance, LMS & Engagement CSS
   ========================================== */

/* 1. 9-Box Grid */
.nine-box-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 75px);
    gap: 6px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border-color));
}

.nine-box-cell {
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.nine-box-cell:hover {
    transform: scale(1.03);
}

.cell-star { background: rgba(168, 85, 247, 0.25); border: 1px solid rgba(168, 85, 247, 0.5); color: #c084fc; }
.cell-high { background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.4); color: #34d399; }
.cell-solid { background: rgba(59, 130, 246, 0.2); border: 1px solid rgba(59, 130, 246, 0.4); color: #60a5fa; }
.cell-high-pot { background: rgba(99, 102, 241, 0.2); border: 1px solid rgba(99, 102, 241, 0.4); color: #818cf8; }
.cell-core { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #cbd5e1; }
.cell-effective { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #fbbf24; }
.cell-enigma { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #fbbf24; }
.cell-dilemma { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; }
.cell-under { background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171; }

.nine-box-count {
    font-size: 0.75rem;
    font-weight: 800;
}

/* 2. LMS Courses */
.lms-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(244, 63, 94, 0.15) 100%);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.lms-banner-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.4rem 0 0.2rem 0;
}
.lms-banner-content p {
    font-size: 0.8rem;
    color: #94a3b8;
}

.lms-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.lms-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid hsl(var(--border-color));
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.lms-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.lms-card-thumb {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.lms-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.lms-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
}

.lms-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
}

.lms-progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.lms-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 3. Kudos Wall */
.kudos-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.kudos-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid hsl(var(--border-color));
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
}

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

.kudos-actors {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kudos-badge-pill {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.kudos-msg {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-style: italic;
    line-height: 1.4;
}

.kudos-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.6rem;
}

/* ==========================================
   Phase 6: AI Platform & Analytics CSS
   ========================================== */

/* 1. AI Copilot Chat Window */
.ai-copilot-container {
    background-color: hsl(var(--surface-dark));
    border: 1px solid hsl(var(--border-color));
    border-radius: 16px;
    height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.ai-copilot-header {
    padding: 1.25rem 1.75rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid hsl(var(--border-color));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-copilot-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-avatar-pulse {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.ai-copilot-brand h3 {
    font-size: 1.05rem;
    font-weight: 700;
}
.ai-copilot-brand p {
    font-size: 0.75rem;
    color: #94a3b8;
}

.ai-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #34d399;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #34d399;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Quick Prompts Bar */
.ai-quick-prompts {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.75rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    white-space: nowrap;
}

.ai-prompts-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.btn-prompt-chip {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid hsl(var(--border-color));
    color: #cbd5e1;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-prompt-chip:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.15));
    border-color: rgba(168, 85, 247, 0.4);
    color: #f8fafc;
}

/* Chat Stream */
.ai-chat-stream {
    flex: 1;
    padding: 1.5rem 1.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ai-chat-msg {
    display: flex;
    gap: 0.85rem;
    max-width: 85%;
}

.ai-chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-chat-msg.assistant {
    align-self: flex-start;
}

.ai-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.ai-msg-bubble {
    padding: 1rem 1.25rem;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.ai-chat-msg.user .ai-msg-bubble {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.ai-chat-msg.assistant .ai-msg-bubble {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid hsl(var(--border-color));
    color: #e2e8f0;
    border-bottom-left-radius: 2px;
}

.ai-msg-bubble strong {
    color: #f8fafc;
}

.ai-citation-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Chat Input Bar */
.ai-input-wrapper {
    padding: 1rem 1.75rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid hsl(var(--border-color));
}

.ai-input-box {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.ai-text-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid hsl(var(--border-color));
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    color: #ffffff;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.ai-text-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

/* 2. Flight Risk Badges */
.risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.risk-badge.critical {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.risk-badge.high {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.risk-badge.low {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* ==========================================
   Phase 7: Mobile Platform & Integrations CSS
   ========================================== */

/* 1. Mobile ESS Simulator */
.mobile-simulator-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.feature-bullets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.phone-frame-wrapper {
    display: flex;
    justify-content: center;
}

.phone-chassis {
    width: 340px;
    height: 680px;
    background-color: #000000;
    border: 10px solid #1e293b;
    border-radius: 46px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background-color: #000000;
    border-radius: 20px;
    z-index: 10;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 6px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    z-index: 5;
}

.phone-screen {
    flex: 1;
    background-color: hsl(var(--bg-dark));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-user-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-user-chip .emp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.phone-user-chip h5 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.phone-user-chip p {
    font-size: 0.65rem;
    color: #94a3b8;
}

.phone-icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #cbd5e1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.phone-screen-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.phone-punch-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}

.phone-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #a5b4fc;
    text-transform: uppercase;
}

.phone-punch-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: 4px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    transition: all 0.2s ease;
}

.phone-punch-btn:hover {
    transform: scale(1.05);
}

.phone-punch-btn.punched-in {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.phone-punch-btn span {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.phone-geofence {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: #cbd5e1;
}

.phone-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.phone-leave-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.phone-chip {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid hsl(var(--border-color));
    border-radius: 10px;
    padding: 0.5rem 0.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-chip span {
    font-size: 0.65rem;
    color: #94a3b8;
}

.phone-chip strong {
    font-size: 0.85rem;
    color: #f8fafc;
}

.phone-holiday-banner {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid hsl(var(--border-color));
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-holiday-banner h6 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f8fafc;
}

.phone-holiday-banner p {
    font-size: 0.65rem;
    color: #94a3b8;
}

/* Phone Payslip Card */
.phone-payslip-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
}

.phone-net-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #34d399;
    margin-top: 0.5rem;
}

.phone-payslip-details {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
}

.phone-payslip-details .p-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #cbd5e1;
}

/* Phone Tab Bar */
.phone-tab-bar {
    display: flex;
    background-color: #0b0f19;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 0;
}

.phone-tab {
    flex: 1;
    background: none;
    border: none;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.phone-tab.active {
    color: #6366f1;
}

/* 2. Integrations Marketplace Grid */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.integration-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid hsl(var(--border-color));
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.int-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.integration-card p {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    flex: 1;
}

.int-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
}

/* 3. Node Health Grid */
.node-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.node-health-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid hsl(var(--border-color));
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.node-health-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
}

.node-metric {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
}

.node-metric strong {
    color: #34d399;
}

/* ==========================================
   Settings & Configuration Hub CSS
   ========================================== */

.settings-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-nav-tabs {
    display: flex;
    gap: 0.5rem;
    background-color: hsl(var(--surface-dark));
    border: 1px solid hsl(var(--border-color));
    border-radius: 12px;
    padding: 0.5rem;
    overflow-x: auto;
}

.settings-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 0.65rem 1.15rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.settings-tab-btn:hover {
    color: #f8fafc;
    background-color: rgba(255, 255, 255, 0.04);
}

.settings-tab-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

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

.settings-toggle-row:last-of-type {
    border-bottom: none;
}

.toggle-info h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.2rem;
}

.toggle-info p {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Toggle Switch Component */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .3s ease;
    border-radius: 24px;
}

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

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

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

/* ==========================================
   Theme Switcher & Light Theme Styles
   ========================================== */

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid hsl(var(--border-color));
    padding: 0.35rem 0.65rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-switch-wrapper:hover {
    border-color: rgba(99, 102, 241, 0.5);
}

.theme-icon {
    width: 14px;
    height: 14px;
    transition: color 0.2s ease;
}

.sun-icon {
    color: #fbbf24;
}

.moon-icon {
    color: #818cf8;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px;
}

.theme-switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.theme-switch input:checked + .theme-switch-slider {
    background: linear-gradient(135deg, #f59e0b, #e11d48);
}

.theme-switch input:checked + .theme-switch-slider:before {
    transform: translateX(16px);
}

/* ==========================================
   Comprehensive Light Theme Overrides
   ========================================== */

body.light-theme {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(241, 245, 249, 0.9) 0px, transparent 50%) !important;
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6 {
    color: #0f172a !important;
}

body.light-theme .sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

body.light-theme .main-header {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    backdrop-filter: blur(12px);
}

body.light-theme .theme-switch-wrapper {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.light-theme .sun-icon {
    color: #d97706;
}

body.light-theme .moon-icon {
    color: #64748b;
}

body.light-theme .stat-card,
body.light-theme .panel,
body.light-theme .role-card,
body.light-theme .integration-card,
body.light-theme .node-health-card,
body.light-theme .course-card,
body.light-theme .kudos-card,
body.light-theme .onboarding-card,
body.light-theme .ai-copilot-container {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.04), 0 2px 6px -2px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .logo-text {
    color: #0f172a !important;
}

body.light-theme .stat-value {
    color: #0f172a !important;
}

/* Directory Toolbar & Search Filters */
body.light-theme .directory-toolbar {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .search-box input {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .search-box input::placeholder {
    color: #94a3b8 !important;
}

body.light-theme .search-box i {
    color: #64748b !important;
}

body.light-theme .select-field {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* Data Table & Employee Rows in Light Mode */
body.light-theme .table-container {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05), 0 2px 6px -2px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .data-table {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

body.light-theme .data-table thead {
    background-color: #f8fafc !important;
}

body.light-theme .data-table th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 700 !important;
}

body.light-theme .data-table tbody {
    background-color: #ffffff !important;
}

body.light-theme .data-table tr {
    background-color: #ffffff !important;
}

body.light-theme .data-table td {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
}

body.light-theme .data-table tr:hover td {
    background-color: #f8fafc !important;
}

body.light-theme .emp-name-wrapper .name {
    color: #0f172a !important;
    font-weight: 600 !important;
}

body.light-theme .emp-name-wrapper .email {
    color: #64748b !important;
}

body.light-theme .btn-icon-sm {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

body.light-theme .btn-icon-sm:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Status Badges in Light Mode */
body.light-theme .status-badge {
    font-weight: 600 !important;
}

body.light-theme .status-badge.active {
    background-color: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

body.light-theme .status-badge.probation {
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

body.light-theme .status-badge.on_leave {
    background-color: rgba(59, 130, 246, 0.12) !important;
    color: #2563eb !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

body.light-theme .status-badge.notice_period,
body.light-theme .status-badge.resigned {
    background-color: rgba(244, 63, 94, 0.12) !important;
    color: #e11d48 !important;
    border: 1px solid rgba(244, 63, 94, 0.3) !important;
}

body.light-theme .input-field,
body.light-theme textarea {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .input-field:focus,
body.light-theme .select-field:focus,
body.light-theme textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

body.light-theme .nav-item {
    color: #64748b !important;
}

body.light-theme .nav-item:hover {
    color: #0f172a !important;
    background-color: #f1f5f9 !important;
}

body.light-theme .nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12)) !important;
    color: #6366f1 !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
}

body.light-theme .btn-glass {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

body.light-theme .btn-glass:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

body.light-theme .drawer {
    background-color: #ffffff !important;
    border-left: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.light-theme .drawer-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light-theme .drawer-footer {
    border-top: 1px solid #e2e8f0 !important;
}

body.light-theme .current-user {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .user-name {
    color: #0f172a !important;
}

body.light-theme .ai-copilot-header {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light-theme .ai-quick-prompts {
    background-color: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light-theme .btn-prompt-chip {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

body.light-theme .btn-prompt-chip:hover {
    color: #6366f1 !important;
    border-color: #6366f1 !important;
}

body.light-theme .ai-chat-msg.assistant .ai-msg-bubble {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

body.light-theme .ai-input-wrapper {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

body.light-theme .ai-text-input {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .settings-nav-tabs {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .settings-toggle-row {
    border-color: #f1f5f9 !important;
}

body.light-theme .toggle-info h5 {
    color: #0f172a !important;
}

body.light-theme .nine-box-cell {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .nine-box-cell:hover {
    background-color: #f1f5f9 !important;
}

body.light-theme .org-node {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

body.light-theme .badge-glass {
    background-color: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
    color: #4f46e5 !important;
}

body.light-theme .kudos-msg {
    color: #475569 !important;
}

body.light-theme .payslip-card {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

body.light-theme .payslip-section {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .payslip-row {
    color: #334155 !important;
}

/* Light Theme Overrides for Virtual Clocking Terminal */
body.light-theme .panel.clock-terminal-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.07), 0 4px 12px -2px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .clock-terminal-screen {
    background: radial-gradient(ellipse at center, #0f172a 0%, #020617 100%) !important;
    border: 2px solid #334155 !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(15, 23, 42, 0.15) !important;
}

body.light-theme .clock-date-chip {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

body.light-theme .clock-display {
    color: #38bdf8 !important;
    background: linear-gradient(180deg, #ffffff 0%, #38bdf8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.6) !important;
}

body.light-theme .clock-shift-info {
    color: #cbd5e1 !important;
}

body.light-theme .clock-duration {
    color: #475569 !important;
}

/* ==========================================
   Confirmation Warning Modal Styles
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.confirm-modal-card {
    background-color: hsl(var(--surface-dark));
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 16px;
    padding: 2rem;
    max-width: 460px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(244, 63, 94, 0.15);
    transform: scale(0.92);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .confirm-modal-card {
    transform: scale(1);
}

.confirm-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #f43f5e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
}

.confirm-modal-icon i {
    width: 28px;
    height: 28px;
}

.confirm-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.confirm-modal-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.confirm-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Light Theme Overrides for Confirmation Modal */
body.light-theme .confirm-modal-card {
    background-color: #ffffff !important;
    border: 1px solid #fecdd3 !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 0 20px rgba(244, 63, 94, 0.08) !important;
}

body.light-theme .confirm-modal-title {
    color: #0f172a !important;
}

body.light-theme .confirm-modal-desc {
    color: #64748b !important;
}

/* User Switcher Styles */
.user-switcher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    width: 100%;
}

.user-switcher-item:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.user-switcher-item.active {
    background: rgba(99, 102, 241, 0.14);
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.user-switcher-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-switcher-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-switcher-info {
    display: flex;
    flex-direction: column;
}

.user-switcher-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
}

.user-switcher-role-tag {
    font-size: 0.72rem;
    color: #94a3b8;
}

body.light-theme .user-switcher-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light-theme .user-switcher-item:hover {
    background: #eef2ff;
    border-color: #818cf8;
}

body.light-theme .user-switcher-item.active {
    background: #e0e7ff;
    border-color: #6366f1;
}

body.light-theme .user-switcher-name {
    color: #0f172a;
}

body.light-theme .user-switcher-role-tag {
    color: #475569;
}

/* ==========================================
   RESPONSIVE MOBILE STYLES
   ========================================== */

/* Hide mobile elements on desktop by default */
.mobile-menu-btn,
.sidebar-close-btn,
.mobile-close-btn,
.sidebar-overlay {
    display: none;
}

@media (max-width: 992px) {
    /* General container responsive grid fixes */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .roles-grid,
    .leave-balances-grid,
    .payslip-emp-meta,
    .nine-box-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* App layout adjustments */
    .app-container {
        position: relative;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1001;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .app-container.sidebar-open .sidebar {
        left: 0 !important;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1000;
    }
    
    .app-container.sidebar-open .sidebar-overlay {
        display: block !important;
    }
    
    .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: 1px solid hsl(var(--border-color));
        color: #94a3b8;
        cursor: pointer;
        padding: 0.5rem;
        margin-right: 0.75rem;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.02);
    }
    .mobile-menu-btn i {
        width: 18px;
        height: 18px;
    }
    
    .mobile-close-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: 1px solid hsl(var(--border-color));
        color: #94a3b8;
        cursor: pointer;
        padding: 0.35rem;
        border-radius: 6px;
        margin-left: auto;
        background-color: rgba(255, 255, 255, 0.02);
    }
    .mobile-close-btn i {
        width: 14px;
        height: 14px;
    }
    
    /* Adjust header */
    .main-header {
        padding: 1rem 1.25rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .header-left {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .header-title-area {
        flex: 1;
        min-width: 0;
    }
    
    .main-header h1 {
        font-size: 1.35rem !important;
        margin: 0 !important;
    }
    
    #view-subtitle {
        font-size: 0.75rem !important;
        margin-top: 0.15rem !important;
    }
    
    .header-right {
        width: 100% !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
    }
    
    /* Adjust layouts */
    .dashboard-columns {
        grid-template-columns: 1fr !important;
        padding: 0 1.25rem !important;
        gap: 1rem !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 1rem 1.25rem 0.5rem 1.25rem !important;
        gap: 1rem !important;
    }
    
    /* Table layout fixes */
    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Sliding drawer width */
    .drawer {
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Sub-grid stacking */
    .roles-grid,
    .leave-balances-grid,
    .payslip-emp-meta,
    .nine-box-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .payslip-breakdown-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* General padding updates for screens */
    .content-view {
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .header-right {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    .header-right .theme-switch-wrapper {
        justify-content: center !important;
    }
    
    .header-right button {
        width: 100% !important;
    }
}











