* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

:root {
    --primary: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    --secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success: linear-gradient(135deg, #0fa968 0%, #11c770 100%);
    --warning: linear-gradient(135deg, #f7b42c 0%, #fc575e 100%);
    --danger: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --dark-900: #0a0a0a;
    --dark-800: #111111;
    --dark-700: #1a1a1a;
    --dark-600: #242424;
    --dark-500: #2e2e2e;
    
    --glass: rgba(255, 255, 255, 0.02);
    --glass-hover: rgba(255, 255, 255, 0.05);
    --glass-active: rgba(255, 255, 255, 0.08);
    
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
    
    --glow: 0 0 20px rgba(255, 107, 107, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: var(--dark-900);
    color: var(--text-primary);
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* Global Scrollbar Styles - Consistent Dark Theme */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-800);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 2px solid var(--dark-800);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(255, 107, 107, 0.3);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) var(--dark-800);
}

/* Animated Background */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.cosmic-bg::before,
.cosmic-bg::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
}

.cosmic-bg::before {
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(252, 203, 70, 0.03) 0%, transparent 50%);
    animation: cosmicFloat 30s ease-in-out infinite;
}

@keyframes cosmicFloat {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(-30px, -50px) scale(1.1) rotate(120deg); }
    66% { transform: translate(50px, 30px) scale(0.9) rotate(240deg); }
}

/* Main Layout */
.app-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh / 0.8);
    width: calc(100vw / 0.8);
    transform: scale(0.8);
    transform-origin: top left;
}

@media (max-width: 768px) {
    .app-container {
        height: 100vh;
        width: 100vw;
        transform: none;
    }
}


/* ══════════════════════════════════════════════════════════════ */
/* CUSTOMIZABLE NAVIGATION SYSTEM                                 */
/* ══════════════════════════════════════════════════════════════ */

/* Hide legacy sidebar */
.sidebar { display: none !important; }
.sidebar-overlay { display: none !important; }
.app-container { flex-direction: column; }
.main-content { margin-left: 0 !important; }

/* ═══ BOTTOM DOCK ═══ */
.bottom-dock{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);display:none;align-items:flex-end;gap:3px;padding:8px 10px;background:rgba(12,12,20,0.82);backdrop-filter:blur(30px) saturate(1.5);border:1px solid rgba(255,255,255,0.06);border-radius:18px;box-shadow:0 8px 40px rgba(0,0,0,0.5);z-index:10001}
.bottom-dock.show{display:flex}
.bd-logo{width:52px;height:52px;border-radius:13px;background:linear-gradient(135deg,#ff3c3c,#ff6a3c);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:20px;color:#fff;box-shadow:0 4px 16px rgba(255,60,60,0.25);cursor:pointer;margin-right:2px;transition:all 0.2s;flex-shrink:0}
.bd-logo:hover{transform:scale(1.05)}
.bd-sep{width:1px;height:24px;background:rgba(255,255,255,0.05);margin:0 3px;align-self:center;flex-shrink:0}
.bd-item{width:52px;height:52px;border-radius:13px;display:flex;align-items:center;justify-content:center;font-size:24px;cursor:pointer;transition:all 0.22s cubic-bezier(0.2,0,0,1.4);position:relative;flex-shrink:0}
.bd-item:hover{transform:translateY(-8px) scale(1.2)}
.bd-item.active{background:rgba(255,60,60,0.12);box-shadow:0 4px 16px rgba(255,60,60,0.12)}
.bd-item.active::after{content:'';position:absolute;bottom:-5px;width:5px;height:5px;border-radius:50%;background:#ff4646;box-shadow:0 0 8px rgba(255,70,70,0.6)}
.bd-item .bd-tip{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%) translateY(4px);background:rgba(12,12,20,0.95);border:1px solid rgba(255,255,255,0.08);padding:6px 14px;border-radius:8px;font-size:13px;font-weight:600;white-space:nowrap;color:rgba(255,255,255,0.85);opacity:0;pointer-events:none;transition:all 0.15s;box-shadow:0 4px 16px rgba(0,0,0,0.3)}
.bd-item:hover .bd-tip{opacity:1;transform:translateX(-50%) translateY(0)}
.bd-item .bd-badge{position:absolute;top:1px;right:1px;min-width:15px;height:15px;background:#ff4646;border-radius:8px;font-size:7px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 3px;border:2px solid rgba(12,12,20,0.8);color:#fff}

/* ═══ CORNER DOCK ═══ */
.corner-dock{position:fixed;bottom:16px;left:16px;display:none;flex-direction:column;align-items:center;gap:3px;padding:8px;background:rgba(12,12,20,0.82);backdrop-filter:blur(30px) saturate(1.5);border:1px solid rgba(255,255,255,0.06);border-radius:16px;box-shadow:0 8px 40px rgba(0,0,0,0.5);z-index:10001}
.corner-dock.show{display:flex}
.cd-logo{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,#ff3c3c,#ff6a3c);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:14px;color:#fff;box-shadow:0 4px 16px rgba(255,60,60,0.25);flex-shrink:0;cursor:pointer}
.cd-sep{width:20px;height:1px;background:rgba(255,255,255,0.05);margin:2px 0}
.cd-item{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px;cursor:pointer;transition:all 0.2s;position:relative;opacity:0.35}
.cd-item:hover{opacity:0.7;background:rgba(255,255,255,0.03);transform:scale(1.08)}
.cd-item.active{opacity:1;background:rgba(255,60,60,0.12)}
.cd-item .cd-tip{position:absolute;left:calc(100% + 10px);top:50%;transform:translateY(-50%) translateX(4px);background:rgba(12,12,20,0.95);border:1px solid rgba(255,255,255,0.08);padding:5px 11px;border-radius:7px;font-size:10px;font-weight:600;white-space:nowrap;color:rgba(255,255,255,0.85);opacity:0;pointer-events:none;transition:all 0.15s}
.cd-item:hover .cd-tip{opacity:1;transform:translateY(-50%) translateX(0)}
.cd-item .cd-badge{position:absolute;top:0;right:0;min-width:14px;height:14px;background:#ff4646;border-radius:7px;font-size:7px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 3px;border:2px solid rgba(12,12,20,0.8);color:#fff}

/* ═══ VERTICAL DOCK (left side) ═══ */
.vertical-dock{position:fixed;left:16px;top:50%;transform:translateY(-50%);display:none;flex-direction:column;align-items:center;gap:3px;padding:10px 8px;background:rgba(12,12,20,0.82);backdrop-filter:blur(30px) saturate(1.5);border:1px solid rgba(255,255,255,0.06);border-radius:18px;box-shadow:0 8px 40px rgba(0,0,0,0.5);z-index:10001}
.vertical-dock.show{display:flex}
.vd-logo{width:42px;height:42px;border-radius:11px;background:linear-gradient(135deg,#ff3c3c,#ff6a3c);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:16px;color:#fff;box-shadow:0 4px 16px rgba(255,60,60,0.25);cursor:pointer;margin-bottom:2px}
.vd-sep{width:22px;height:1px;background:rgba(255,255,255,0.05);margin:3px 0}
.vd-item{width:42px;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer;transition:all 0.22s cubic-bezier(0.2,0,0,1.4);position:relative;opacity:0.35}
.vd-item:hover{opacity:0.7;transform:translateX(6px) scale(1.15);background:rgba(255,255,255,0.03)}
.vd-item.active{opacity:1;background:rgba(255,60,60,0.12)}
.vd-item.active::after{content:'';position:absolute;left:-4px;top:50%;transform:translateY(-50%);width:4px;height:4px;border-radius:50%;background:#ff4646;box-shadow:0 0 8px rgba(255,70,70,0.6)}
.vd-item .vd-tip{position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%) translateX(4px);background:rgba(12,12,20,0.95);border:1px solid rgba(255,255,255,0.08);padding:6px 14px;border-radius:8px;font-size:13px;font-weight:600;white-space:nowrap;color:rgba(255,255,255,0.85);opacity:0;pointer-events:none;transition:all 0.15s;box-shadow:0 4px 16px rgba(0,0,0,0.3)}
.vd-item:hover .vd-tip{opacity:1;transform:translateY(-50%) translateX(0)}
.vd-item .vd-badge{position:absolute;top:1px;right:1px;min-width:14px;height:14px;background:#ff4646;border-radius:7px;font-size:7px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 3px;border:2px solid rgba(12,12,20,0.8);color:#fff}

/* ═══ FLOATING CARDS (top row) ═══ */
.floating-cards{position:fixed;top:8px;left:50%;transform:translateX(-50%);display:none;gap:6px;z-index:10001;align-items:stretch}
.floating-cards.show{display:flex}
.fc-item{padding:10px 16px;border-radius:12px;background:rgba(12,12,20,0.82);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,0.04);cursor:pointer;transition:all 0.2s;display:flex;align-items:center;gap:10px;min-width:120px}
.fc-item:hover{background:rgba(12,12,20,0.9);border-color:rgba(255,255,255,0.07);transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,0.3)}
.fc-item.active{border-color:rgba(255,60,60,0.15);background:rgba(255,60,60,0.06)}
.fc-item .fc-icon{font-size:20px}
.fc-item .fc-info{flex:1}
.fc-item .fc-name{font-size:12px;color:rgba(255,255,255,0.4);font-weight:500}
.fc-item.active .fc-name{color:#fff;font-weight:600}
.fc-more{padding:10px 16px;border-radius:12px;background:rgba(12,12,20,0.82);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,0.04);cursor:pointer;font-size:12px;color:rgba(255,255,255,0.2);font-weight:600;display:flex;align-items:center;white-space:nowrap;transition:all 0.15s}
.fc-more:hover{background:rgba(12,12,20,0.9);color:rgba(255,255,255,0.4)}

/* ═══ TOP BAR NAV ═══ */
.top-bar-nav{position:fixed;top:0;left:0;right:0;display:none;flex-direction:column;z-index:10001;background:rgba(10,10,16,0.95);backdrop-filter:blur(20px)}
.top-bar-nav.show{display:flex}
.tb-sections{display:flex;align-items:center;padding:8px 16px;gap:4px;border-bottom:1px solid rgba(255,255,255,0.03)}
.tb-sec-logo{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#ff3c3c,#ff6a3c);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:13px;color:#fff;margin-right:10px;flex-shrink:0;box-shadow:0 2px 12px rgba(255,60,60,0.2)}
.tb-sec{padding:7px 16px;border-radius:9px;font-size:13px;font-weight:600;color:rgba(255,255,255,0.25);cursor:pointer;white-space:nowrap;transition:all 0.15s;position:relative}
.tb-sec:hover{color:rgba(255,255,255,0.5);background:rgba(255,255,255,0.02)}
.tb-sec.active{color:#fff;background:rgba(255,255,255,0.04)}
.tb-sec.active::after{content:'';position:absolute;bottom:-9px;left:50%;transform:translateX(-50%);width:20px;height:3px;background:#ff4646;border-radius:2px;box-shadow:0 0 8px rgba(255,70,70,0.4)}
.tb-sec .tb-badge{display:inline-flex;margin-left:5px;min-width:18px;height:18px;background:#ff4646;border-radius:9px;font-size:9px;font-weight:700;align-items:center;justify-content:center;padding:0 5px;color:#fff}
.tb-items{display:flex;gap:2px;padding:6px 16px;background:rgba(255,255,255,0.008);border-bottom:1px solid rgba(255,255,255,0.02);overflow-x:auto}
.tb-items::-webkit-scrollbar{height:0}
.tb-it{padding:6px 14px;border-radius:8px;font-size:12px;font-weight:500;color:rgba(255,255,255,0.2);cursor:pointer;white-space:nowrap;display:flex;align-items:center;gap:6px;transition:all 0.12s}
.tb-it:hover{color:rgba(255,255,255,0.5);background:rgba(255,255,255,0.015)}
.tb-it.active{color:#fff;background:rgba(255,60,60,0.07);font-weight:600}
.tb-it .tb-meta{font-size:9px;color:rgba(255,255,255,0.1)}

/* ═══ KPI STRIP ═══ */
.kpi-strip{position:fixed;bottom:16px;right:16px;display:none;gap:4px;padding:8px;background:rgba(12,12,20,0.82);backdrop-filter:blur(30px) saturate(1.5);border:1px solid rgba(255,255,255,0.06);border-radius:14px;box-shadow:0 8px 40px rgba(0,0,0,0.5);z-index:10001}
.kpi-strip.show{display:flex}
.ks-item{padding:8px 12px;border-radius:8px;background:rgba(255,255,255,0.015);text-align:center;min-width:60px}
.ks-val{font-size:15px;font-weight:800;line-height:1}
.ks-lbl{font-size:7px;font-weight:700;color:rgba(255,255,255,0.15);text-transform:uppercase;letter-spacing:1px;margin-top:3px}

/* ═══ DRAWER ═══ */
.drawer-tab{position:fixed;bottom:0;left:50%;transform:translateX(-50%);padding:6px 20px;display:none;align-items:center;gap:8px;background:rgba(15,15,25,0.85);border:1px solid rgba(255,255,255,0.05);border-bottom:none;border-radius:12px 12px 0 0;cursor:pointer;backdrop-filter:blur(20px);z-index:10002;transition:all 0.15s}
.drawer-tab.show{display:flex}
.drawer-tab:hover{background:rgba(15,15,25,0.95);padding-bottom:10px}
.drawer-pill{width:28px;height:3px;border-radius:2px;background:rgba(255,255,255,0.12)}
.drawer-tab span{font-size:10px;font-weight:600;color:rgba(255,255,255,0.25)}
.drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.4);z-index:10003;display:none}
.drawer-overlay.show{display:block}
.drawer-panel{position:fixed;bottom:-500px;left:0;right:0;background:rgba(10,10,18,0.97);backdrop-filter:blur(30px);border-top:1px solid rgba(255,255,255,0.05);z-index:10004;transition:bottom 0.35s cubic-bezier(0.4,0,0.2,1);border-radius:20px 20px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,0.4);padding:0 24px 24px}
.drawer-panel.open{bottom:0}
.drawer-handle{width:36px;height:4px;border-radius:2px;background:rgba(255,255,255,0.08);margin:12px auto 16px;cursor:pointer}
.drawer-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(110px, 1fr));gap:8px;max-width:1000px;margin:0 auto}
.dg-item{padding:18px 8px;border-radius:14px;background:rgba(255,255,255,0.015);border:1px solid rgba(255,255,255,0.03);text-align:center;cursor:pointer;transition:all 0.15s}
.dg-item:hover{background:rgba(255,255,255,0.03);border-color:rgba(255,255,255,0.06);transform:translateY(-2px)}
.dg-item.active{background:linear-gradient(135deg,rgba(255,60,60,0.1),rgba(255,100,60,0.04));border-color:rgba(255,60,60,0.15)}
.dg-item .dg-icon{font-size:28px;margin-bottom:6px}
.dg-item .dg-name{font-size:11px;color:rgba(255,255,255,0.25);font-weight:600}
.dg-item.active .dg-name{color:#fff;font-weight:700}

/* ═══ COMMAND PALETTE ═══ */
.cmd-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.6);backdrop-filter:blur(6px);z-index:100000;display:none;align-items:flex-start;justify-content:center;padding-top:18vh}
.cmd-overlay.show{display:flex}
.cmd-box{width:520px;max-width:calc(100vw - 32px);background:#111118;border:1px solid rgba(255,255,255,0.07);border-radius:14px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.5);animation:cmdIn 0.12s ease}
@keyframes cmdIn{from{opacity:0;transform:scale(0.97) translateY(-6px)}}
.cmd-box input{padding:14px 18px;border:none;background:none;width:100%;font-size:15px;color:#fff;font-family:inherit;border-bottom:1px solid rgba(255,255,255,0.04);outline:none}
.cmd-box input::placeholder{color:rgba(255,255,255,0.18)}
.cmd-list{max-height:340px;overflow-y:auto;padding:6px}
.cmd-list::-webkit-scrollbar{width:0}
.cmd-sec{font-size:9px;font-weight:700;color:rgba(255,255,255,0.1);text-transform:uppercase;letter-spacing:2px;padding:8px 12px 3px}
.cmd-r{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;cursor:pointer;margin-bottom:1px;transition:all 0.1s}
.cmd-r:hover{background:rgba(255,60,60,0.07)}
.cmd-r .cr-i{font-size:16px;width:22px;text-align:center}
.cmd-r .cr-n{font-size:12px;color:rgba(255,255,255,0.6);font-weight:500;flex:1}
.cmd-r .cr-d{font-size:10px;color:rgba(255,255,255,0.12)}
.cmd-r .cr-b{font-size:8px;font-weight:700;color:#fff;background:#ff4646;padding:2px 7px;border-radius:8px}

/* ═══ NAV SETTINGS ═══ */
.nav-settings-trigger{position:fixed;top:16px;right:16px;z-index:10005;width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.06);display:none;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s;font-size:18px}
.nav-settings-trigger.show{display:flex}
.nav-settings-trigger:hover{background:rgba(255,255,255,0.08);transform:rotate(30deg)}
.nav-settings-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.5);backdrop-filter:blur(4px);z-index:99999;display:none;align-items:center;justify-content:center}
.nav-settings-overlay.show{display:flex}
.nav-settings-panel{width:600px;max-width:calc(100vw - 32px);max-height:85vh;background:#111118;border:1px solid rgba(255,255,255,0.07);border-radius:20px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,0.6);animation:cmdIn 0.2s ease;display:flex;flex-direction:column}
.nav-settings-header{padding:20px 24px;border-bottom:1px solid rgba(255,255,255,0.04);display:flex;align-items:center;justify-content:space-between}
.nav-settings-header h2{font-size:16px;font-weight:700;color:#fff}
.nav-settings-close{width:32px;height:32px;border-radius:8px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:14px;color:rgba(255,255,255,0.3);transition:all 0.15s}
.nav-settings-close:hover{background:rgba(255,255,255,0.06);color:rgba(255,255,255,0.6)}
.nav-settings-body{padding:20px 24px;overflow-y:auto;flex:1}
.nav-settings-body::-webkit-scrollbar{width:4px}
.nav-settings-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.06);border-radius:2px}
.nav-settings-section{margin-bottom:20px}
.nav-settings-section h3{font-size:10px;font-weight:700;color:rgba(255,255,255,0.15);text-transform:uppercase;letter-spacing:2px;margin-bottom:10px}
.nav-comp-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.nav-comp-card{padding:14px;border-radius:12px;background:rgba(255,255,255,0.015);border:1.5px solid rgba(255,255,255,0.04);cursor:pointer;transition:all 0.2s;position:relative}
.nav-comp-card:hover{background:rgba(255,255,255,0.025);border-color:rgba(255,255,255,0.08)}
.nav-comp-card.active{border-color:rgba(255,60,60,0.3);background:rgba(255,60,60,0.04)}
.nav-comp-check{position:absolute;top:10px;right:10px;width:20px;height:20px;border-radius:6px;border:1.5px solid rgba(255,255,255,0.08);display:flex;align-items:center;justify-content:center;font-size:11px;transition:all 0.15s}
.nav-comp-card.active .nav-comp-check{background:linear-gradient(135deg,#ff3c3c,#ff6a3c);border-color:transparent;color:#fff}
.nav-comp-icon{font-size:22px;margin-bottom:6px}
.nav-comp-name{font-size:12px;font-weight:600;color:rgba(255,255,255,0.6);margin-bottom:3px}
.nav-comp-card.active .nav-comp-name{color:#fff}
.nav-comp-desc{font-size:10px;color:rgba(255,255,255,0.15);line-height:1.5}
.nav-dock-picker{display:flex;flex-wrap:wrap;gap:4px}
.nav-dock-chip{padding:5px 10px;border-radius:8px;font-size:10px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:4px;transition:all 0.12s;background:rgba(255,255,255,0.015);border:1px solid rgba(255,255,255,0.04);color:rgba(255,255,255,0.25)}
.nav-dock-chip:hover{background:rgba(255,255,255,0.03);color:rgba(255,255,255,0.4)}
.nav-dock-chip.active{background:rgba(255,60,60,0.08);border-color:rgba(255,60,60,0.15);color:#fff}
.nav-settings-footer{padding:16px 24px;border-top:1px solid rgba(255,255,255,0.04);display:flex;justify-content:space-between;align-items:center}
.nav-reset-btn{padding:8px 16px;border-radius:8px;background:none;border:1px solid rgba(255,255,255,0.06);color:rgba(255,255,255,0.3);font-size:11px;font-weight:600;cursor:pointer;font-family:inherit;transition:all 0.15s}
.nav-reset-btn:hover{border-color:rgba(255,255,255,0.1);color:rgba(255,255,255,0.5)}
.nav-save-btn{padding:8px 20px;border-radius:8px;background:linear-gradient(135deg,#ff3c3c,#ff6a3c);border:none;color:#fff;font-size:11px;font-weight:700;cursor:pointer;font-family:inherit;transition:all 0.15s;box-shadow:0 4px 12px rgba(255,60,60,0.2)}
.nav-save-btn:hover{box-shadow:0 4px 20px rgba(255,60,60,0.3);transform:translateY(-1px)}

/* ═══ TOAST ═══ */
.nav-toast{position:fixed;top:20px;left:50%;transform:translateX(-50%) translateY(-60px);padding:10px 20px;background:rgba(74,222,128,0.1);border:1px solid rgba(74,222,128,0.2);border-radius:10px;font-size:12px;font-weight:600;color:#4ade80;z-index:999999;transition:all 0.3s;opacity:0;pointer-events:none}
.nav-toast.show{transform:translateX(-50%) translateY(0);opacity:1}

/* ═══ QUALITY DETAILS MODAL (was in old sidebar block) ═══ */
#qualityDetailsModal .table-responsive table th,
#qualityDetailsModal .table-responsive table td {
    white-space: nowrap;
    vertical-align: middle;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Content scrollbar */
.content::-webkit-scrollbar {
    width: 12px;
}

.content::-webkit-scrollbar-track {
    background: var(--dark-800);
    border-radius: 0;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    border: 3px solid var(--dark-800);
}

.content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.12);
}

.content::-webkit-scrollbar-thumb:active {
    background: rgba(255, 107, 107, 0.2);
}

/* Table scrollbars */
.employee-list-container::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
table::-webkit-scrollbar {
    height: 8px;
}

.employee-list-container::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
    background: var(--dark-700);
    border-radius: 4px;
}

.employee-list-container::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.employee-list-container::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Modal scrollbars */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--dark-700);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Hamburger Menu Button */
.menu-toggle {
    display: flex; /* ADDED to make visible always */
    align-items: center; /* ADDED from mobile styles */
    justify-content: center; /* ADDED from mobile styles */
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    position: relative;
    margin-right: 16px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    margin: 4px auto;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.menu-toggle.active {
    background: rgba(255, 107, 107, 0.1);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

/* Legacy sidebar removed — using customizable nav system */

/* Mobile Responsive */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .header {
        padding: 0 16px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .header-actions .btn span {
        display: none;
    }
    
    .header-actions .btn {
        padding: 8px;
        min-width: 36px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .filters {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select,
    .filter-input {
        width: 100%;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .quick-action {
        width: 100%;
    }
    
    .card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .employee-list-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .employee-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding-bottom: 8px;
    }
    
    .tab {
        min-width: fit-content;
    }
    
    .notification-dropdown {
        width: calc(100vw - 32px);
        right: -16px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 12px 8px;
    }

}


@media (max-width: 600px) {
    th[data-column="pipeline"],
    td[data-column="pipeline"],
    th[data-column="working_days"],
    td[data-column="working_days"],
    th[data-column="join_date"],
    td[data-column="join_date"] {
        display: none;
    }
}

@media (max-width: 360px) {
    .nav-item span:not(.nav-icon) {
        display: none;
    }
    
    .sidebar {
        width: 80px;
        left: -80px;
    }
    
    .sidebar.active {
        width: 280px;
    }
    
    .sidebar.active .nav-item span {
        display: inline;
    }
}

/* Landscape mode adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .content {
        padding: 12px;
    }
    
    .header {
        height: 60px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-item,
    .stat-card,
    .quick-action {
        min-height: 44px;
    }
    
    .modal-close {
        width: 44px;
        height: 44px;
    }
}

/* Keep all your existing styles below... */
/* (All the remaining styles from your original CSS continue here unchanged) */

/* Header */
.header {
    height: 70px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 1;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Content Area */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    padding-bottom: 100px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.employee-list-container {
    overflow-x: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.employee-list-container table {
    min-width: 1200px;
}

/* Cards */
.card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::after {
    transform: scaleX(1);
}

/* Active state for clickable stat cards (e.g., attendance filters) */
.stat-card.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.stat-card.active::after {
    transform: scaleX(1);
    background: var(--primary);
}

.stat-card[data-filter] {
    cursor: pointer;
}

.stat-card[data-filter]:hover {
    border-color: var(--primary-light);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--glass-hover);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.quality-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.quality-card {
    background: var(--dark-800);
    border: 1px solid var(--border);
    border-left: 4px solid var(--quality-color, #d946ef);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.quality-header {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.quality-metrics-container {
    display: flex;
    justify-content: space-around;
    gap: 12px;
}

.quality-metric .metric-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.quality-metric .metric-value {
    font-size: 18px;
    font-weight: 700;
}

.stat-change {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--glass-hover);
    border-radius: 6px;
}

.stat-change.positive {
    color: #0fa968;
}

.stat-change.negative {
    color: #eb3349;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--glass-hover);
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable:hover {
    color: var(--text-primary);
}

/* Filters */
.filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
    padding: 10px 16px;
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    min-width: 180px;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: rgba(255, 107, 107, 0.5);
    background: var(--glass-hover);
}

.filter-select option {
    background: var(--dark-700);
    color: var(--text-primary);
}

textarea.filter-input {
    resize: vertical;
    min-height: 60px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    box-shadow: var(--glow), var(--shadow-md);
}

.btn.active {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-danger {
    background: #ff6b6b !important;
    color: white !important;
    border: none !important;
}

.btn-danger:hover {
    background: #ff5252 !important;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Badge */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
    border: 1px solid transparent;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981 !important; /* Green Text */
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6 !important; /* Blue Text */
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b !important; /* Yellow/Orange Text */
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444 !important; /* Red Text */
}

.badge-secondary {
    background-color: rgba(107, 114, 128, 0.15);
    color: #9ca3af !important; /* Gray Text */
}

/* Override for podium cards to ensure text is white and readable */
.podium-card .badge {
    color: white !important;
    background-color: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.status-late > td {
    background-color: rgba(247, 180, 44, 0.05) !important;
}
.status-late > td:first-child {
    border-left: 4px solid #f7b42c;
}

.status-late > td:last-child {
    color: #f7b42c;
    font-weight: 600;
}

.status-ontime > td:last-child {
    color: #0fa968;
    font-weight: 600;
}

.status-absent > td:last-child {
    color: red;
    font-weight: 600;
}

.status-absent > td {
    background-color: rgb(111 0 0 / 4%) !important;;
    color: var(--text-secondary);
    opacity: 0.7;
}
.status-absent > td:first-child {
    border-left: 4px solid #ff6b6b;
}

.time-late {
    color: #f7b42c;
    font-weight: 600;
}
.time-ontime {
    color: #0fa968;
}

/* Tabs */
.tabs {
    display: contents;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--glass);
    border-radius: 12px;
}

.tab {
    padding: 8px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab.active {
    background: var(--primary);
    color: white;
}

/* Charts Container */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Employee Grid */
.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.employee-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
}

.employee-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 107, 107, 0.3);
}

.employee-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.employee-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.employee-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.employee-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.employee-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.employee-stat {
    text-align: center;
    padding: 8px;
    background: var(--glass-hover);
    border-radius: 8px;
}

.employee-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.employee-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Employee List Table */
.employee-list {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.employee-list table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    min-width: 1200px;
}

.employee-list th {
    position: relative;
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    user-select: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-list td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-list tr {
    transition: var(--transition);
    min-height: 60px;
}

.employee-list tbody tr:hover {
    background: var(--glass-hover);
}

/* Table Column Widths */
th[data-column="employee"] { width: 250px; min-width: 200px; }
th[data-column="id"] { width: 150px; min-width: 120px; }
th[data-column="project"] { width: 120px; min-width: 100px; }
th[data-column="pipeline"] { width: 100px; min-width: 80px; }
th[data-column="phone"] { width: 120px; min-width: 100px; }
th[data-column="job_title"] { width: 120px; min-width: 100px; }
th[data-column="shift"] { width: 130px; min-width: 100px; }
th[data-column="working_days"] { width: 100px; min-width: 80px; }
th[data-column="status"] { width: 100px; min-width: 80px; }
th[data-column="join_date"] { width: 120px; min-width: 100px; }
th[data-column="productivity"] { width: 100px; min-width: 80px; }
th[data-column="actions"] { width: 180px; min-width: 160px; }

#realtimeTable th[data-column="employee"] { width: 250px; min-width: 200px; }
#realtimeTable th[data-column="shift"] { width: 150px; min-width: 120px; }
#realtimeTable th[data-column="project"] { width: 150px; min-width: 120px; }
#realtimeTable th[data-column="check_in"] { width: 120px; min-width: 100px; }
#realtimeTable th[data-column="duration"] { width: 150px; min-width: 120px; }
#realtimeTable th[data-column="productivity"] { width: 200px; min-width: 160px; }
#realtimeTable th[data-column="actual_productivity"] { width: 200px; min-width: 160px; }
#realtimeTable th[data-column="status"] { width: 120px; min-width: 100px; }

/* Column Resizer */
.column-resizer {
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
    z-index: 10;
}

.column-resizer:hover,
.column-resizer.resizing {
    background: rgba(79, 172, 254, 0.5);
}

#liveTaskTableBody th {
    position: relative;
    user-select: none;
}

#liveTaskTableBody .column-resizer {
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
    z-index: 10;
}

#liveTaskTableBody .column-resizer:hover,
#liveTaskTableBody .column-resizer.resizing {
    background: rgba(79, 172, 254, 0.5);
}

#liveListView th {
    position: relative;
    user-select: none;
    min-width: 50px;
}

#liveListView .column-resizer:hover {
    background: rgba(79, 172, 254, 0.5) !important;
}

#liveListView table {
    table-layout: fixed;
    width: 100%;
}

#liveListView td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background: var(--dark-700);
    border-radius: 20px;
    width: 90%;
    max-width: 800px !important;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--glass-hover);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Form Elements */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 10px 16px;
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 107, 107, 0.5);
    background: var(--glass-hover);
}

textarea.form-input {
    resize: vertical;
    min-height: 60px;
}

.form-input[readonly] {
    cursor: not-allowed;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Special Modal Styles */
#deleteConfirmModal .modal-content {
    border: 2px solid #ff6b6b;
}

#deleteConfirmModal .modal-header {
    background: rgba(255, 107, 107, 0.1);
}

#rejectRequestModal textarea.form-input {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 12px;
    font-family: inherit;
}

#rejectRequestModal textarea.form-input:focus {
    outline: none;
    border-color: rgba(255, 107, 107, 0.5);
    background: var(--glass-hover);
}

#overtimeApprovalModal .form-input,
#overtimeRejectionModal .form-input {
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 14px;
    transition: var(--transition);
}

#overtimeApprovalModal .form-input:focus,
#overtimeRejectionModal .form-input:focus {
    outline: none;
    border-color: rgba(79, 172, 254, 0.5);
    background: var(--glass-hover);
}

#overtimeApprovalModal textarea.form-input,
#overtimeRejectionModal textarea.form-input {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

#employeeModal .modal-content {
    max-width: 700px;
}

#employeeModal .employee-avatar {
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: var(--glow);
}

#employeeModal label {
    display: block;
    margin-bottom: 4px;
}

#employeeModal .loading {
    padding: 60px;
    text-align: center;
}

/* Number input styling */
input[type="number"].form-input {
    font-size: 18px;
    font-weight: 600;
}

/* Radio button styling */
input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.performance-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.performance-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.performance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: #ff8e53;
}

.performance-card .metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    align-items: center;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 0 24px;
}

.performance-card .metric-item {
    text-align: center;
}

.metric-item .metric-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.metric-item .metric-value {
    font-size: 24px;
    font-weight: 600;
    margin-top: 8px;
}

.overall-score-container {
    text-align: center;
    padding-left: 24px;
}

.overall-score-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.overall-score-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.timeline-item {
    position: relative;
    padding: 16px 0;
}

.timeline-marker {
    position: absolute;
    left: -28px;
    top: 20px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
}

.timeline-content {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.timeline-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-description {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--glass-hover);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-hover);
    transition: var(--transition);
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Date Range Picker */
.date-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-input {
    padding: 8px 16px;
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.quick-action {
    padding: 16px 24px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-action:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    background: var(--glass-hover);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.quick-action-text h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.quick-action-text p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Column Visibility Menu */
.column-visibility-toggle {
  position: relative; /* Allows absolute positioning of the child menu */
}

.column-menu {
  display: none;
  position: absolute;
  background-color: var(--dark-600); /* Use your theme variable */
  border: 1px solid var(--border); /* Use your theme variable */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 105; /* Ensure it's above table content */
  min-width: 200px;
  right: 0; /* Align to the right of the container */
  top: 100%; /* Position directly below the button */
  margin-top: 5px; /* Small gap */
  padding: 5px 0; /* Padding inside the menu */
}

.column-menu.show {
  display: block;
}

.column-menu-item,
.column-checkbox { /* Apply styles to both label and the old div structure if needed */
  display: flex;
  align-items: center;
  padding: 8px 15px;
  cursor: pointer;
  color: var(--text-secondary); /* Use your theme variable */
  font-size: 14px;
  white-space: nowrap;
}

.column-menu-item:hover,
.column-checkbox:hover {
  background-color: var(--glass-hover); /* Use your theme variable */
  color: var(--text-primary); /* Use your theme variable */
}

.column-menu-item input[type="checkbox"],
.column-checkbox input[type="checkbox"] {
  margin-right: 10px;
  cursor: pointer;
}

.column-menu-item label,
.column-checkbox label {
  cursor: pointer;
  flex-grow: 1; /* Allow label to take available space */
}

.column-menu-divider {
    height: 1px;
    background-color: var(--border);
    margin: 5px 0;
}

/* Style disabled checkboxes/labels (e.g., for Actions) */
.column-checkbox.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: transparent; /* Prevent hover effect */
}
.column-checkbox.disabled input[type="checkbox"] {
    cursor: not-allowed;
}
.column-checkbox.disabled label {
    cursor: not-allowed;
}

.column-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.column-menu-item:hover {
    background: var(--glass-hover);
}

.column-menu-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Hidden column styles */
th.column-hidden,
td.column-hidden {
    display: none !important;
}

/* Column visibility indicator */
.columns-hidden-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: #ff6b6b;
    margin-left: 8px;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-top: 8px;
    box-shadow: var(--shadow-xl);
    display: none;
    backdrop-filter: none;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background: var(--glass-hover);
}

.notification-item.unread {
    background: var(--glass-hover);
}

/* Info box */
.info-box {
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    font-size: 13px;
    color: #4facfe;
}

/* Real-time Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(15, 169, 104, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #0fa968;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #0fa968;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 169, 104, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(15, 169, 104, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 169, 104, 0);
    }
}

/* Login Screen */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-900);
    z-index: 9999;
}

.login-box {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-button {
    margin-top: 12px;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow), var(--shadow-md);
}

.login-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login-error {
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
}

/* Project Card */
.project-card-final {
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
}

.project-card-final:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--border-hover);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.project-card-header h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.project-card-header span {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    background: var(--glass-hover);
    border-radius: 8px;
}

.project-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.project-card-gauges {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 16px;
}

.gauge-item {
    text-align: center;
}

.gauge-ring-sm {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 600;
    background: radial-gradient(farthest-side, var(--dark-700) 80%, transparent 0),
                conic-gradient(var(--gauge-color, #3b82f6) calc(var(--gauge-value) * 1%), var(--dark-600) 0);
}

.gauge-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card-details {
    padding-left: 24px;
    border-left: 1px solid var(--border);
}

.project-card-details h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.detail-row span {
    color: var(--text-secondary);
}

.detail-row strong {
    font-weight: 600;
}

/* Task Tab Content */
.task-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Task Status Colors */
.task-status.working {
    color: #f7b42c;
}

.task-status.submitted {
    color: #0fa968;
}

.task-status.abandoned {
    color: #ff6b6b;
}

.task-status.skipped {
    color: #999;
}

/* Sub-shift Container */
.sub-shift-container {
    position: relative;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--dark-800);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sub-shift-container:hover {
    background: var(--dark-700);
    border-color: rgba(79, 172, 254, 0.3);
}

.sub-shift-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sub-shift-name-input {
    flex: 1;
    padding: 8px 12px;
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sub-shift-name-input:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
    outline: none;
}

.btn-remove-subshift {
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
}

.btn-remove-subshift:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    transform: scale(1.1);
}

.btn-add-subshift {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border: 2px dashed rgba(79, 172, 254, 0.3);
    border-radius: 12px;
    color: #4facfe;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add-subshift:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
    border-color: #4facfe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2);
}

/* Animation for adding/removing sub-shifts */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.sub-shift-container.adding {
    animation: slideIn 0.3s ease;
}

.sub-shift-container.removing {
    animation: slideOut 0.3s ease;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
}

/* Print Styles */
@media print {
    .sidebar,
    .header,
    .filters,
    .btn,
    .quick-actions {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
    }
    
    .card {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
}

/* =====================================================
   ONLINE USERS — Header-integrated (replaces fixed positioning)
   Replace the old .online-users-container block and related rules
   ===================================================== */

.online-users-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    position: relative;
    /* No more fixed positioning — lives in header flow */
}

.online-users-container:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
}

.online-users-label {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.online-users-list {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: white;
    border: 2px solid var(--dark-700);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-left: -6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.user-avatar:first-child {
    margin-left: 0;
}

.user-avatar:hover {
    transform: translateY(-4px) scale(1.12);
    z-index: 100;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid var(--dark-700);
    background: #10b981;
}

.user-status-dot.active {
    background: #10b981;
    animation: statusPulse 2s infinite;
}

.user-status-dot.idle {
    background: #f59e0b;
    animation: none;
}

.user-status-dot.offline {
    background: #ef4444;
    animation: none;
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes userJoin {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* Tooltip with page info */
.user-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-800, #1a1a2e);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 8px 12px;
    border-radius: 10px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1001;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    min-width: 100px;
    text-align: left;
    transform: translateX(-50%) translateY(-4px);
}

.user-avatar:hover .user-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.user-tooltip-name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 3px;
}

.user-tooltip-page {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 5px;
}

.tooltip-page-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.tooltip-page-dot.idle {
    background: #f59e0b;
}

.tooltip-page-dot.offline {
    background: #ef4444;
}

.user-count-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-left: -6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-count-badge:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Viewer count (eye icon) */
.viewer-count {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.viewer-count-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    color: rgba(255,255,255,0.6);
}

.viewer-count-number {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

/* Activity indicators */
.user-activity-indicator {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    pointer-events: none;
}

.user-activity-indicator.typing {
    border: 2px solid #4facfe;
    animation: typing 1s ease infinite;
}

.user-activity-indicator.editing {
    border: 2px solid #f7b42c;
    animation: editing 2s linear infinite;
}

@keyframes typing {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes editing {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Minimized state */
.online-users-container.minimized .online-users-list,
.online-users-container.minimized .viewer-count {
    display: none;
}

/* Online Users Modal */
.online-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.15s;
}

.online-user-row:hover {
    background: rgba(255,255,255,0.04);
}

.online-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
    position: relative;
}

.online-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.online-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.online-user-page {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .online-users-label {
        display: none;
    }

    .viewer-count {
        display: none;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .online-users-container {
        padding: 4px 8px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .online-users-container {
        padding: 3px 6px;
    }

    .user-avatar {
        width: 26px;
        height: 26px;
        font-size: 9px;
        margin-left: -4px;
    }

    .user-status-dot {
        width: 7px;
        height: 7px;
    }
}


/* Add this CSS to your admin/style.css file */

.custom-multiselect-container {
    position: relative;
}

.multiselect-display {
    padding: 12px 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.multiselect-display:hover {
    border-color: var(--border-hover);
}

.multiselect-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 4px;
    z-index: 1001;
    max-height: 250px;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.custom-multiselect-container.open .multiselect-dropdown {
    display: flex;
}

.multiselect-search {
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid var(--border);
    background: var(--dark-600);
    color: var(--text-primary);
    outline: none;
}

.multiselect-options {
    overflow-y: auto;
    flex: 1;
}

.multiselect-option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.multiselect-option:hover {
    background: var(--glass-hover);
}

.multiselect-option input[type="checkbox"] {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    transition: all 0.3s ease;
}

.chat-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--dark-800);
}

.chat-tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.chat-tab-btn.active {
    color: #fff;
    border-bottom: 2px solid var(--primary);
    background: var(--glass-hover);
}

.contact-list {
    flex: 1;
    overflow-y: auto;
    display: none; /* Hidden by default */
}

.contact-list.active {
    display: block;
}

.contact-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.contact-item:hover {
    background: var(--glass-hover);
}

.contact-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.contact-info h4 {
    font-size: 14px;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.contact-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.chat-container.minimized {
    height: 60px;
    width: 200px;
}

.chat-header {
    padding: 16px 20px;
    background: var(--dark-800);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.chat-close-btn {
    background: var(--glass-hover);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    flex-direction: column;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    background: var(--dark-600);
}

.message-sender {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message-time {
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 6px;
}

/* Current user's messages */
.chat-message.current-user {
    align-items: flex-end;
}

.chat-message.current-user .message-bubble {
    background: var(--primary);
    color: white;
}

.chat-message.current-user .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.chat-form {
    display: flex;
    padding: 12px;
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    padding: 10px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    margin-right: 8px;
    outline: none;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* In style.css, add this at the end */

.private-chat-window {
    bottom: 20px;
    right: 390px; /* Positioned next to the global chat */
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.private-chat-window .chat-header {
    background: var(--dark-800);
}

.private-chat-window .chat-close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
}

/* Add these new styles to your style.css file */

.team-calendar-container {
    background: var(--dark-800);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.team-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-header-cell {
    text-align: center;
    padding-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.calendar-day-cell {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-height: 90px;
    padding: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.calendar-day-cell:hover {
    transform: translateY(-4px);
    background: var(--glass-hover);
    border-color: #4facfe;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.calendar-day-cell.other-month {
    background: transparent;
    border-color: transparent;
    cursor: default;
    pointer-events: none;
}
.calendar-day-cell.other-month:hover {
    transform: none;
    box-shadow: none;
}

.day-number {
    font-weight: 600;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.day-stats-pills {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex-grow: 1;
    align-content: flex-start;
}

.day-stat-pill.present { background-color: rgba(16, 185, 129, 0.5); }
.day-stat-pill.absent { background-color: rgba(239, 68, 68, 0.5); }
.day-stat-pill.sick { background-color: rgba(245, 158, 11, 0.5); }
.day-stat-pill.vacation { background-color: rgba(59, 130, 246, 0.5); }
.day-stat-pill.overtime { background-color: rgba(139, 92, 246, 0.5); }

.calendar-list-view {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.calendar-list-header {
    display: grid;
    grid-template-columns: 250px 1fr;
    background: var(--dark-900);
}

.header-employee-cell, .header-day-cell {
    padding: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: center;
}

.header-employee-cell {
    text-align: left;
    position: sticky;
    left: 0;
    background: var(--dark-900);
    z-index: 2;
}

.header-days-grid {
    display: grid;
    grid-template-columns: repeat(31, 40px); /* Adjust day count later */
}

.calendar-list-body {
    max-height: 60vh;
    overflow-y: auto;
}

.calendar-employee-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}
.calendar-employee-row:hover {
    background: var(--glass-hover);
}
.calendar-employee-row:last-child {
    border-bottom: none;
}

.employee-info-cell {
    padding: 12px;
    font-weight: 500;
    font-size: 14px;
    position: sticky;
    left: 0;
    background: inherit; /* Inherits hover effect */
    z-index: 1;
    border-right: 1px solid var(--border);
}

.days-grid-container {
    overflow-x: auto;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(31, 40px); /* Adjust day count later */
}

.calendar-day-cell-list {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
    position: relative;
    font-size: 18px;
}
.calendar-day-cell-list.weekend {
    background: var(--color-weekend-bg);
}

.day-tooltip {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-800);
    border: 1px solid var(--border-hover);
    padding: 12px;
    border-radius: 8px;
    z-index: 10;
    width: max-content;
    box-shadow: var(--shadow-md);
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-dot.present { background: var(--color-present); }
.legend-dot.absent { background: var(--color-absent); }
.legend-dot.sick { background: var(--color-sick); }
.legend-dot.vacation { background: var(--color-vacation); }
.legend-dot.overtime { background: var(--color-overtime); }

.day-stat-pill.scheduled { 
    background-color: var(--dark-600); 
    border: 1px solid var(--border); 
    color: var(--text-secondary); 
}


.calendar-day-cell-list:hover .day-tooltip {
    display: block;
}

.day-stat-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}

.day-bars {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: flex-end;
}

.day-bar {
    height: 10px;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Colors matching the legend in your image */
.day-bar.present { background-color: #4CAF50; }
.day-bar.sick { background-color: #ff9800; }
.day-bar.vacation { background-color: #2196F3; }
.day-bar.overtime { background-color: #9C27B0; }
.day-bar.absent { background-color: #7f8c8d; }

.daily-details-list {
    list-style: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.daily-details-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 6px;
}
.daily-details-item:nth-child(odd) {
    background-color: var(--glass);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.summary-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.summary-count {
    font-weight: 500;
    color: var(--text-primary);
}

/* Colors matching the legend in your image */
.summary-dot.present { background-color: #4CAF50; }
.summary-dot.sick { background-color: #ff9800; }
.summary-dot.vacation { background-color: #2196F3; }
.summary-dot.overtime { background-color: #9C27B0; }
.summary-dot.compensation { background-color: #00BCD4; }
.summary-dot.deduction { background-color: #f44336; }
.summary-dot.absent { background-color: #7f8c8d; }

.calendar-container {
    background: var(--dark-800);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--border);
}

.calendar-header .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-switcher {
    display: flex;
    background: var(--dark-900);
    border-radius: 12px;
    padding: 4px;
}

.view-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: var(--dark-700);
    color: var(--text-primary);
}

.calendar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.header-title {
    font-size: 24px;
    font-weight: 700;
}

.header-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.calendar-grid-container {
    padding-top: 20px;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-current-month {
    font-size: 20px;
    font-weight: 600;
}

.calendar-nav-button {
    background: var(--glass-hover);
    border: 1px solid var(--border);
    padding: 8px 16px;
}

.calendar-nav-button:hover {
    background: var(--primary);
    border-color: transparent;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-weekday {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    padding-bottom: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: var(--border-hover);
}

.calendar-day.other-month {
    opacity: 0.3;
    pointer-events: none;
    background: transparent;
    border-color: transparent;
}

.calendar-day.weekend {
    background: var(--color-weekend-bg);
}

.calendar-day.today .day-number {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
}

.day-stats {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.day-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0,0,0,0.2);
}

.stat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.stat-dot.present { background: var(--color-present); }
.stat-dot.absent { background: var(--color-absent); }
.stat-dot.sick { background: var(--color-sick); }
.stat-dot.vacation { background: var(--color-vacation); }
.stat-dot.overtime { background: var(--color-overtime); }

.heat-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-present);
    opacity: 0.7;
    border-radius: 0 0 12px 12px;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.legend-dot.present { background: var(--color-present); }
.legend-dot.absent { background: var(--color-absent); }
.legend-dot.sick { background: var(--color-sick); }
.legend-dot.vacation { background: var(--color-vacation); }
.legend-dot.overtime { background: var(--color-overtime); }

/* Modal for Daily Details */
.attendance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.attendance-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.attendance-count {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: auto;
}

.employee-item {
    padding: 8px 10px;
    border-radius: 6px;
}
.employee-item:nth-child(odd) {
    background: rgba(0,0,0,0.2);
}

.daily-details-modal-content {
    background: linear-gradient(145deg, var(--dark-800), var(--dark-900));
    border-radius: 24px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
}

.daily-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    padding: 0 24px 24px 24px;
    border-bottom: 1px solid var(--border);
}

.daily-stat-card {
    background: var(--glass);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.daily-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.daily-stat-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.daily-breakdown {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
    padding: 24px;
}

.daily-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-list-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.details-list-tabs {
    display: flex;
    background: var(--dark-800);
    border-radius: 10px;
    padding: 4px;
}

.details-list-tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.details-list-tab.active {
    background: var(--dark-600);
    color: var(--text-primary);
}

.details-list-search {
    width: 100%;
    padding: 10px 14px;
    background: var(--dark-800);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.details-list-content {
    display: none;
    max-height: 350px;
    overflow-y: auto;
}

.details-list-content.active {
    display: block;
}

.details-employee-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--glass);
    transition: background 0.2s ease;
}

.details-employee-item:hover {
    background: var(--glass-hover);
}

.details-employee-info {
    font-weight: 500;
}

.grading-container h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.grading-container p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.grading-container hr {
    border-color: var(--border);
    margin: 20px 0;
}
.grading-section {
    margin-bottom: 25px;
}
.grading-section h4 {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.written-response-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.written-response-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.written-response-item .question-text {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.written-response-item .user-answer {
    background: var(--dark-800);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid #667eea;
}

.analytics-tabs {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.tab-btn {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.tab-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-color: transparent;
}

/* Metric cards styling */
.metric-card {
    background: var(--glass);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.assignee-manager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.assignee-list-container {
    display: flex;
    flex-direction: column;
    height: 400px;
    background: var(--dark-600);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.assignee-list-container h4 {
    margin: 0 0 12px 0;
}

.assignee-list-container .form-input {
    margin-bottom: 12px;
}

.assignee-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.assignee-list li {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.assignee-list li:hover {
    background-color: var(--glass-hover);
}

.assignee-list li.selected {
    background-color: rgba(79, 172, 254, 0.2);
    border-color: #4facfe;
    font-weight: 500;
}

.assignee-list li small {
    color: var(--text-secondary);
    margin-left: 8px;
}

.assignee-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assignee-controls .btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
    font-weight: bold;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding: 17px;
    border-top: 1px solid var(--border);
}

.summary-modal-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-modal-container {
    background: linear-gradient(135deg, #1a1d29 0%, #2d1b3d 100%) !important;
    border-radius: 16px !important;
    max-width: 1000px;
    width: 100%;
    max-height: 92vh;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Fix 2: Modal Header & Close Button */
.summary-modal-header {
    padding: 28px 32px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    background: inherit !important;
}
.summary-modal-header h2 {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px !important;
}
.summary-modal-close {
    position: absolute; top: 24px; right: 24px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    font-size: 26px !important; color: #ffffff !important;
    width: 42px; height: 42px; border-radius: 50% !important;
    transition: all 0.3s ease !important;
}
.summary-modal-close:hover {
    background: rgba(244, 67, 54, 0.9) !important;
    border-color: #f44336 !important;
    transform: rotate(90deg) scale(1.1) !important;
}
.summary-modal-body {
    padding: 32px !important;
}

/* Fix 3: Main Promotion Card Redesign */
.promotion-card-fixed {
    padding: 32px !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.4) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    text-align: left !important;
    color: white !important;
}
.promotion-card-excellent { background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%) !important; }
.promotion-card-success { background: linear-gradient(135deg, #43A047 0%, #66BB6A 100%) !important; }
.promotion-card-info { background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%) !important; }
.promotion-card-secondary { background: linear-gradient(135deg, #616161 0%, #757575 100%) !important; }
.promotion-card-danger { background: linear-gradient(135deg, #C62828 0%, #E53935 100%) !important; }

.promotion-title-fixed {
    font-size: 32px !important;
    font-weight: 800 !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: -0.5px !important;
}
.promotion-description-fixed {
    font-size: 16px !important;
    line-height: 1.6 !important;
    opacity: 0.95 !important;
    font-weight: 500 !important;
}
.promotion-card-fixed .score-display {
    font-size: 64px !important;
    font-weight: 900 !important;
    margin: 20px 0 !important;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4) !important;
    letter-spacing: -2px !important;
}
.promotion-card-fixed .time-taken {
    font-size: 15px !important;
    opacity: 0.9 !important;
    font-weight: 600 !important;
}

/* Fix 4: Section Styling */
.summary-section-fixed {
    margin-bottom: 28px !important;
    padding: 24px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.summary-section-fixed h3 {
    margin: 0 0 20px 0 !important;
    font-size: 20px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Fix 5: Score Breakdown Table Redesign */
.score-breakdown-table-fixed {
    background: transparent !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}
.score-breakdown-table-fixed th {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #b8b8b8 !important; letter-spacing: 0.8px !important;
}
.score-breakdown-table-fixed td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}
.score-breakdown-table-fixed tbody tr:hover td { background: rgba(255, 255, 255, 0.06) !important; }
.score-breakdown-table-fixed tbody tr:last-child td { border-bottom: none !important; }
.score-breakdown-table-fixed tbody tr:last-child { background: rgba(102, 126, 234, 0.15) !important; }
.score-breakdown-table-fixed tbody tr:last-child td { font-weight: 700 !important; font-size: 16px !important; background: transparent !important; }

/* Fix 6: Status Badge Redesign */
.score-status-fixed {
    padding: 6px 14px !important; border-radius: 6px !important;
    font-size: 12px !important; font-weight: 800 !important;
    text-transform: uppercase !important; letter-spacing: 0.5px !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4) !important;
}
.status-excellent { background: linear-gradient(135deg, #2E7D32, #4CAF50) !important; }
.status-very-good { background: linear-gradient(135deg, #43A047, #66BB6A) !important; }
.status-good { background: linear-gradient(135deg, #1976D2, #2196F3) !important; }
.status-adequate { background: linear-gradient(135deg, #F57C00, #FF9800) !important; }
.status-needs-improvement { background: linear-gradient(135deg, #D32F2F, #f44336) !important; }
.status-poor { background: linear-gradient(135deg, #B71C1C, #c62828) !important; }

/* Fix 7: Strengths & Weaknesses Redesign */
.strength-item-fixed, .weakness-item-fixed {
    padding: 18px !important; margin: 12px 0 !important; border-radius: 10px !important;
    border: 1px solid transparent !important; transition: all 0.2s ease !important;
}
.strength-item-fixed {
    background: rgba(76, 175, 80, 0.12) !important; border-left: 4px solid #4CAF50 !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
}
.weakness-item-fixed {
    background: rgba(255, 152, 0, 0.12) !important; border-left: 4px solid #FF9800 !important;
    border-color: rgba(255, 152, 0, 0.3) !important;
}
.strength-item-fixed:hover, .weakness-item-fixed:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}
.strength-item-fixed strong, .weakness-item-fixed strong {
    font-size: 16px !important; color: #ffffff !important; font-weight: 700 !important;
}
.strength-item-fixed div, .weakness-item-fixed div {
    color: #e0e0e0 !important; font-size: 14px !important; line-height: 1.6 !important; font-weight: 500 !important;
}

/* Fix 8: Modal Scrollbar */
.summary-modal-container::-webkit-scrollbar { width: 12px !important; }
.summary-modal-container::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05) !important; }
.summary-modal-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-radius: 10px !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Enhanced Multi-Select Styling */
select[multiple] {
    background: var(--dark-800);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

select[multiple]:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

select[multiple] option {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

select[multiple] option:hover {
    background-color: var(--glass-hover);
}

select[multiple] option:checked {
    background: linear-gradient(90deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 254, 0.2));
    color: #ffffff;
    font-weight: 500;
    border-left: 3px solid #4facfe;
}

/* style.css additions */

#annualAttendancePage .filters {
    flex-wrap: wrap; /* Allow filters to wrap */
}

#attendanceGridContainer {
    --grid-border-color: var(--border);
    --cell-hover-bg: var(--glass-hover);
    --cell-selected-bg: rgba(79, 172, 254, 0.2);
    --cell-edited-border: #4facfe; /* Blue for edited */
    --weekend-bg: rgba(255, 255, 255, 0.02);
}

.attendance-grid-table {
    width: max-content; /* Allow table to expand horizontally */
    border-collapse: collapse;
    font-size: 13px;
    user-select: none; /* Prevent text selection during drag */
}

.attendance-grid-table th,
.attendance-grid-table td {
    border: 1px solid var(--grid-border-color);
    padding: 5px; /* Smaller padding */
    min-width: 45px; /* Width for day columns */
    height: 40px; /* Cell height */
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    position: relative;
}

.attendance-grid-table th {
    background: var(--dark-700);
    position: sticky;
    top: 0;
    z-index: 2;
    font-weight: 600;
    font-size: 11px;
    padding: 5px 3px;
    color: var(--text-secondary);
}

.employee-name-cell {
    width: 250px;
    min-width: 250px; /* Increased min-width */
    text-align: left !important;
    position: sticky;
    left: 0;
    background: var(--dark-700);
    z-index: 1;
    padding-left: 15px !important; /* More padding */
    line-height: 1.3; /* Adjust line height if needed */
    vertical-align: middle !important; /* Center content vertically */
    border-right: 1px solid var(--grid-border-color);
}

.day-cell {
    transition: background-color 0.15s ease;
}

.day-cell:hover {
    background-color: var(--cell-hover-bg);
}

.day-cell.selected {
    background-color: var(--cell-selected-bg);
    box-shadow: inset 0 0 0 2px var(--cell-edited-border);
}

.day-cell.edited::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background-color: var(--cell-edited-border);
    border-radius: 50%;
}

.weekend-day {
    background-color: var(--weekend-bg);
}

/* Attendance Code Styles within Cells */
.attendance-code {
    font-weight: bold;
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.status-S { background-color: rgba(245, 158, 11, 0.2); color: #f7b42c; } /* Sick - Yellow */
.status-N { background-color: rgba(59, 130, 246, 0.2); color: #3b82f6; } /* Vacation - Blue */
.status-O { background-color: rgba(139, 92, 246, 0.2); color: #8b5cf6; } /* Overtime - Purple */
.status-C { background-color: rgba(16, 185, 129, 0.2); color: #10b981; } /* Compensation - Green */
.status-D, .status-0\.5D, .status-1D, .status-2D, .status-3D { background-color: rgba(239, 68, 68, 0.2); color: #ef4444; } /* Deduction - Red */
.status-present { color: var(--text-secondary); opacity: 0.6; } /* Subtle for Present */

/* Legend Dot Styles */
.legend-dot { width: 12px; height: 12px; border-radius: 3px; }
.legend-dot.status-S { background-color: #f7b42c; }
.legend-dot.status-N { background-color: #3b82f6; }
.legend-dot.status-O { background-color: #8b5cf6; }
.legend-dot.status-C { background-color: #10b981; }
.legend-dot.status-D { background-color: #ef4444; }
.legend-dot.status-present { background-color: var(--text-secondary); opacity: 0.6; }
.legend-dot.weekend-day { background-color: var(--weekend-bg); border: 1px solid var(--border); }
.legend-dot.edited-cell { background: transparent; } /* Just show the border */


/* Attendance Code Modal */
#attendanceCodeOptions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.code-option-btn {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
    font-weight: 500;
}

.code-option-btn:hover {
    background-color: var(--glass-hover);
}

.code-option-btn strong { display: block; font-size: 16px; margin-bottom: 4px; }
.code-option-btn span { font-size: 11px; color: var(--text-secondary); }

.overtime-option-container .form-group label {
    margin-bottom: 4px; /* Reduce margin */
}

.employee-name-cell,
.employee-summary-cell {
    position: sticky;
    z-index: 1; /* Below header, above scrolling cells */
    background: var(--dark-700); /* Default sticky background */
}

.attendance-grid-table tbody tr:hover .employee-name-cell,
.attendance-grid-table tbody tr:hover .employee-summary-cell {
    background: var(--cell-hover-bg);
}

.attendance-grid-table thead th.employee-name-cell {
    z-index: 3;
    left: 0;
}

.employee-summary-header {
    background: var(--dark-800) !important; /* Darker bg for summary */
    border-left: 2px solid var(--border);
    min-width: 90px;
    font-size: 11px !important; /* Smaller font */
    color: var(--text-secondary) !important;
    text-align: center !important;
    position: sticky !important; /* Make headers sticky */
    top: 0;
    z-index: 2; /* Above sticky employee name */
}

.attendance-grid-table td.employee-summary-cell {
    text-align: center !important;
    font-weight: 600;
    background: var(--dark-800); /* Darker bg for summary */
    border-left: 2px solid var(--border);
    min-width: 90px; 
    font-size: 13px;
    position: relative; /* For hover */
}

td.employee-summary-cell:nth-last-child(6) { color: #8b5cf6; } /* Total OT */
td.employee-summary-cell:nth-last-child(5) { color: #ef4444; } /* Total Ded */
td.employee-summary-cell:nth-last-child(4) { color: #f7b42c; } /* Total Sick */
td.employee-summary-cell:nth-last-child(3) { color: #3b82f6; } /* Total Annual */
td.employee-summary-cell:nth-last-child(2) { color: #10b981; } /* Total Comp */

td.employee-summary-cell:last-child { 
    font-weight: 700;
    font-size: 14px;
}

#attendanceCodeModalBody {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between OT section and grid */
}

#attendanceCodeOptionsGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.overtime-option-container {
    background: var(--glass-hover); 
    padding: 15px; 
    border-radius: 8px; 
    border: 1px solid var(--border);
}

.overtime-option-container h5 {
    margin-bottom: 10px;
}
.overtime-option-container .form-group {
    margin-bottom: 0; /* Remove default margins */
}
.overtime-option-container .form-group label {
    font-size: 11px;
    margin-bottom: 4px; /* Add a little space */
}
.overtime-option-container .filter-select {
    padding: 10px 12px; /* Ensure padding is consistent */
}

/* --- Documentation Page Styles --- */
.doc-page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px; /* Reduced padding for more space */
}

.doc-page-container h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.doc-toc {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.doc-toc h2 {
    grid-column: 1 / -1;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.doc-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 14px;
}

.doc-toc a:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.doc-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    scroll-margin-top: 80px; /* Offset for sticky header */
}

.doc-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.doc-subsection {
    margin-top: 20px;
}

.doc-subsection h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.doc-subsection p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.doc-subsection ul, .doc-subsection ol {
    list-style-position: inside;
    padding-left: 10px;
    margin-bottom: 16px;
}

.doc-subsection li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.doc-subsection li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.doc-tip {
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-left: 4px solid #4facfe;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.doc-tip p {
    margin-bottom: 8px;
    color: #4facfe;
}
.doc-tip p:last-child {
    margin-bottom: 0;
}

.doc-section-hidden {
    display: none !important;
}

.doc-layout-container {
    display: grid;
    grid-template-columns: 1fr 280px; /* Content | Sidebar */
    gap: 32px;
    position: relative;
}

.doc-content-area {
    /* This will be the main column for text */
    max-width: 900px;
}

.doc-nav-sidebar {
    position: sticky;
    top: 20px; /* Stick to the top of the .content area */
    height: calc(100vh - 120px); /* Adjust height to fit viewport */
    overflow-y: auto;
    padding-left: 24px;
    border-left: 1px solid var(--border);
}

.doc-nav-sidebar h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

#doc-toc-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doc-nav-sidebar a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.doc-nav-sidebar a:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.doc-nav-sidebar a.active {
    background: var(--glass-hover);
    color: var(--text-primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

.details-row td {
    padding: 0 !important;
    background: var(--dark-800);
    border-left: 4px solid var(--primary) !important;
    border-right: 4px solid var(--primary) !important;
    border-bottom: 4px solid var(--primary) !important;
}

.details-content-container {
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

.details-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.details-section {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.details-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.details-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.details-section ul li {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.details-section ul li strong {
    color: var(--text-primary);
    font-weight: 500;
}

.details-activity-list li {
    align-items: center;
    gap: 8px;
}

.details-activity-list li .badge {
    margin-left: auto;
    font-size: 10px;
    padding: 3px 8px;
}

/* For Grid View */
.employee-card.expanded {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.employee-details-content-wrapper {
    /* This div is the container for the details inside the card */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.employee-card.expanded .employee-details-content-wrapper {
    max-height: 500px; /* Animate open */
}

/* Make grid details look consistent */
.employee-details-content-wrapper .details-content-container {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
}

/* Project Tree Styles */
.project-tree-level {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-node {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.project-node:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.project-node.active {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.tree-arrow {
    color: var(--text-secondary);
    margin-right: 8px;
    font-size: 14px;
    opacity: 0.7;
    font-family: monospace; /* Ensures the arrow aligns nicely */
}

.tree-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-badge {
    font-size: 9px;
    padding: 2px 6px;
    opacity: 0.7;
    background: rgba(255,255,255,0.1);
}

.private-chat-window.minimized .chat-messages,
.private-chat-window.minimized .chat-form {
    display: none;
}

.private-chat-window.minimized {
    height: auto !important;
    min-height: 0;
}

/* Auto-refresh indicator styles (optional) */
.auto-refresh-paused-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(247, 180, 44, 0.95);
    color: #1a1a2e;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.auto-refresh-paused-indicator.show {
    display: flex;
}

.auto-refresh-paused-indicator::before {
    content: '⏸️';
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Highlight filter elements when focused to indicate refresh pause */
.filter-input:focus,
.filter-select:focus {
    box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.5);
}

/* Optional: Add visual indicator when data is being refreshed */
.refreshing-data::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4facfe, transparent);
    animation: refreshProgress 1.5s ease-in-out infinite;
}

@keyframes refreshProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==================== DATA EXCLUSION TAGS ==================== */
.perm-exclusion-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    font-size: 12px;
    color: #fca5a5;
    transition: all 0.15s ease;
}

.perm-exclusion-tag:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
}