/* Custom CSS for HR System - Orange Theme */

/* Modern Design System - Vivid Orange & Muted Slate/Blue */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Brand - Vivid Orange */
    --primary-color: #ff5722;
    --primary-50: #fff3f0;
    --primary-100: #ffe0d6;
    --primary-200: #ffb8a3;
    --primary-300: #ff8a6b;
    --primary-400: #ff6b35;
    --primary-500: #ff5722;
    --primary-600: #e8491a;
    --primary-700: #d1410f;
    --primary-800: #b8370d;
    --primary-900: #9e2f0b;

    /* Muted Slate/Blue Accent Set */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;

    /* Semantic Colors */
    --success-color: #10b981;
    --success-light: #34d399;
    --success-dark: #059669;
    --warning-color: #f59e0b;
    --warning-light: #fbbf24;
    --warning-dark: #d97706;
    --danger-color: #ef4444;
    --danger-light: #f87171;
    --danger-dark: #dc2626;
    --info-color: var(--blue-500);
    --info-light: var(--blue-400);
    --info-dark: var(--blue-600);

    /* Neutral System */
    --neutral-50: var(--slate-50);
    --neutral-100: var(--slate-100);
    --neutral-200: var(--slate-200);
    --neutral-300: var(--slate-300);
    --neutral-400: var(--slate-400);
    --neutral-500: var(--slate-500);
    --neutral-600: var(--slate-600);
    --neutral-700: var(--slate-700);
    --neutral-800: var(--slate-800);
    --neutral-900: var(--slate-900);

    /* Text Colors */
    --text-primary: var(--neutral-900);
    --text-secondary: var(--neutral-700);
    --text-muted: var(--neutral-500);
    --text-light: var(--neutral-400);
    --text-inverse: var(--neutral-50);

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: var(--neutral-50);
    --bg-tertiary: var(--neutral-100);
    --bg-quaternary: var(--neutral-200);
    --bg-accent: var(--blue-50);

    /* Border Colors */
    --border-color: var(--neutral-200);
    --border-light: var(--neutral-100);
    --border-focus: var(--primary-500);

    /* Enhanced Shadows with Orange Accent */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-primary: 0 10px 25px -3px rgb(255 87 34 / 0.3);
    --shadow-slate: 0 8px 16px -4px rgb(30 41 59 / 0.15);

    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-2xl: 2rem;
    --border-radius-full: 9999px;

    /* Transitions */
    --transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-colors: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;

    /* Typography - Responsive with clamp() */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: ui-monospace, SFMono-Regular, 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

    --font-size-xs: clamp(0.625rem, 0.6rem + 0.125vw, 0.75rem);
    --font-size-sm: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-base: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
    --font-size-lg: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
    --font-size-xl: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --font-size-2xl: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem);
    --font-size-3xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
    --font-size-4xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.25rem);
    --font-size-5xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
    --font-size-6xl: clamp(3rem, 2.25rem + 3.75vw, 3.75rem);

    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;

    /* Responsive Spacing Scale */
    --spacing-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
    --spacing-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --spacing-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --spacing-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --spacing-xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --spacing-2xl: clamp(3rem, 2.25rem + 3.75vw, 4.5rem);
    --spacing-3xl: clamp(4rem, 3rem + 5vw, 6rem);

    /* Legacy Color Support - Mapped to New Design System */
    --primary-orange: var(--primary-500);
    --secondary-orange: var(--primary-400);
    --light-orange: var(--primary-200);
    --dark-orange: var(--primary-700);
    --darkest-orange: var(--primary-900);
    --primary-light: var(--primary-400);
    --primary-lighter: var(--primary-200);
    --primary-dark: var(--primary-700);
    --primary-darkest: var(--primary-900);
    --secondary-color: var(--neutral-500);
    --secondary-light: var(--neutral-400);
    --secondary-dark: var(--neutral-600);
    --dark-color: var(--neutral-800);
    --dark-light: var(--neutral-700);
    --light-color: var(--neutral-50);
    --light-dark: var(--neutral-100);
    --success-green: var(--success-color);
    --light-green: var(--success-light);
    --dark-green: var(--success-dark);
    --info-blue: var(--info-color);
    --light-blue: var(--info-light);
    --dark-blue: var(--info-dark);
    --warning-yellow: var(--warning-color);
    --light-yellow: var(--warning-light);
    --dark-yellow: var(--warning-dark);
    --danger-red: var(--danger-color);
    --light-red: var(--danger-light);
    --dark-red: var(--danger-dark);
    --neutral-gray: var(--text-secondary);
    --light-gray: var(--text-muted);
    --dark-gray: var(--text-secondary);
    --lighter-gray: var(--text-light);
    --darkest-gray: var(--text-primary);
    --accent-green: var(--success-color);
    --background-cream: var(--bg-secondary);
    --shadow-orange: var(--shadow-primary);

    /* Background Pattern Variables */
    --pattern-opacity: 0.03;
    --pattern-size: 20px;
    --dot-size: 2px;
    --grid-size: 40px;
}

/* General Styles with Inter Font */
body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    font-weight: var(--font-weight-normal);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sidebar layout: keep header fixed, make nav scrollable locally */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.sidebar-header {
    flex: 0 0 auto;
}
.sidebar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px; /* space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-orange) rgba(255, 255, 255, 0.15);
}
/* Optional: nicer thin scrollbar */
.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 999px;
    box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.4);
}
.sidebar-nav:hover::-webkit-scrollbar-thumb {
    background: var(--dark-orange);
}

/* === CSP-SAFE UTILITIES (no inline styles needed) === */
/* Font size utility matching previous inline 1.2rem */
.fs-12 { font-size: 1.2rem !important; }

/* Hover transforms moved from JS to CSS */
.user-avatar:hover, .enhanced-user-avatar:hover { 
    transform: scale(1.05);
    transition: transform .15s ease;
}
.nav-link:hover, .enhanced-nav-link:hover {
    transform: translateX(4px);
    transition: transform .2s ease;
}
.page-link:hover, .enhanced-page-link:hover {
    transform: translateY(-1px);
    transition: transform .2s ease;
}

/* Progress bar animation handled via CSS (no JS inline styles) */
.progress-bar { transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }

/* Width percentage utilities to replace style="width: X%" */
.w-pct-0 { width: 0%; }
.w-pct-1 { width: 1%; }
.w-pct-2 { width: 2%; }
.w-pct-3 { width: 3%; }
.w-pct-4 { width: 4%; }
.w-pct-5 { width: 5%; }
.w-pct-6 { width: 6%; }
.w-pct-7 { width: 7%; }
.w-pct-8 { width: 8%; }
.w-pct-9 { width: 9%; }
.w-pct-10 { width: 10%; }
.w-pct-11 { width: 11%; }
.w-pct-12 { width: 12%; }
.w-pct-13 { width: 13%; }
.w-pct-14 { width: 14%; }
.w-pct-15 { width: 15%; }
.w-pct-16 { width: 16%; }
.w-pct-17 { width: 17%; }
.w-pct-18 { width: 18%; }
.w-pct-19 { width: 19%; }
.w-pct-20 { width: 20%; }
.w-pct-21 { width: 21%; }
.w-pct-22 { width: 22%; }
.w-pct-23 { width: 23%; }
.w-pct-24 { width: 24%; }
.w-pct-25 { width: 25%; }
.w-pct-26 { width: 26%; }
.w-pct-27 { width: 27%; }
.w-pct-28 { width: 28%; }
.w-pct-29 { width: 29%; }
.w-pct-30 { width: 30%; }
.w-pct-31 { width: 31%; }
.w-pct-32 { width: 32%; }
.w-pct-33 { width: 33%; }
.w-pct-34 { width: 34%; }
.w-pct-35 { width: 35%; }
.w-pct-36 { width: 36%; }
.w-pct-37 { width: 37%; }
.w-pct-38 { width: 38%; }
.w-pct-39 { width: 39%; }
.w-pct-40 { width: 40%; }
.w-pct-41 { width: 41%; }
.w-pct-42 { width: 42%; }
.w-pct-43 { width: 43%; }
.w-pct-44 { width: 44%; }
.w-pct-45 { width: 45%; }
.w-pct-46 { width: 46%; }
.w-pct-47 { width: 47%; }
.w-pct-48 { width: 48%; }
.w-pct-49 { width: 49%; }
.w-pct-50 { width: 50%; }
.w-pct-51 { width: 51%; }
.w-pct-52 { width: 52%; }
.w-pct-53 { width: 53%; }
.w-pct-54 { width: 54%; }
.w-pct-55 { width: 55%; }
.w-pct-56 { width: 56%; }
.w-pct-57 { width: 57%; }
.w-pct-58 { width: 58%; }
.w-pct-59 { width: 59%; }
.w-pct-60 { width: 60%; }
.w-pct-61 { width: 61%; }
.w-pct-62 { width: 62%; }
.w-pct-63 { width: 63%; }
.w-pct-64 { width: 64%; }
.w-pct-65 { width: 65%; }
.w-pct-66 { width: 66%; }
.w-pct-67 { width: 67%; }
.w-pct-68 { width: 68%; }
.w-pct-69 { width: 69%; }
.w-pct-70 { width: 70%; }
.w-pct-71 { width: 71%; }
.w-pct-72 { width: 72%; }
.w-pct-73 { width: 73%; }
.w-pct-74 { width: 74%; }
.w-pct-75 { width: 75%; }
.w-pct-76 { width: 76%; }
.w-pct-77 { width: 77%; }
.w-pct-78 { width: 78%; }
.w-pct-79 { width: 79%; }
.w-pct-80 { width: 80%; }
.w-pct-81 { width: 81%; }
.w-pct-82 { width: 82%; }
.w-pct-83 { width: 83%; }
.w-pct-84 { width: 84%; }
.w-pct-85 { width: 85%; }
.w-pct-86 { width: 86%; }
.w-pct-87 { width: 87%; }
.w-pct-88 { width: 88%; }
.w-pct-89 { width: 89%; }
.w-pct-90 { width: 90%; }
.w-pct-91 { width: 91%; }
.w-pct-92 { width: 92%; }
.w-pct-93 { width: 93%; }
.w-pct-94 { width: 94%; }
.w-pct-95 { width: 95%; }
.w-pct-96 { width: 96%; }
.w-pct-97 { width: 97%; }
.w-pct-98 { width: 98%; }
.w-pct-99 { width: 99%; }
.w-pct-100 { width: 100%; }

/* Small progress height utility to replace style="height: 8px;" */
.progress.progress-sm { height: 8px; }

/* Pixel width/height utilities used in components */
.w-70px { width: 70px; }
.h-6px { height: 6px; }

.navbar-brand {
    font-weight: bold;
    color: var(--primary-orange) !important;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(249, 122, 0, 0.1);
    border: 1px solid rgba(249, 122, 0, 0.2);
    background-color: #fff;
}

/* Modern Panel Headers - Glass Morphism Effect */
.card-header {
    /* Fallback for older browsers */
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.08) 0%, 
        rgba(255, 140, 66, 0.04) 100%);
    
    /* Modern glass effect */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
    .card-header {
        background: linear-gradient(135deg, 
            rgba(255, 107, 53, 0.12) 0%, 
            rgba(255, 140, 66, 0.06) 100%);
        border-color: rgba(255, 107, 53, 0.3);
    }
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.08) 0%,
        rgba(255, 140, 66, 0.04) 50%,
        rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.card-header:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    transform: translateY(-1px);
    box-shadow: 
        0 8px 25px -3px rgba(0, 0, 0, 0.1),
        0 4px 10px -2px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-header:hover::before {
    opacity: 0.8;
}

/* Enhanced card header variants for different contexts */
.card-header.card-header--primary {
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.15) 0%, 
        rgba(255, 140, 66, 0.08) 100%);
    border-color: rgba(255, 107, 53, 0.3);
    color: var(--primary-dark);
}

.card-header.card-header--success {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.15) 0%, 
        rgba(52, 211, 153, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success-dark);
}

.card-header.card-header--warning {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.15) 0%, 
        rgba(251, 191, 36, 0.08) 100%);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning-dark);
}

.card-header.card-header--info {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.15) 0%, 
        rgba(34, 211, 238, 0.08) 100%);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--info-dark);
}

.card-header.card-header--danger {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.15) 0%, 
        rgba(248, 113, 113, 0.08) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger-dark);
}

/* Special styling for main section headers (Enhanced Analytics, Quick Actions, etc.) */
.card-header.card-header--section {
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.12) 0%, 
        rgba(255, 140, 66, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 107, 53, 0.25);
    color: var(--primary-dark);
    font-size: 1.1rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.card-header.card-header--section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.card-header.card-header--section:hover::after {
    left: 100%;
}

.card-header.card-header--section:hover {
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.18) 0%, 
        rgba(255, 140, 66, 0.09) 50%,
        rgba(255, 255, 255, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 30px -4px rgba(255, 107, 53, 0.15),
        0 6px 15px -2px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Enhanced Card Hover States */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* Enable hardware acceleration */
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.15),
        0 8px 20px -4px rgba(0, 0, 0, 0.1),
        0 4px 8px -2px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 107, 53, 0.3);
}

/* Enhanced border glow effect */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.6), 
        rgba(255, 140, 66, 0.4),
        rgba(255, 107, 53, 0.2));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 1;
}

/* Dashboard Cards */
.dashboard-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--primary-orange);
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px -12px rgba(255, 107, 53, 0.2),
        0 8px 20px -4px rgba(255, 107, 53, 0.15),
        0 4px 8px -2px rgba(255, 107, 53, 0.1);
    border-left-width: 6px;
}

/* Enhanced border glow for dashboard cards */
.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.8), 
        rgba(255, 140, 66, 0.6),
        rgba(255, 107, 53, 0.4));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dashboard-card:hover::before {
    opacity: 1;
}

/* Special card types with enhanced hover effects */
.card.card--analytics {
    border-left: 4px solid var(--info-color);
}

.card.card--analytics:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px -12px rgba(6, 182, 212, 0.2),
        0 8px 20px -4px rgba(6, 182, 212, 0.15),
        0 4px 8px -2px rgba(6, 182, 212, 0.1);
    border-left-width: 6px;
}

.card.card--success {
    border-left: 4px solid var(--success-color);
}

.card.card--success:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px -12px rgba(16, 185, 129, 0.2),
        0 8px 20px -4px rgba(16, 185, 129, 0.15),
        0 4px 8px -2px rgba(16, 185, 129, 0.1);
    border-left-width: 6px;
}

.card.card--warning {
    border-left: 4px solid var(--warning-color);
}

.card.card--warning:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px -12px rgba(245, 158, 11, 0.2),
        0 8px 20px -4px rgba(245, 158, 11, 0.15),
        0 4px 8px -2px rgba(245, 158, 11, 0.1);
    border-left-width: 6px;
}

/* KPI card enhancements */
.kpi-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 
        0 16px 32px -8px rgba(255, 107, 53, 0.25),
        0 6px 16px -3px rgba(255, 107, 53, 0.2);
}

/* Table card enhancements */
.card .table-responsive {
    transition: all 0.3s ease;
}

.card:hover .table-responsive {
    transform: scale(1.01);
}

/* Form card enhancements */
.card .card-body form {
    transition: all 0.3s ease;
}

.card:hover .card-body form {
    transform: scale(1.005);
}

/* Card content subtle animations */
.card-body {
    transition: all 0.3s ease;
}

.card:hover .card-body {
    transform: translateY(-2px);
}

/* Enhanced focus states for accessibility */
.card:focus-within {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(255, 107, 53, 0.3),
        0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Page Transition Effects */
.page-transition {
    animation: pageFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition--fast {
    animation: pageFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition--slow {
    animation: pageFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(2px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(5px);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Page content fade-in with stagger effect */
.page-content {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-content .card {
    animation: cardStaggerIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-content .card:nth-child(1) { animation-delay: 0.1s; }
.page-content .card:nth-child(2) { animation-delay: 0.2s; }
.page-content .card:nth-child(3) { animation-delay: 0.3s; }
.page-content .card:nth-child(4) { animation-delay: 0.4s; }
.page-content .card:nth-child(5) { animation-delay: 0.5s; }
.page-content .card:nth-child(6) { animation-delay: 0.6s; }

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardStaggerIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Smooth page transitions for different content types */
.dashboard-content {
    animation: dashboardFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dashboardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Form page transitions */
.form-content {
    animation: formFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes formFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table page transitions */
.table-content {
    animation: tableFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tableFadeIn {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation link hover effects */
.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

/* Sidebar navigation enhancements */
.sidebar .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 2px 8px;
}

.sidebar .nav-link:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Page loading states */
.page-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.3s ease;
}

.page-loading .spinner-border {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page Loading Indicator */
.page-loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.3s ease;
}

.page-loading-indicator.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.loading-spinner {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
}

/* Enhanced page content animations */
.page-content > * {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-content > *:nth-child(1) { animation-delay: 0.1s; }
.page-content > *:nth-child(2) { animation-delay: 0.2s; }
.page-content > *:nth-child(3) { animation-delay: 0.3s; }
.page-content > *:nth-child(4) { animation-delay: 0.4s; }
.page-content > *:nth-child(5) { animation-delay: 0.5s; }
.page-content > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Employee card enhancements */
.card.employee-card {
    border-left: 4px solid var(--primary-color);
}

.card.employee-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px -12px rgba(255, 107, 53, 0.25),
        0 8px 20px -4px rgba(255, 107, 53, 0.2),
        0 4px 8px -2px rgba(255, 107, 53, 0.15);
    border-left-width: 6px;
}

/* Timesheet card enhancements */
.card.timesheet-card {
    border-left: 4px solid var(--info-color);
}

.card.timesheet-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px -12px rgba(6, 182, 212, 0.25),
        0 8px 20px -4px rgba(6, 182, 212, 0.2),
        0 4px 8px -2px rgba(6, 182, 212, 0.15);
    border-left-width: 6px;
}

/* Vacation card enhancements */
.card.vacation-card {
    border-left: 4px solid var(--success-color);
}

.card.vacation-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px -12px rgba(16, 185, 129, 0.25),
        0 8px 20px -4px rgba(16, 185, 129, 0.2),
        0 4px 8px -2px rgba(16, 185, 129, 0.15);
    border-left-width: 6px;
}

/* Training card enhancements */
.card.training-card {
    border-left: 4px solid var(--warning-color);
}

.card.training-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px -12px rgba(245, 158, 11, 0.25),
        0 8px 20px -4px rgba(245, 158, 11, 0.2),
        0 4px 8px -2px rgba(245, 158, 11, 0.15);
    border-left-width: 6px;
}

/* Card group enhancements */
.card-group .card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-group .card:hover {
    z-index: 10;
    transform: translateY(-8px) scale(1.02);
}

/* Card deck enhancements */
.card-deck .card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-deck .card:hover {
    z-index: 10;
    transform: translateY(-8px) scale(1.02);
}

/* Responsive card hover adjustments */
@media (max-width: 768px) {
    .card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .dashboard-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .kpi-card:hover {
        transform: translateY(-3px) scale(1.02);
    }
}

.dashboard-stat {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-orange);
}

/* Form Validation Styles */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: var(--danger-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--danger-red);
}

/* Employee field validation */
.employee-field.is-invalid {
    border-color: var(--danger-red);
    background-color: #fff5f5;
}

.employee-field.is-invalid:focus {
    border-color: var(--danger-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Table Styles */
.table th {
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.1) 0%,
        rgba(255, 140, 66, 0.05) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--primary-dark);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    padding: 1rem !important;
}

.table th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.06) 0%,
        rgba(255, 140, 66, 0.03) 100%);
    pointer-events: none;
}

.table td {
    padding: 1rem !important;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(249, 122, 0, 0.05);
}

/* Prevent tiny horizontal scrollbar showing in responsive tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.table-responsive::-webkit-scrollbar { /* Chrome/Safari */
    height: 0;
    display: none;
}

/* Simplified Hero Gradient Background */
body {
    background:
        linear-gradient(135deg,
            var(--bg-primary) 0%,
            var(--bg-secondary) 25%,
            var(--bg-tertiary) 50%,
            var(--bg-secondary) 75%,
            var(--bg-primary) 100%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 87, 34, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(59, 130, 246, 0.06) 0%,
            transparent 50%
        );
    background-attachment: fixed;
    background-size: 100% 100%, 120% 120%, 120% 120%;
    background-position: center, 80% 20%, 20% 80%;
}

/* Clean backgrounds for content areas */
.main-content,
.dashboard-content,
.form-content,
.table-content {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Card backgrounds with subtle enhancement */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* Sidebar with subtle accent */
.sidebar {
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        var(--bg-secondary) 100%
    );
}

/* Header with clean background */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

/* Footer with minimal styling */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

/* Enhanced KPI cards with primary accent */
.kpi-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-400) 100%);
}

/* Statistics cards with clean styling */
.stats-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        background-size: 100% 100%, 150% 150%, 150% 150%;
        background-position: center, 80% 20%, 20% 80%;
    }
}

/* Print-friendly background patterns (remove patterns for printing) */
@media print {
    body,
    .main-content,
    .dashboard-content,
    .card,
    .form-content,
    .table-content,
    .sidebar,
    .navbar,
    .footer,
    .kpi-card,
    .stats-card {
        background-image: none !important;
        background-color: white !important;
    }
}

/* Enhanced Button Hover Effects */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* Enable hardware acceleration */
}

/* Scale transform on hover */
.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px -3px rgba(0, 0, 0, 0.15);
}

/* Glow effects for different button types */
.btn-primary:hover {
    box-shadow: 0 8px 25px -3px rgba(255, 107, 53, 0.4), 0 4px 10px -2px rgba(255, 107, 53, 0.2);
}

.btn-success:hover {
    box-shadow: 0 8px 25px -3px rgba(16, 185, 129, 0.4), 0 4px 10px -2px rgba(16, 185, 129, 0.2);
}

.btn-warning:hover {
    box-shadow: 0 8px 25px -3px rgba(245, 158, 11, 0.4), 0 4px 10px -2px rgba(245, 158, 11, 0.2);
}

.btn-danger:hover {
    box-shadow: 0 8px 25px -3px rgba(239, 68, 68, 0.4), 0 4px 10px -2px rgba(239, 68, 68, 0.2);
}

.btn-info:hover {
    box-shadow: 0 8px 25px -3px rgba(6, 182, 212, 0.4), 0 4px 10px -2px rgba(6, 182, 212, 0.2);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px -3px rgba(100, 116, 139, 0.4), 0 4px 10px -2px rgba(100, 116, 139, 0.2);
}

/* Ripple effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Enhanced outline button effects */
.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
    border-color: var(--success-color);
    transform: translateY(-2px) scale(1.02);
}

.btn-outline-warning:hover {
    background: linear-gradient(135deg, var(--warning-color), var(--warning-light));
    border-color: var(--warning-color);
    transform: translateY(-2px) scale(1.02);
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, var(--danger-color), var(--danger-light));
    border-color: var(--danger-color);
    transform: translateY(-2px) scale(1.02);
}

.btn-outline-info:hover {
    background: linear-gradient(135deg, var(--info-color), var(--info-light));
    border-color: var(--info-color);
    transform: translateY(-2px) scale(1.02);
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-color: var(--secondary-color);
    transform: translateY(-2px) scale(1.02);
}

/* Small button enhancements */
.btn-sm:hover {
    transform: translateY(-1px) scale(1.03);
}

.btn-lg:hover {
    transform: translateY(-3px) scale(1.01);
}

/* Disabled button states */
.btn:disabled,
.btn.disabled {
    transform: none !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* Special button enhancements for bulk actions and quick actions */
.btn-outline-success:hover {
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
    color: white;
    border-color: var(--success-color);
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, var(--danger-color), var(--danger-light));
    color: white;
    border-color: var(--danger-color);
}

/* Enhanced button groups */
.btn-group .btn:hover {
    z-index: 2;
}

/* Floating action button style */
.btn-float {
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-float:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Icon button enhancements */
.btn i {
    transition: transform 0.2s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* Loading button states */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form submit button enhancements */
.btn[type="submit"]:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px -3px rgba(16, 185, 129, 0.4);
}

/* Action button enhancements for tables */
.table .btn {
    margin: 0 2px;
}

.table .btn:hover {
    transform: translateY(-1px) scale(1.05);
}

/* Quick action button enhancements */
.quick-actions .btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-actions .btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.2);
}

/* Bulk action button enhancements */
.bulk-actions .btn {
    margin: 0 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bulk-actions .btn:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Navigation button enhancements */
.nav-pills .btn:hover {
    transform: translateY(-1px) scale(1.01);
}

/* Card action button enhancements */
.card .btn:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Enhanced focus states for accessibility */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

.btn:focus:not(:focus-visible) {
    box-shadow: none;
}

/* Status Badges */
.badge-pending {
    background-color: var(--warning-yellow);
    color: #212529;
}

.badge-approved {
    background-color: var(--success-green);
    color: white;
}

.badge-rejected {
    background-color: var(--danger-red);
    color: white;
}

.badge-completed {
    background-color: var(--accent-green);
    color: white;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-orange);
    border-color: var(--dark-orange);
    color: white;
}

.btn-primary:focus {
    background-color: var(--dark-orange);
    border-color: var(--dark-orange);
    box-shadow: 0 0 0 0.2rem rgba(249, 122, 0, 0.25);
}

.btn-success {
    background-color: var(--success-green);
    border-color: var(--success-green);
}

.btn-danger {
    background-color: var(--danger-red);
    border-color: var(--danger-red);
}

.btn-warning {
    background-color: var(--secondary-orange);
    border-color: var(--secondary-orange);
    color: #212529;
}

.btn-warning:hover {
    background-color: #F4C95A;
    border-color: #F4C95A;
    color: #212529;
}

.btn-info {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}

.btn-info:hover {
    background-color: #2D4F33;
    border-color: #2D4F33;
    color: white;
}

.btn-group-sm > .btn, .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0.375rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-green);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-red);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-yellow);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info-blue);
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 1.25rem;
    margin-right: 0.5rem;
}

/* Profile Picture */
.profile-picture {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-orange);
    box-shadow: 0 0.5rem 1rem rgba(249, 122, 0, 0.2);
}

.profile-picture-small {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
}

/* QR Code */
.qr-code {
    max-width: 200px;
    border: 1px solid var(--primary-orange);
    border-radius: 0.375rem;
    padding: 0.5rem;
    background-color: white;
}

.qr-code-preview {
    word-break: break-all;
    max-height: 80px;
    overflow-y: auto;
}

/* Calendar Styles */
.calendar-day {
    min-height: 100px;
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    position: relative;
}

.calendar-day.today {
    background-color: var(--light-orange);
    border-color: var(--primary-orange);
}

.calendar-day.has-events {
    background-color: rgba(249, 122, 0, 0.1);
}

.calendar-event {
    font-size: 0.75rem;
    padding: 0.125rem 0.25rem;
    margin: 0.125rem 0;
    border-radius: 0.25rem;
    background-color: var(--primary-orange);
    color: white;
    cursor: pointer;
}

.calendar-event.vacation {
    background-color: var(--success-green);
}

.calendar-event.sick {
    background-color: var(--danger-red);
}

.calendar-event.holiday {
    background-color: var(--secondary-orange);
    color: #212529;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.spinner-border.text-primary {
    color: var(--primary-orange) !important;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .table {
        border-collapse: collapse !important;
    }
    
    .table td,
    .table th {
        border: 1px solid #dee2e6 !important;
    }
    
    /* Print-specific styles for timesheet */
    .print-timesheet {
        font-family: Arial, sans-serif;
        font-size: 12px;
        line-height: 1.4;
    }
    
    .print-timesheet .header {
        text-align: center;
        margin-bottom: 20px;
        border-bottom: 2px solid #333;
        padding-bottom: 15px;
    }
    
    .print-timesheet .employee-info {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        padding: 10px;
        background: #f9f9f9;
    }
    
    .print-timesheet .timesheet-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }
    
    .print-timesheet .timesheet-table th,
    .print-timesheet .timesheet-table td {
        border: 1px solid #333;
        padding: 6px;
        text-align: left;
        font-size: 10px;
    }
    
    .print-timesheet .timesheet-table th {
        background: #f0f0f0;
        font-weight: bold;
        text-align: center;
    }
    
    .print-timesheet .summary {
        margin-top: 20px;
        border: 1px solid #333;
        padding: 10px;
        background: #f9f9f9;
    }
    
    .print-timesheet .signature-section {
        margin-top: 30px;
        display: flex;
        justify-content: space-between;
    }
    
    .print-timesheet .signature-box {
        width: 45%;
        border: 1px solid #333;
        padding: 10px;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-stat {
        font-size: 1.5rem;
    }
    
    .profile-picture {
        width: 100px;
        height: 100px;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        z-index: 1030;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-orange);
}

/* Form field focus effects */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(249, 122, 0, 0.25);
}

/* Custom checkbox and radio styles */
.form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.form-check-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(249, 122, 0, 0.25);
}

/* Tooltip styles */
.tooltip {
    font-size: 0.875rem;
}

/* Modal styles */
.modal-header {
    background-color: var(--light-orange);
    border-bottom: 1px solid rgba(249, 122, 0, 0.2);
    color: var(--dark-orange);
}

.modal-footer {
    background-color: var(--light-orange);
    border-top: 1px solid rgba(249, 122, 0, 0.2);
}

/* Progress bar styles */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
}

.progress-bar {
    transition: width 0.6s ease;
    background-color: var(--primary-orange);
}

/* Breadcrumb styles */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--neutral-gray);
}

/* Pagination styles */
.page-link {
    color: var(--primary-orange);
    border: 1px solid #dee2e6;
}

.page-link:hover {
    color: var(--dark-orange);
    background-color: var(--light-orange);
    border-color: var(--primary-orange);
}

.page-item.active .page-link {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* Dropdown styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(249, 122, 0, 0.15);
    border-radius: 0.375rem;
}

.dropdown-item:hover {
    background-color: var(--light-orange);
}

/* Card hover effects */
.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(249, 122, 0, 0.15);
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(249, 122, 0, 0.15);
}

/* Form group spacing */
.form-group {
    margin-bottom: 1rem;
}

/* Label styles */
.form-label {
    font-weight: 500;
    color: var(--neutral-gray);
    margin-bottom: 0.5rem;
}

/* Help text styles */
.form-text {
    color: var(--neutral-gray);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Required field indicator */
.required::after {
    content: " *";
    color: var(--danger-red);
}

/* Success state for form fields */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-green);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
    border-color: var(--success-green);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--success-green);
}

/* Text color utilities */
.text-primary {
    color: var(--primary-orange) !important;
}

.text-success {
    color: var(--success-green) !important;
}

.text-danger {
    color: var(--danger-red) !important;
}

.text-warning {
    color: var(--warning-yellow) !important;
}

.text-info {
    color: var(--accent-green) !important;
}

/* Background color utilities */
.bg-primary {
    background-color: var(--primary-orange) !important;
}

.bg-success {
    background-color: var(--success-green) !important;
}

.bg-danger {
    background-color: var(--danger-red) !important;
}

.bg-warning {
    background-color: var(--warning-yellow) !important;
}

.bg-info {
    background-color: var(--accent-green) !important;
}

/* Timeline markers */
.timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Avatar title */
.avatar-title {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Stats number */
.stats-number {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Display utilities */
.display-6 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

/* Badge customizations */
.badge {
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.35em 0.65em;
}

/* Navbar customization */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(249, 122, 0, 0.1);
}

.navbar-nav .nav-link {
    color: var(--neutral-gray);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-orange);
}

.navbar-nav .nav-link.active {
    color: var(--primary-orange);
    font-weight: 600;
}

/* Footer customization */
.footer {
    background-color: var(--light-orange);
    color: var(--dark-orange);
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Custom button group */
.btn-group .btn:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom form select */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23F97A00' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* Custom range slider */
.form-range::-webkit-slider-thumb {
    background-color: var(--primary-orange);
}

.form-range::-moz-range-thumb {
    background-color: var(--primary-orange);
}

/* Custom file input */
.form-control[type="file"]:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(249, 122, 0, 0.25);
}

/* Custom switch */
.form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* Custom accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--light-orange);
    color: var(--dark-orange);
}

.accordion-button:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(249, 122, 0, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F97A00'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Custom list group */
.list-group-item.active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.list-group-item-action:hover {
    background-color: var(--light-orange);
    color: var(--dark-orange);
}

/* Custom tabs */
.nav-tabs .nav-link {
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: var(--primary-orange);
    border-color: var(--primary-orange) var(--primary-orange) white;
    background-color: white;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-orange);
    border-color: var(--light-orange) var(--light-orange) var(--primary-orange);
    background-color: white;
}

/* Custom pills */
.nav-pills .nav-link.active {
    background-color: var(--primary-orange);
}

.nav-pills .nav-link:hover {
    color: var(--primary-orange);
}

/* Custom breadcrumb */
.breadcrumb-item.active {
    color: var(--primary-orange);
}

/* Custom close button */
.btn-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(249, 122, 0, 0.25);
}

/* Custom offcanvas */
.offcanvas-header {
    background-color: var(--light-orange);
    color: var(--dark-orange);
}

/* Custom toast */
.toast-header {
    background-color: var(--light-orange);
    color: var(--dark-orange);
}

/* Custom tooltip */
.tooltip .tooltip-inner {
    background-color: var(--primary-orange);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--primary-orange);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--primary-orange);
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--primary-orange);
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--primary-orange);
}

/* Custom popover */
.popover-header {
    background-color: var(--light-orange);
    color: var(--dark-orange);
}

.popover {
    border-color: var(--primary-orange);
}

/* Custom carousel */
.carousel-indicators [data-bs-target] {
    background-color: var(--primary-orange);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(0deg) brightness(0.8);
}

/* Custom spinner */
.spinner-border {
    color: var(--primary-orange);
}

/* Custom placeholder */
.form-control::placeholder {
    color: var(--neutral-gray);
    opacity: 0.6;
}

/* Custom focus ring for all interactive elements */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.page-link:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(249, 122, 0, 0.25);
}

/* Notification Badge Styles */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.nav-item {
    position: relative;
}

/* Notification item styles */
.notification-item {
    transition: background-color 0.2s ease;
    border-left: 4px solid transparent;
}

.notification-item.unread {
    background-color: rgba(249, 122, 0, 0.05);
    border-left-color: var(--primary-orange, #ff6b35);
}

.notification-item:hover {
    background-color: rgba(249, 122, 0, 0.1);
}

.phase9-notification {
    transition: background-color 0.2s ease;
    border-left: 4px solid transparent;
}

.phase9-notification.unread {
    background-color: rgba(99, 102, 241, 0.08);
    border-left-color: #6366f1;
}

.phase9-notification:hover {
    background-color: rgba(99, 102, 241, 0.12);
}

/* Notification Actions */
.notification-actions {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-item:hover .notification-actions {
    opacity: 1;
}

/* Notification Badge - Consolidated */

/* Approval buttons layout */
.approval-buttons {
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
    align-items: center;
}

.approval-buttons .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 70px;
}

/* Ensure buttons stay side by side in table cells */
.table td .d-flex {
    display: flex !important;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.table td .d-flex .btn {
    flex: 0 0 auto;
    white-space: nowrap;
} 

/* =============================
   Design System: New Components
   ============================= */

/* KPI Card - Enhanced Glassmorphism */
.kpi-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: var(--border-radius-xl, 1.5rem);
    padding: 1.5rem 2rem;
    color: #fff;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Glassmorphism hover effects */
.kpi-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 40px 0 rgba(31, 38, 135, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced layered background effects */
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
    opacity: 0.8;
}

.kpi-card__content {
    position: relative;
    z-index: 2;
}

.kpi-card__icon {
    font-size: 1.875rem;
    opacity: 0.95;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.kpi-card:hover .kpi-card__icon {
    transform: scale(1.1) rotate(5deg);
}

.kpi-card__value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.kpi-card__label {
    font-weight: 600;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* KPI Footer inside card with enhanced glassmorphism */
.kpi-card__footer {
    color: rgba(255,255,255,.95);
    backdrop-filter: blur(4px);
}
.kpi-card__meta {
    color: rgba(255,255,255,.9);
    font-size: 0.825rem;
}
.kpi-card__progress {
    background-color: rgba(255,255,255,.2);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.kpi-card__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,1));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Enhanced gradient overlays with glassmorphism */
.kpi-card--primary {
    background:
        linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(229, 90, 43, 0.8) 100%),
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.15), transparent 50%);
}
.kpi-card--success {
    background:
        linear-gradient(135deg, rgba(40, 167, 69, 0.9) 0%, rgba(25, 135, 84, 0.8) 100%),
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.15), transparent 50%);
}
.kpi-card--warning {
    background:
        linear-gradient(135deg, rgba(255, 193, 7, 0.9) 0%, rgba(255, 171, 0, 0.8) 100%),
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.15), transparent 50%);
    color: #212529;
}
.kpi-card--info {
    background:
        linear-gradient(135deg, rgba(13, 202, 240, 0.9) 0%, rgba(13, 110, 253, 0.8) 100%),
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.15), transparent 50%);
}

/* Light Brown KPI variant for neutral/white cards */
.kpi-card--brown {
    background: linear-gradient(135deg, #f6f0e6 0%, #e7d9c7 100%);
    color: #5a4633;
}
.kpi-card--brown .kpi-card__icon { color: rgba(90,70,51,0.9); }
.kpi-card--brown .kpi-card__progress { background-color: rgba(90,70,51,0.25); }
.kpi-card--brown .kpi-card__progress-bar { background-color: rgba(90,70,51,0.85); }

/* Filter Bar */
.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem 1rem;
    align-items: end;
}
.filter-bar__actions { display: flex; gap: 0.5rem; justify-content: flex-end; }

/* Contextual Chips - Enhanced with glassmorphism */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.8;
    z-index: -1;
}

.chip:hover {
    transform: translateY(-1px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chip-icon {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Chip variants with glassmorphism */
.chip--pending {
    background: rgba(255, 193, 7, 0.85);
    color: #212529;
    border-color: rgba(255, 193, 7, 0.3);
}

.chip--approved {
    background: rgba(25, 135, 84, 0.85);
    color: #fff;
    border-color: rgba(25, 135, 84, 0.3);
}

.chip--rejected {
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
    border-color: rgba(220, 53, 69, 0.3);
}

.chip--info {
    background: rgba(13, 202, 240, 0.85);
    color: #fff;
    border-color: rgba(13, 202, 240, 0.3);
}

.chip--primary {
    background: rgba(255, 107, 53, 0.85);
    color: #fff;
    border-color: rgba(255, 107, 53, 0.3);
}

.chip--neutral {
    background: rgba(108, 117, 125, 0.85);
    color: #fff;
    border-color: rgba(108, 117, 125, 0.3);
}

.chip--secondary {
    background: rgba(248, 249, 250, 0.9);
    color: #495057;
    border-color: rgba(222, 226, 230, 0.5);
}

/* Legacy badge support */
.badge--pending { background-color: var(--warning-yellow); color: #212529; }
.badge--approved { background-color: var(--success-green); color: #fff; }
.badge--rejected { background-color: var(--danger-red); color: #fff; }
.badge--neutral { background-color: var(--light-gray); color: #fff; }

/* Scroll/visibility transitions for enhanced components */
.enhanced-observe {
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-observe.enhanced-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}
/* Enhanced Table with Glassmorphism */
.enhanced-table-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-table-container:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 12px 40px 0 rgba(31, 38, 135, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.enhanced-table {
    margin: 0;
    background: transparent;
}

.enhanced-table thead th {
    background: rgba(255, 107, 53, 0.12);
    backdrop-filter: blur(8px);
    border: none;
    border-bottom: 2px solid rgba(255, 107, 53, 0.2);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 1rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.enhanced-table thead th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 140, 66, 0.04) 100%);
    z-index: -1;
}

.enhanced-table tbody tr {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.08);
    transform: translateX(4px);
    box-shadow: inset 4px 0 0 rgba(255, 107, 53, 0.3);
}

.enhanced-table tbody td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    font-size: 0.9rem;
}

.enhanced-table tbody tr:last-child td {
    border-bottom: none;
}

/* Enhanced List with Contextual Chips */
.enhanced-list {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-list:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 12px 40px 0 rgba(31, 38, 135, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.enhanced-list-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.enhanced-list-item:hover {
    background: rgba(255, 107, 53, 0.05);
    transform: translateX(4px);
    box-shadow: inset 4px 0 0 rgba(255, 107, 53, 0.3);
}

.enhanced-list-item:last-child {
    border-bottom: none;
}

.enhanced-list-item__content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.enhanced-list-item__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
}

.enhanced-list-item__details h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: var(--text-primary);
}

.enhanced-list-item__details p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.enhanced-list-item__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Enhanced Micro-charts */
.micro-chart {
    width: 80px;
    height: 40px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: end;
    padding: 4px;
    gap: 2px;
}

.micro-chart--line {
    padding: 2px;
}

.micro-chart--bar .micro-chart__bar {
    flex: 1;
    background: linear-gradient(to top,
        rgba(255, 107, 53, 0.8) 0%,
        rgba(255, 107, 53, 0.4) 100%);
    border-radius: 1px;
    min-height: 20%;
    animation: microBarGrow 0.8s ease-out;
}

.micro-chart--bar .micro-chart__bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.micro-chart--bar .micro-chart__bar:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.micro-chart--bar .micro-chart__bar:nth-child(3) { height: 40%; animation-delay: 0.3s; }
.micro-chart--bar .micro-chart__bar:nth-child(4) { height: 90%; animation-delay: 0.4s; }
.micro-chart--bar .micro-chart__bar:nth-child(5) { height: 70%; animation-delay: 0.5s; }
.micro-chart--bar .micro-chart__bar:nth-child(6) { height: 50%; animation-delay: 0.6s; }

@keyframes microBarGrow {
    from { height: 0; opacity: 0; }
    to { opacity: 1; }
}

.micro-chart--line svg {
    width: 100%;
    height: 100%;
}

.micro-chart--line .micro-chart__line {
    stroke: rgba(255, 107, 53, 0.8);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: microLineDraw 1s ease-out;
}

.micro-chart--line .micro-chart__area {
    fill: url(#microGradient);
    opacity: 0.3;
    animation: microAreaFade 1s ease-out;
}

@keyframes microLineDraw {
    from { stroke-dasharray: 100; stroke-dashoffset: 100; }
    to { stroke-dasharray: 100; stroke-dashoffset: 0; }
}

@keyframes microAreaFade {
    from { opacity: 0; }
    to { opacity: 0.3; }
}

.micro-chart--donut {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.micro-chart--donut svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.micro-chart--donut .micro-chart__donut-bg {
    stroke: rgba(255, 107, 53, 0.1);
    stroke-width: 4;
    fill: none;
}

.micro-chart--donut .micro-chart__donut-value {
    stroke: rgba(255, 107, 53, 0.8);
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    animation: microDonutGrow 1s ease-out;
}

@keyframes microDonutGrow {
    from { stroke-dasharray: 94.2; stroke-dashoffset: 94.2; }
}

/* Micro-chart variants */
.micro-chart--success {
    background: rgba(25, 135, 84, 0.05);
    border-color: rgba(25, 135, 84, 0.1);
}

.micro-chart--success .micro-chart__bar {
    background: linear-gradient(to top,
        rgba(25, 135, 84, 0.8) 0%,
        rgba(25, 135, 84, 0.4) 100%);
}

.micro-chart--success .micro-chart__line {
    stroke: rgba(25, 135, 84, 0.8);
}

.micro-chart--success .micro-chart__donut-value {
    stroke: rgba(25, 135, 84, 0.8);
}

.micro-chart--warning {
    background: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.1);
}

.micro-chart--warning .micro-chart__bar {
    background: linear-gradient(to top,
        rgba(255, 193, 7, 0.8) 0%,
        rgba(255, 193, 7, 0.4) 100%);
}

.micro-chart--warning .micro-chart__line {
    stroke: rgba(255, 193, 7, 0.8);
}

.micro-chart--warning .micro-chart__donut-value {
    stroke: rgba(255, 193, 7, 0.8);
}

/* Help Center */
.help-center-logo {
    height: 32px;
    width: auto;
    max-height: 32px;
    object-fit: contain;
    cursor: help;
}

.changelog-scroll {
    max-height: 18rem;
    overflow-y: auto;
}

.changelog-date {
    min-width: 5rem;
}

.changelog-summary {
    white-space: pre-wrap;
}
/* Utilities */
.u-shadow-sm { box-shadow: var(--shadow-sm, 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)); }
.u-shadow-md { box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)); }
.u-shadow-lg { box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)); }
.u-rounded { border-radius: var(--border-radius, 0.75rem); }
.u-rounded-lg { border-radius: var(--border-radius-lg, 1rem); }
.u-rounded-xl { border-radius: var(--border-radius-xl, 1.5rem); }
.u-mb-sm { margin-bottom: 0.5rem; }
.u-mb-md { margin-bottom: 1rem; }
.u-mb-lg { margin-bottom: 1.5rem; }
.u-text-muted { color: var(--text-muted, #94a3b8); }

/* Generic animate-on-scroll helper */
.animate-on-scroll { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* =============================
   Calendar Components
   ============================= */

/* Calendar Table */
.calendar {
    width: 100%;
    border-collapse: collapse;
}

.calendar th {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: center;
    font-weight: 600;
}

.calendar td {
    border: 1px solid #dee2e6;
    padding: 5px;
    height: 100px;
    vertical-align: top;
    position: relative;
}

.calendar .date-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.calendar .other-month {
    background-color: #f8f9fa;
    color: #6c757d;
}

.calendar .today {
    background-color: #e3f2fd;
}

/* Absence Items */
.absence-item {
    font-size: 11px;
    padding: 2px 4px;
    margin: 1px 0;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.absence-sick {
    background-color: #dc3545;
}

.absence-personal {
    background-color: #007bff;
}

.absence-jury {
    background-color: #ffc107;
    color: #212529;
}

.absence-bereavement {
    background-color: #17a2b8;
}

.absence-other {
    background-color: #6c757d;
}

/* Calendar Legend */
.legend-item {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.calendar-controls {
    margin-bottom: 20px;
}

/* List View */
.list-view {
    display: none;
}

.list-view .absence-item {
    font-size: 14px;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 5px;
}

/* =============================
   Admin Table Styles
   ============================= */

/* Admin Table Headers */
.admin-table th {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Admin Badges */
.admin-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Admin Button Groups */
.admin-btn-group .btn {
    margin-right: 0.25rem;
}

/* =============================
   Form Styles
   ============================= */

/* Form Labels */
.form-label {
    color: var(--text-primary, #1e293b);
    font-weight: 600;
}

/* Form Controls Focus */
.form-control:focus,
.form-select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Primary Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #d1451a 100%);
    transform: translateY(-1px);
}

/* =============================
   Training Request Styles
   ============================= */

/* Process Steps */
.process-step {
    padding: 1rem;
    border-radius: var(--border-radius, 0.75rem);
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: var(--transition, all 0.2s cubic-bezier(0.4, 0, 0.2, 1));
}

.process-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
}

/* Step Number */
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color, #ff6b35);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem auto;
}

/* File Items */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--bg-secondary, #f8fafc);
    border-radius: var(--border-radius, 0.75rem);
    margin-bottom: 0.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-icon {
    color: var(--primary-color, #ff6b35);
    font-size: 1.2rem;
}

/* =============================
   Notification Styles
   ============================= */

/* Notification Preview */
.notification-preview {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #f8f9fa;
}

/* Notification Icon - General */
.notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(249, 122, 0, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Target Summary */
.target-summary ul li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

/* File List */
.file-list {
    margin-top: 0.5rem;
}

.file-list ul {
    margin-bottom: 0;
}

.file-list li {
    font-size: 0.85rem;
    color: #6c757d;
}

/* =============================
   Document Styles
   ============================= */

/* Document Form Section */
.document-form-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.document-form-section h5 {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Document Form Labels */
.document-form-section .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Document Form Controls */
.document-form-section .form-control,
.document-form-section .form-select {
    border-color: #ced4da;
    border-radius: 0.375rem;
}

.document-form-section .form-control:focus,
.document-form-section .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* =============================
   Employee Vacation Styles
   ============================= */

/* User Avatar Large */
.user-avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
}

/* Stats Icon */
.stats-icon {
    font-size: 2rem;
    color: #ff6b35;
}

/* Employee Vacation Table */
.employee-vacation-table th {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Employee Vacation Badges */
.employee-vacation-table .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Employee Vacation Pagination */
.employee-vacation-pagination .page-link {
    color: #ff6b35;
    border-color: #e2e8f0;
}

.employee-vacation-pagination .page-item.active .page-link {
    background-color: #ff6b35;
    border-color: #ff6b35;
}

.employee-vacation-pagination .page-link:hover {
    color: #e55a2b;
    background-color: #f8fafc;
} 

/* =============================
   Employee Timesheet Styles
   ============================= */

/* Employee Timesheet Table */
.employee-timesheet-table th {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Employee Timesheet Badges */
.employee-timesheet-table .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Employee Timesheet Pagination */
.employee-timesheet-pagination .page-link {
    color: #ff6b35;
    border-color: #e2e8f0;
}

.employee-timesheet-pagination .page-item.active .page-link {
    background-color: #ff6b35;
    border-color: #ff6b35;
}

.employee-timesheet-pagination .page-link:hover {
    color: #e55a2b;
    background-color: #f8fafc;
} 

/* =============================
   Employee Reports Styles
   ============================= */

/* Stats Card */
.stats-card {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    border-radius: var(--border-radius-lg, 1rem);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.stats-card .stats-icon,
.stats-card .stats-number,
.stats-card .stats-label {
    position: relative;
    z-index: 1;
}

/* Stats Elements */
.stats-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stats-label {
    opacity: 0.9;
    font-weight: 500;
}

/* Leave Item Progress */
.leave-item .progress {
    border-radius: 4px;
}

/* Employee Reports Table */
.employee-reports-table th {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Employee Reports Badges */
.employee-reports-table .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Print Styles */
@media print {
    .btn, .card-header {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .stats-card {
        background: #f8f9fa !important;
        color: #333 !important;
    }
} 

/* =============================
   Holidays Styles
   ============================= */

/* Stats Card Small */
.stats-card-small {
    padding: 1rem;
    border-radius: var(--border-radius, 0.75rem);
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: var(--transition, all 0.2s cubic-bezier(0.4, 0, 0.2, 1));
}

.stats-card-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
}

/* Holiday Card */
.holiday-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: var(--border-radius, 0.75rem);
    background: white;
    border: 1px solid var(--border-color, #e2e8f0);
    transition: var(--transition, all 0.2s cubic-bezier(0.4, 0, 0.2, 1));
    height: 100%;
}

.holiday-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
}

.holiday-card.past {
    opacity: 0.7;
    background: var(--bg-secondary, #f8fafc);
}

.holiday-card.today {
    border-color: var(--warning-color, #f59e0b);
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.holiday-card.upcoming {
    border-color: #ff6b35;
}

/* Holiday Date */
.holiday-date {
    text-align: center;
    margin-right: 1rem;
    min-width: 60px;
}

.date-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
    line-height: 1;
}

.date-month {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    text-transform: uppercase;
}

.date-year {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
}

/* Holiday Content */
.holiday-content {
    flex: 1;
}

.holiday-name {
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.holiday-day {
    font-size: 0.875rem;
}

/* =============================
   Notification Item Styles
   ============================= */

/* Notification Item */
.notification-item {
    transition: background-color 0.2s ease;
    border-left: 4px solid transparent;
}

.notification-item.unread {
    background-color: rgba(249, 122, 0, 0.05);
    border-left-color: var(--primary-orange, #ff6b35);
}

.notification-item:hover {
    background-color: rgba(249, 122, 0, 0.1);
}

/* Notification Actions */
.notification-actions {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-item:hover .notification-actions {
    opacity: 1;
}

/* Notification Badge */
.notification-badge {
    font-size: 0.7em;
}

/* =============================
   Training Requests Styles
   ============================= */

/* Avatar Small */
.avatar-sm {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Training Requests Table */
.training-requests-table th {
    border-top: none;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.training-requests-table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

/* Training Requests Button Group */
.training-requests-btn-group .btn {
    margin-right: 0.25rem;
}

.training-requests-btn-group .btn:last-child {
    margin-right: 0;
} 

.timeline-content p {
    margin-bottom: 0.5rem;
}

/* =============================
   Vacation Planner Styles
   ============================= */

/* Calendar Container */
.calendar-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Calendar Header */
.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e9ecef;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.calendar-day-header {
    background-color: #f8f9fa;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e9ecef;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* Calendar Day */
.calendar-day {
    background-color: white;
    min-height: 60px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calendar-day:hover {
    background-color: #f8f9fa;
    transform: scale(1.02);
}

.calendar-day.disabled {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
}

.calendar-day.disabled:hover {
    transform: none;
}

.calendar-day.weekend {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
}

.calendar-day.weekend:hover {
    transform: none;
    background-color: #f8f9fa;
}

.calendar-day.holiday {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
}

.calendar-day.existing-request {
    background-color: #d1ecf1;
    border: 2px solid #17a2b8;
}

.calendar-day.selected {
    background-color: #007bff !important;
    color: white !important;
}

.calendar-day.selected:hover {
    background-color: #0056b3 !important;
}

.calendar-day.today {
    border: 2px solid #28a745;
}

/* =============================
   Timesheet Styles
   ============================= */

/* Time Card */
.time-card {
    background: var(--bg-secondary, #f8fafc);
    border-radius: var(--border-radius, 0.75rem);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: var(--transition, all 0.2s cubic-bezier(0.4, 0, 0.2, 1));
}

.time-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
}

/* Time Icon */
.time-icon {
    font-size: 1.5rem;
    color: var(--primary-color, #ff6b35);
}

/* Hours Card */
.hours-card {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    border-radius: var(--border-radius, 0.75rem);
}

/* Summary Card */
.summary-card {
    padding: 1rem;
    border-radius: var(--border-radius, 0.75rem);
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: var(--transition, all 0.2s cubic-bezier(0.4, 0, 0.2, 1));
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
}

/* Summary Icon */
.summary-icon {
    font-size: 1.5rem;
}

/* Timesheet Table */
.timesheet-table th {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Timesheet Badges */
.timesheet-table .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Large Button */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
} 

/* =============================
   Admin Timesheet Styles
   ============================= */

/* User Avatar Small */
.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Stats Card */
.stats-card {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    border-radius: var(--border-radius-lg, 1rem);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.stats-card .stats-icon,
.stats-card .stats-number,
.stats-card .stats-label {
    position: relative;
    z-index: 1;
}

/* Stats Icon */
.stats-icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* Stats Number */
.stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

/* Stats Label */
.stats-label {
    opacity: 0.9;
    font-weight: 500;
}

/* Admin Timesheet Table */
.admin-timesheet-table th {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Admin Timesheet Badges */
.admin-timesheet-table .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Admin Timesheet Pagination */
.admin-timesheet-pagination .page-link {
    color: #ff6b35;
    border-color: #e2e8f0;
}

.admin-timesheet-pagination .page-item.active .page-link {
    background-color: #ff6b35;
    border-color: #ff6b35;
}

.admin-timesheet-pagination .page-link:hover {
    color: #e55a2b;
    background-color: #f8fafc;
} 

/* =============================
   Loading Page Styles
   ============================= */

.loading-screen {
    width: min(90vw, 460px);
    padding: clamp(2.25rem, 5vw, 3rem);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 30px 80px rgba(17, 25, 40, 0.35);
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(1.25rem, 3vw, 1.75rem);
    color: #fff;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInDown 0.8s ease-out both;
}

.loading-logo {
    width: clamp(140px, 28vw, 180px);
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(8, 20, 44, 0.35));
}

.spinner-container {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.loading-spinner-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: clamp(1rem, 1vw + 0.95rem, 1.15rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

.progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0%, #ffffff 55%, rgba(255, 255, 255, 0.75) 100%);
    animation: progressFill 3s ease-out 0.85s forwards;
}

.loading-messages {
    width: 100%;
    display: grid;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.message {
    opacity: 0;
    transform: translateY(12px);
    letter-spacing: 0.02em;
    font-weight: 400;
    animation: messageReveal 0.6s ease-out forwards;
}

.message:nth-child(1) { animation-delay: 1.2s; }
.message:nth-child(2) { animation-delay: 1.5s; }
.message:nth-child(3) { animation-delay: 1.8s; }

@keyframes progressFill {
    0% { width: 0%; }
    10% { width: 14%; }
    35% { width: 36%; }
    65% { width: 68%; }
    100% { width: 100%; }
}

@keyframes messageReveal {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .loading-screen {
        width: min(92vw, 380px);
        padding: clamp(1.75rem, 6vw, 2.25rem);
        border-radius: 24px;
    }

    .loading-logo {
        width: clamp(120px, 40vw, 160px);
    }
}
/* =============================
   Index Page Styles
   ============================= */

/* Hero Section */
.hero-section {
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Weekly Timesheet Modal */
.glass-modal {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(18px);
    width: min(1240px, 95vw);
}

.glass-modal-body {
    background:
        radial-gradient(circle at top left, rgba(255, 190, 140, 0.45), transparent 60%),
        radial-gradient(circle at bottom right, rgba(140, 190, 255, 0.45), transparent 55%),
        rgba(255, 255, 255, 0.58);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.weekly-entry-grid {
    display: grid;
    gap: clamp(1rem, 1.6vw, 1.25rem);
    grid-template-columns: repeat(5, minmax(220px, 1fr));
}

.weekly-entry-card {
    position: relative;
    padding: clamp(1rem, 2.2vw, 1.35rem);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 30px rgba(255, 155, 105, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.weekly-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(255, 155, 105, 0.22);
}

.weekly-entry-card.locked-card {
    border-color: rgba(255, 138, 94, 0.75);
    box-shadow: 0 18px 40px rgba(255, 138, 94, 0.25);
    background: linear-gradient(150deg, rgba(255, 178, 138, 0.65), rgba(255, 255, 255, 0.45));
}

.weekly-entry-card .form-control,
.weekly-entry-card .form-select {
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
}

.weekly-entry-card .form-control:disabled,
.weekly-entry-card .form-select:disabled {
    background-color: rgba(255, 255, 255, 0.7);
    color: rgba(15, 23, 42, 0.6);
    cursor: not-allowed;
}

.weekly-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.weekly-entry-header .entry-status {
    text-align: right;
    max-width: 70%;
}

.day-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.85), rgba(255, 203, 119, 0.85));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.weekly-entry-fields {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.weekly-entry-fields .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

.weekly-entry-card.locked-card .form-label {
    color: rgba(15, 23, 42, 0.7);
}

.weekly-entry-card.locked-card .entry-status {
    color: rgba(15, 23, 42, 0.85);
    font-weight: 600;
}

.glass-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-modal-body small {
    color: rgba(15, 23, 42, 0.65);
}

/* Hero Logo */
.hero-logo {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem auto;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    box-shadow: var(--shadow-xl, 0 25px 50px -12px rgb(0 0 0 / 0.25));
}

.hero-logo img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

/* Hero Brand Text */
.hero-brand-text {
    font-size: 1rem;
    color: #fff;
    opacity: 0.7;
    letter-spacing: 0.03em;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Hero Button */
.btn-hero {
    padding: var(--spacing-lg, 1.5rem) var(--spacing-2xl, 3rem);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition, all 0.2s cubic-bezier(0.4, 0, 0.2, 1));
    border: 2px solid transparent;
    font-size: var(--font-size-base, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

/* Hero Button Primary */
.btn-hero-primary {
    background: white;
    color: var(--primary-color, #ff6b35);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05));
}

.btn-hero-primary:hover {
    background: var(--bg-secondary, #f8fafc);
    color: var(--primary-dark, #e55a2b);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl, 0 25px 50px -12px rgb(0 0 0 / 0.25));
}

/* Hero Responsive */
@media (max-width: 900px) {
    .hero-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    .hero-brand-text {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    .btn-hero {
        width: 100%;
        max-width: 300px;
    }
}


/* =============================
   Threat Detection Dashboard Styles
   ============================= */

/* Threat Dashboard */
.threat-dashboard {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Threat Card */
.threat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Threat Level */
.threat-level {
    padding: 8px 16px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
}

.threat-critical { 
    background: #dc3545; 
}

.threat-high { 
    background: #fd7e14; 
}

.threat-medium { 
    background: #ffc107; 
    color: #212529; 
}

.threat-low { 
    background: #28a745; 
}

/* Threat Metrics */
.threat-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Metric Card */
.metric-card {
    background: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Metric Value */
.metric-value {
    font-size: 2em;
    font-weight: bold;
    color: #007bff;
}

/* Recent Threats */
.recent-threats {
    max-height: 400px;
    overflow-y: auto;
}

/* Threat Item */
.threat-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

/* Threat Severity */
.threat-severity-critical { 
    border-left: 4px solid #dc3545; 
}

.threat-severity-high { 
    border-left: 4px solid #fd7e14; 
}

.threat-severity-medium { 
    border-left: 4px solid #ffc107; 
}

.threat-severity-low { 
    border-left: 4px solid #28a745; 
}

/* =============================
   Test Frontend Clock Styles
   ============================= */

/* Test Clock Body */
.test-clock-body {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
}

/* Test Clock Button */
.test-clock-button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* Clock In Button */
.test-clock-in {
    background-color: #28a745;
    color: white;
}

/* Clock Out Button */
.test-clock-out {
    background-color: #dc3545;
    color: white;
}

/* Test Clock Status */
.test-clock-status {
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    background-color: #f8f9fa;
}

/* Test Clock Log */
.test-clock-log {
    margin-top: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
} 

/* =============================
   Layout & Sidebar Styles
   ============================= */

/* Global Layout */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}

html, body {
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: auto;
    overflow-x: hidden; /* Prevent tiny horizontal scrollbars */
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    width: 100%; /* Avoid 100vw overflow when vertical scrollbar is present */
    max-width: 100%;
    overflow-x: hidden;
    display: block;
    position: static;
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-2xl);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
    width: 320px;
    backdrop-filter: blur(10px);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sidebar-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23sidebar-pattern)"/></svg>');
    pointer-events: none;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.sidebar-brand {
    color: white;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    letter-spacing: -0.025em;
}

.sidebar-brand:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    transition: var(--transition);
}

.sidebar-nav {
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px; /* Space for footer rail */
}

/* Navigation Sections */
.nav-section {
    margin-bottom: var(--spacing-md);
}

.nav-section-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--spacing-sm) var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.nav-section-label::after {
    content: '';
    position: absolute;
    left: var(--spacing-lg);
    right: var(--spacing-lg);
    bottom: -var(--spacing-xs);
    height: 1px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%);
}

.nav-item {
    margin-bottom: var(--spacing-xs);
    padding: 0 var(--spacing-md);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    margin: var(--spacing-xs) 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: var(--font-size-sm);
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: white;
    transform: translateX(4px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: var(--shadow-sm);
}

.nav-link.active::before {
    width: 100%;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-text {
    transition: var(--transition);
    white-space: nowrap;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-brand .brand-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Compact Footer Rail */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.footer-rail {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    gap: var(--spacing-lg);
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-full);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition-colors);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--font-size-base);
    position: relative;
}

.footer-link i {
    font-size: var(--font-size-lg);
}

.footer-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-link.logout-link:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.footer-link-notifications .footer-notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.sidebar.collapsed .footer-link-notifications .footer-notification-badge {
    top: -6px;
    right: -6px;
}

.sidebar.collapsed .sidebar-footer .footer-rail {
    padding: var(--spacing-md) var(--spacing-sm);
    flex-direction: column;
    gap: var(--spacing-xs);
}

.sidebar.collapsed .footer-link {
    width: 40px;
    height: 40px;
}

/* Main Content Area */
.main-content {
    margin-left: 320px;
    padding: var(--spacing-lg);
    min-height: 100vh;
    transition: var(--transition);
}

.main-content.sidebar-collapsed {
    margin-left: 80px;
}

/* When there is no sidebar (e.g., /loading, /login), remove left margin */
.main-content.no-sidebar {
    margin-left: 0;
}

/* Top Navigation */
.top-nav {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: clamp(1rem, 3vw, 2.25rem);
    flex-wrap: wrap;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.page-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* User Info Section */
.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-info h6 {
    margin-bottom: 0.15rem;
}

.user-info small {
    color: var(--text-secondary);
}

.top-nav .d-flex.align-items-stretch {
    flex: 1 1 60%;
    min-width: min(100%, 320px);
}

.dashboard-hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1.25rem, 3vw, 1.9rem) clamp(1.5rem, 4vw, 2.6rem);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.84));
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 55%);
    pointer-events: none;
}

.hero-left {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: clamp(56px, 6vw, 72px);
    height: clamp(56px, 6vw, 72px);
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2rem);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.22);
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--text-primary);
}

.hero-greeting {
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.hero-subtext {
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.75);
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
    min-width: max-content;
}

.hero-date-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.6);
}

.hero-date-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.dashboard-hero.hero-theme-morning {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 236, 209, 0.85));
}

.hero-icon.hero-theme-morning {
    background: linear-gradient(135deg, #ffbf69, #ff922b);
}

.dashboard-hero.hero-theme-day {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(214, 234, 255, 0.88));
}

.hero-icon.hero-theme-day {
    background: linear-gradient(135deg, #4dabf7, #1c7ed6);
}

.dashboard-hero.hero-theme-evening {
    background: linear-gradient(135deg, rgba(248, 249, 255, 0.96), rgba(206, 214, 255, 0.9));
}

.hero-icon.hero-theme-evening {
    background: linear-gradient(135deg, #5f5af7, #3436c7);
}

.dashboard-hero.profile-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(228, 226, 255, 0.88));
}

.hero-icon.hero-theme-celebration {
    background: linear-gradient(135deg, #ff8ba7, #ff6b6b);
    box-shadow: 0 18px 28px rgba(220, 38, 38, 0.2);
}

.dashboard-hero.profile-hero .hero-subtext {
    color: rgba(60, 72, 107, 0.8);
}

@media (max-width: 992px) {
    .top-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .top-nav .d-flex.align-items-stretch {
        flex: 1 1 100%;
        margin-right: 0 !important;
    }

    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero-right {
        align-items: flex-start;
    }

    .user-info {
        justify-content: space-between;
        width: 100%;
        padding: 0 clamp(0.5rem, 2vw, 1rem);
    }
}

@media (max-width: 576px) {
    .user-info {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .user-info .notification-icon {
        width: 36px;
        height: 36px;
    }

    .hero-icon {
        width: 52px;
        height: 52px;
    }
}

.user-info .notification-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(249, 122, 0, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    transition: var(--transition);
}

.user-info .notification-icon:hover {
    background-color: rgba(249, 122, 0, 0.2);
    transform: scale(1.05);
}

.user-info .notification-badge-top {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.user-info .user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-info .user-details h6 {
    margin: 0;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.user-info .user-details small {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
}

.user-info .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.user-info .user-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 320px;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.sidebar-collapsed {
        margin-left: 0;
    }
    
    .top-nav {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }
    
    .top-nav-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.u-mb-xs { margin-bottom: var(--spacing-xs); }
.u-mb-sm { margin-bottom: var(--spacing-sm); }
.u-mb-md { margin-bottom: var(--spacing-md); }
.u-mb-lg { margin-bottom: var(--spacing-lg); }
.u-mb-xl { margin-bottom: var(--spacing-xl); }
.u-mb-2xl { margin-bottom: var(--spacing-2xl); }
.u-mb-3xl { margin-bottom: var(--spacing-3xl); }

.u-mt-xs { margin-top: var(--spacing-xs); }
.u-mt-sm { margin-top: var(--spacing-sm); }
.u-mt-md { margin-top: var(--spacing-md); }
.u-mt-lg { margin-top: var(--spacing-lg); }
.u-mt-xl { margin-top: var(--spacing-xl); }
.u-mt-2xl { margin-top: var(--spacing-2xl); }
.u-mt-3xl { margin-top: var(--spacing-3xl); }

.u-rounded { border-radius: var(--border-radius); }
.u-rounded-lg { border-radius: var(--border-radius-lg); }
.u-rounded-xl { border-radius: var(--border-radius-xl); }
.u-rounded-2xl { border-radius: var(--border-radius-2xl); }

.u-shadow-xs { box-shadow: var(--shadow-xs); }
.u-shadow-sm { box-shadow: var(--shadow-sm); }
.u-shadow-md { box-shadow: var(--shadow-md); }
.u-shadow-lg { box-shadow: var(--shadow-lg); }
.u-shadow-xl { box-shadow: var(--shadow-xl); }
.u-shadow-2xl { box-shadow: var(--shadow-2xl); } 

/* CSP-safe utility replacements for inline styles */
.flex-col-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.logo-img {
    height: 56px;
    width: auto;
    margin: 16px 0 4px 0;
    display: block;
}

.logo-subtext {
    font-size: 0.7rem;
    color: #fff;
    opacity: 0.7;
    letter-spacing: 0.03em;
    text-align: center;
    margin-bottom: 4px;
}

/* Fade-in on scroll */
.fade-in-up { opacity: 0; transform: translateY(10px); transition: opacity .6s ease-out, transform .6s ease-out; }
.in-view { opacity: 1 !important; transform: none !important; }

/* Table row hover via CSS */
.table tbody tr, .enhanced-table tbody tr { transition: var(--transition); }
.table tbody tr:hover, .enhanced-table tbody tr:hover { transform: scale(1.01); }

/* Alerts fade-out */
.fade-out { opacity: 0 !important; transition: opacity .15s linear !important; }

/* Card elevation hover */
.card-raise { transform: translateY(-4px) !important; box-shadow: var(--shadow-xl) !important; }

/* Sidebar/main transitions */
#sidebar, #main-content { transition: var(--transition-slow); }

/* Scroll-to-top button visibility */
.enhanced-fab { position: fixed; right: 1.5rem; bottom: 5rem; display: none; align-items: center; justify-content: center; }
.enhanced-fab.show { display: flex; }
.enhanced-fab.hidden { display: none; }
/* Hover transform handled via CSS to avoid inline styles */
.enhanced-fab { transition: transform .2s cubic-bezier(0.4, 0, 0.2, 1); }
.enhanced-fab:hover { transform: scale(1.1) translateY(-2px); }

/* Ripple effect centered (no per-click positioning) */
.btn, .enhanced-btn { position: relative; overflow: hidden; }
.ripple, .ripple-effect { position: absolute; inset: 0; margin: auto; width: 120%; height: 120%; border-radius: 50%; background: rgba(255,255,255,0.3); transform: scale(0); animation: ripple-animation 0.6s linear; pointer-events: none; }
.ripple-center { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); }
@keyframes ripple-animation { to { transform: scale(4); opacity: 0; } }

/* Modal open animation (CSP-safe) */
.modal .modal-content {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Dropdown show animation (CSP-safe) */
.dropdown-menu {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-menu.show {
    transform: translateY(0);
    opacity: 1;
}

/* Slide-in-up animation (CSP-safe, used by various views) */
@keyframes slideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-slideInUp { animation: slideInUp 0.6s ease-out; }

/* Fixed corner toast utility (replaces inline cssText) */
.corner-toast { position: fixed !important; top: 20px !important; right: 20px !important; z-index: 9999 !important; min-width: 300px !important; }

/* Vacation planner selected range visibility (CSP-safe) */
#selectedRange { opacity: 0; visibility: hidden; transition: opacity .2s linear; }
#selectedRange.is-visible { opacity: 1; visibility: visible; }

/* -------------------------------------- */
/* CSP-safe utility classes for templates */
/* -------------------------------------- */

/* Position */
.pos-relative { position: relative !important; }

/* Dimensions */
.w-32 { width: 32px !important; }
.h-32 { height: 32px !important; }
.w-48 { width: 48px !important; }
.h-48 { height: 48px !important; }
.w-80 { width: 80px !important; }
.h-80 { height: 80px !important; }
.w-100px { width: 100px !important; }
.h-100px { height: 100px !important; }
.w-120 { width: 120px !important; }
.h-120 { height: 120px !important; }
.w-150 { width: 150px !important; }
.h-150 { height: 150px !important; }
.max-w-150 { max-width: 150px !important; }
.max-w-200 { max-width: 200px !important; }
.max-h-200 { max-height: 200px !important; }
.max-h-400 { max-height: 400px !important; }
.h-8px { height: 8px !important; }
.object-cover { object-fit: cover !important; }

/* Text utilities */
.fs-3rem { font-size: 3rem !important; }
.fs-4rem { font-size: 4rem !important; }
.fs-25 { font-size: 2.5rem !important; }
.fs-24 { font-size: 24px !important; }
.fs-14 { font-size: 14px !important; }
.fs-09 { font-size: 0.9rem !important; }
.text-333 { color: #333 !important; }
.text-666 { color: #666 !important; }

/* Spacing */
.ml-10 { margin-left: 10px !important; }
.m-0 { margin: 0 !important; }
.my-5px { margin-top: 5px !important; margin-bottom: 5px !important; }

/* Word wrapping */
.break-word { word-wrap: break-word !important; overflow-wrap: break-word !important; }

/* Scroll containers */
.overflow-y-auto { overflow-y: auto !important; }

/* Avatar/fallback utilities */
.avatar-fallback { border-radius: 50% !important; background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%) !important; display: flex !important; align-items: center !important; justify-content: center !important; color: white !important; font-weight: bold !important; }
.avatar-100 { width: 100px !important; height: 100px !important; }
.avatar-120 { width: 120px !important; height: 120px !important; }
.avatar-150 { width: 150px !important; height: 150px !important; }

/* Gradient backgrounds for stat cards */
.bg-grad-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important; }
.bg-grad-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important; }
.bg-grad-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important; }

/* Welcome Panel Content Styling */
.top-nav .d-flex.align-items-center {
    display: flex !important;
    align-items: center;
    gap: var(--spacing-md);
}

.top-nav .me-3 {
    margin-right: var(--spacing-md) !important;
}

.top-nav .me-4 {
    margin-right: var(--spacing-lg) !important;
}

.top-nav .text-warning {
    color: var(--warning-color) !important;
}

.top-nav .text-info {
    color: var(--info-color) !important;
}

.top-nav .text-primary {
    color: var(--primary-color) !important;
}

.top-nav .text-muted {
    color: var(--text-muted) !important;
}

.top-nav h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0;
}

.top-nav small {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Custom close button */
.btn-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(249, 122, 0, 0.25);
}

/* Logout Button Styling */
.logout-link {
    background-color: var(--danger-color) !important;
    color: white !important;
    border: 2px solid var(--danger-dark) !important;
    border-radius: var(--border-radius) !important;
    padding: var(--spacing-md) var(--spacing-lg) !important;
    transition: var(--transition) !important;
    box-shadow: var(--shadow-sm) !important;
    position: relative;
    overflow: hidden;
}

.logout-link:hover {
    background-color: var(--danger-dark) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--danger-darkest) !important;
}

.logout-link:active {
    transform: translateY(0) !important;
    box-shadow: var(--shadow-sm) !important;
}

.logout-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.logout-link:hover::before {
    left: 100%;
}

.logout-link .nav-icon {
    color: white !important;
    margin-right: var(--spacing-sm);
}

.logout-link span {
    color: white !important;
    font-weight: 600;
}
.single-entry-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.single-entry-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.single-entry-section .form-control,
.single-entry-section .form-select,
.single-entry-section textarea {
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border-radius: 12px;
}

.single-entry-section textarea {
    resize: vertical;
    min-height: 90px;
}

.single-entry-section .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.6);
}



/* ==============================================
   Dashboard 2025+ Experience Layer
   ============================================== */
.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 1.4rem + 1.8vw, 3rem);
    padding: clamp(1.5rem, 1.1rem + 1.8vw, 3rem);
    background: radial-gradient(circle at top right, rgba(255, 87, 34, 0.08), transparent 45%),
                radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.05), transparent 50%),
                var(--bg-secondary);
    border-radius: clamp(1rem, 0.8rem + 1vw, 2rem);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.dashboard-shell .muted {
    color: var(--text-muted);
}

.text-link {
    color: var(--primary-500);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: var(--transition);
}

.text-link:hover {
    color: var(--primary-600);
    transform: translateX(2px);
}

/* Hero */
.surface-gradient {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
    padding: clamp(1.75rem, 1.4rem + 1.5vw, 3rem);
    border-radius: var(--border-radius-2xl);
    color: var(--text-inverse);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.surface-gradient::before,
.surface-gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.surface-gradient::before {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 60%),
                radial-gradient(circle at bottom right, rgba(255,255,255,0.12), transparent 55%);
    opacity: 0.9;
}

.surface-gradient::after {
    background-image: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 35%),
                      linear-gradient(transparent 0, rgba(255,255,255,0.08) 100%);
    mix-blend-mode: screen;
    opacity: 0.6;
}

.surface-gradient .dashboard-hero__primary,
.surface-gradient .dashboard-hero__metrics {
    position: relative;
    z-index: 1;
}

.surface-gradient--admin {
    background: linear-gradient(130deg, rgba(255, 87, 34, 0.96) 0%, rgba(30, 41, 59, 0.92) 90%);
}

.surface-gradient--manager {
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.96) 0%, rgba(30, 64, 175, 0.92) 90%);
}

.surface-gradient--hr {
    background: linear-gradient(130deg, rgba(255, 87, 34, 0.96) 0%, rgba(30, 41, 59, 0.92) 90%);
}

.surface-gradient--employee {
    background: linear-gradient(135deg, rgba(255, 222, 173, 0.95) 0%, rgba(255, 87, 34, 0.92) 100%);
    color: rgba(15, 23, 42, 0.98);
}


.surface-gradient--department {
    background: linear-gradient(135deg, rgba(255, 228, 196, 0.95) 0%, rgba(255, 127, 80, 0.92) 100%);
    color: rgba(15, 23, 42, 0.98);
}

.surface-gradient.surface-gradient--department::before,
.surface-gradient.surface-gradient--department::after {
    opacity: 0.35;
}

.surface-gradient--department .chip--on-surface {
    background: rgba(255,255,255,0.7);
    color: rgba(15, 23, 42, 0.8);
    border-color: rgba(255,255,255,0.9);
}

.surface-gradient--country {
    background: linear-gradient(135deg, rgba(255, 250, 205, 0.95) 0%, rgba(255, 140, 0, 0.92) 100%);
    color: rgba(15, 23, 42, 0.98);
}

.surface-gradient.surface-gradient--country::before,
.surface-gradient.surface-gradient--country::after {
    opacity: 0.35;
}

.surface-gradient--country .chip--on-surface {
    background: rgba(255,255,255,0.7);
    color: rgba(15, 23, 42, 0.8);
    border-color: rgba(255,255,255,0.9);
}
.surface-gradient.surface-gradient--employee::before,
.surface-gradient.surface-gradient--employee::after {
    opacity: 0.35;
}

.dashboard-hero__primary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-hero__eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    opacity: 0.85;
}

.dashboard-hero__title {
    font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.dashboard-hero__subtitle {
    font-size: clamp(1rem, 0.95rem + 0.5vw, 1.2rem);
    margin: 0;
    max-width: 48ch;
    color: inherit;
    opacity: 0.92;
}

.dashboard-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip--on-surface {
    background: rgba(255,255,255,0.2);
    color: inherit;
    border-color: rgba(255,255,255,0.35);
}

.surface-gradient--employee .chip--on-surface {
    background: rgba(255,255,255,0.7);
    color: rgba(15, 23, 42, 0.8);
    border-color: rgba(255,255,255,0.9);
}

.dashboard-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.dashboard-hero__metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hero-metric .kpi-card {
    min-height: 180px;
}

/* Button treatments */
.btn-soft-light,
.btn-soft-dark,
.btn-soft-outline,
.btn-positive,
.btn-negative,
.btn-outline-positive,
.btn-outline-negative,
.btn-outline-light,
.btn-ghost,
.btn-ghost-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.55rem 1.4rem;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-soft-light {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}

.btn-soft-light:hover {
    background: rgba(255,255,255,0.32);
    transform: translateY(-1px);
}

.btn-soft-dark {
    background: rgba(15, 23, 42, 0.15);
    color: #fff;
    border-color: rgba(15, 23, 42, 0.25);
}

.btn-soft-dark:hover {
    background: rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}

.btn-soft-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-soft-outline:hover {
    background: rgba(255,255,255,0.2);
}

.btn-positive {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    color: #fff;
    border-color: rgba(16, 185, 129, 0.9);
}

.btn-negative {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: #fff;
    border-color: rgba(239, 68, 68, 0.9);
}

.btn-outline-positive {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
}

.btn-outline-negative {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
}

.btn-outline-light {
    color: #fff;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
}

.btn-ghost {
    color: var(--primary-500);
    background: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.btn-ghost:hover {
    color: var(--primary-600);
    box-shadow: 0 10px 20px rgba(255, 87, 34, 0.15);
}

.btn-ghost-danger {
    color: var(--danger-color);
    background: rgba(255, 241, 241, 0.94);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-ghost-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-dark);
}

/* Sections */
.dashboard-section {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 0.8rem + 0.8vw, 1.75rem);
}

.dashboard-section--split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.25rem, 1rem + 1.2vw, 2rem);
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-end;
}

.section-heading h2 {
    margin: 0;
    font-weight: 700;
}

.section-heading p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
}

.section-heading__meta {
    display: flex;
    gap: 0.5rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.badge-pill--mint { background: rgba(16, 185, 129, 0.12); color: var(--success-dark); }
.badge-pill--amber { background: rgba(245, 158, 11, 0.15); color: var(--warning-dark); }
.badge-pill--rose { background: rgba(244, 63, 94, 0.12); color: rgba(190, 18, 60, 1); }

/* Insight grid */
.insight-grid {
    display: grid;
    gap: clamp(1rem, 0.9rem + 1vw, 1.75rem);
}

.insight-grid--four {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.insight-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.insight-card,
.insight-panel {
    position: relative;
    border-radius: var(--border-radius-xl);
    background: rgba(255,255,255,0.9);
    padding: clamp(1.2rem, 1rem + 0.6vw, 1.8rem);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.insight-card__media {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
}

.gradient-peach { background: linear-gradient(135deg, #ffb680 0%, #ff7a40 100%); }
.gradient-citrus { background: linear-gradient(135deg, #facc15 0%, #f97316 100%); }
.gradient-forest { background: linear-gradient(135deg, #34d399 0%, #059669 100%); }
.gradient-slate { background: linear-gradient(135deg, #94a3b8 0%, #475569 100%); }
.gradient-rose { background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%); }
.gradient-mint { background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%); }

.insight-card__body .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.insight-card__body h3 {
    margin: 0;
    font-size: clamp(1.4rem, 1.25rem + 0.4vw, 1.8rem);
}

/* Insight panel variations */
.insight-panel header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.insight-panel__metric,
.insight-panel__stack,
.insight-panel__split {
    display: grid;
    gap: 0.75rem;
}

.insight-panel__metric {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.metric-value {
    font-weight: 700;
    font-size: 1.3rem;
}

.insight-progress {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.insight-progress__bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--primary-300), var(--primary-600));
    transition: width 0.4s ease;
}

.insight-panel footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

/* Card surfaces */
.panel.surface-card {
    background: rgba(255,255,255,0.95);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: clamp(1.25rem, 1rem + 1vw, 1.9rem);
}

.panel--accent {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 230, 0.95));
    border: 1px solid rgba(255, 225, 199, 0.6);
    box-shadow: 0 25px 60px -30px rgba(255, 87, 34, 0.35);
}

.panel__header,
.panel__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.panel__body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.scroll-shadow {
    position: relative;
}

.scroll-shadow::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%);
    pointer-events: none;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.profile-grid label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.profile-grid p {
    margin: 0.25rem 0 0;
    font-weight: 600;
}

/* Quick clock */
.quick-clock {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-clock__meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.quick-clock__badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.55), rgba(255, 94, 0, 0.85));
    color: #fff;
    box-shadow: var(--shadow-md);
    font-size: 1.25rem;
}

.quick-clock__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quick-clock__status {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.panel--quick-actions {
    text-align: center;
}

.panel--quick-actions .panel__header,
.panel--quick-actions .panel__body,
.panel--quick-actions .panel__footer {
    justify-content: center;
}

.panel--quick-actions .panel__header > div,
.panel--quick-actions .panel__body > * {
    max-width: 100%;
}

.panel--quick-actions .panel__body {
    align-items: center;
    gap: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
}

.panel--quick-actions .divider {
    width: min(420px, 100%);
    margin: 0 auto;
}

.panel--quick-actions .action-pill-grid {
    width: 100%;
}

.panel--quick-actions .action-pill {
    justify-content: center;
}

.quick-clock--highlight {
    position: relative;
    width: min(100%, 520px);
    padding: clamp(1.6rem, 1.3rem + 1vw, 2.4rem);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 235, 218, 0.92));
    border: 1px solid rgba(255, 168, 101, 0.45);
    box-shadow: 0 28px 60px -32px rgba(255, 120, 60, 0.55);
    overflow: hidden;
}

.quick-clock--highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 198, 124, 0.5), transparent 55%),
        radial-gradient(circle at 80% 30%, rgba(255, 123, 89, 0.4), transparent 50%),
        radial-gradient(circle at 50% 110%, rgba(255, 255, 255, 0.4), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.quick-clock--highlight > * {
    position: relative;
    z-index: 1;
}

.quick-clock--highlight .quick-clock__meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}

.quick-clock--highlight .quick-clock__badge {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    font-size: 1.8rem;
    box-shadow: 0 25px 55px -28px rgba(255, 120, 60, 0.7);
}

.quick-clock--highlight .quick-clock__meta h4 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.quick-clock--highlight .quick-clock__meta p {
    margin: 0;
    color: rgba(15, 23, 42, 0.68);
}

.quick-clock--highlight .quick-clock__actions {
    justify-content: center;
    gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
}

.quick-clock--highlight .quick-clock__actions .btn {
    min-width: 150px;
    font-weight: 600;
    box-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.45);
}

.quick-clock--highlight .quick-clock__status {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(15, 23, 42, 0.7);
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148,163,184,0.4), transparent);
}

.action-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.action-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.8);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(148,163,184,0.25);
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.action-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.45);
    color: var(--primary-600);
}

/* Tables */
.fancy-table {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.18);
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255,255,255,0.98);
}

.table-modern thead {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0));
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.table-modern th,
.table-modern td {
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid rgba(148,163,184,0.16);
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background: rgba(255, 249, 245, 0.8);
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-dot--success { background: rgba(16, 185, 129, 0.15); color: var(--success-dark); }
.status-dot--muted { background: rgba(148,163,184,0.16); color: var(--text-secondary); }
.status-dot--warning { background: rgba(245, 158, 11, 0.18); color: var(--warning-dark); }

.bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: var(--border-radius-xl);
    padding: 1.25rem;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(148,163,184,0.18);
    box-shadow: var(--shadow-md);
}

.team-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.85), rgba(30, 64, 175, 0.75));
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.team-card__body h4 {
    margin: 0;
}

/* Stack list */
.stack-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stack-list__item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-lg);
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(148,163,184,0.12);
}

.chip--soft-info { background: rgba(14, 165, 233, 0.16); color: rgba(14, 116, 144, 1); border-color: rgba(14, 165, 233, 0.35); }
.chip--soft-secondary { background: rgba(148, 163, 184, 0.2); color: rgba(71, 85, 105, 1); border-color: rgba(148, 163, 184, 0.35); }

.chip--status-approved { background: rgba(16, 185, 129, 0.18); color: var(--success-dark); border-color: rgba(16,185,129,0.4); }
.chip--status-pending { background: rgba(245, 158, 11, 0.16); color: var(--warning-dark); border-color: rgba(245,158,11,0.35); }
.chip--status-rejected { background: rgba(239, 68, 68, 0.18); color: var(--danger-dark); border-color: rgba(239,68,68,0.35); }

/* Responsive tweaks */
@media (max-width: 992px) {
    .surface-gradient {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .dashboard-hero__cta {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .dashboard-shell {
        padding: 1.25rem;
        gap: 1.5rem;
    }

    .panel__header,
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .bulk-actions {
        width: 100%;
    }

    .bulk-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .stack-list__item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   PROFILE PAGE SPECIFIC STYLES
   ======================================== */

/* Profile Hero Visual Section */
.profile-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.profile-hero-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.profile-picture-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-picture-large {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.profile-placeholder-large {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* QR Code Showcase */
.qr-code-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.qr-code-container {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--neutral-100);
}

.qr-code-image {
    width: 200px;
    height: 200px;
    display: block;
    border-radius: 8px;
}

.qr-code-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.qr-code-placeholder i {
    font-size: 4rem;
    color: var(--neutral-300);
    margin-bottom: 1rem;
}

.qr-code-placeholder p {
    margin: 0;
    font-size: 0.95rem;
}

/* Info Stack for Profile Details */
.info-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

.info-item p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Profile-specific responsive adjustments */
@media (max-width: 992px) {
    .dashboard-hero .profile-hero-visual {
        margin-top: 1.5rem;
    }

    .profile-picture-large,
    .profile-placeholder-large {
        width: 160px;
        height: 160px;
        font-size: 3rem;
    }

    .qr-code-image {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 767px) {
    .profile-hero-card {
        padding: 1rem;
    }

    .profile-picture-large,
    .profile-placeholder-large {
        width: 140px;
        height: 140px;
        font-size: 2.5rem;
        border-radius: 16px;
    }

    .qr-code-image {
        width: 140px;
        height: 140px;
    }

    .qr-code-container {
        padding: 1rem;
    }
}

/* ========================================
   ACCORDION STYLES (Custom Bootstrap JS Replacement)
   ======================================== */

/* Accordion collapse animation */
.accordion-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-collapse.show {
    max-height: 5000px; /* Large enough for any content */
    transition: max-height 0.35s ease;
}

/* Accordion button icon rotation */
.accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-button.collapsed::after {
    transform: rotate(0deg);
}

/* Performance Tabs Styling */
.performance-tabs-header {
    background-color: #f8f9fa;
}

.performance-tab-inactive {
    background-color: #ffffff !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    border-bottom: 1px solid #dee2e6 !important;
    font-weight: 500;
}

.performance-tab-inactive:hover {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-color: #adb5bd !important;
}

.nav-tabs .nav-link.active {
    background-color: #ffffff;
    border-color: #dee2e6 #dee2e6 #fff;
    color: var(--primary-500);
    font-weight: 600;
}

/* ============================================================================
   PHASE 8: MULTI-POSITION UI/UX COMPONENTS
   ============================================================================ */

/* Positions Panel Component */
.positions-panel {
    width: 100%;
}

.positions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.position-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.position-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.position-card--active {
    border-left: 3px solid var(--primary-500);
}

.position-card--ended {
    opacity: 0.75;
    border-left: 3px solid var(--neutral-300);
}

.position-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.position-card__type {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.position-card__body {
    margin-bottom: 1rem;
}

.position-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.position-card__department {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.position-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.position-card__details .detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.position-card__details .detail-item i {
    width: 16px;
    text-align: center;
}

.position-card__actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

/* Workload Bar Component */
.workload-bar-component {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.workload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.workload-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
}

.workload-value {
    text-align: center;
}

.workload-bar-container {
    position: relative;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

.workload-bar-bg {
    width: 100%;
    height: 32px;
    background: var(--neutral-100);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.workload-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    transition: width 0.5s ease;
    position: relative;
}

.workload-bar--success {
    background: linear-gradient(90deg, var(--success-light), var(--success-color));
}

.workload-bar--info {
    background: linear-gradient(90deg, var(--info-light), var(--info-color));
}

.workload-bar--warning {
    background: linear-gradient(90deg, var(--warning-light), var(--warning-color));
}

.workload-bar--danger {
    background: linear-gradient(90deg, var(--danger-light), var(--danger-color));
}

.workload-bar-label {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.workload-markers {
    position: relative;
    width: 100%;
    height: 30px;
    margin-top: 0.5rem;
}

.workload-marker {
    position: absolute;
    transform: translateX(-50%);
}

.workload-marker-line {
    width: 2px;
    height: 20px;
    background: var(--neutral-300);
}

.workload-marker-line--warning {
    background: var(--warning-color);
}

.workload-marker-line--danger {
    background: var(--danger-color);
}

.workload-marker-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 2px;
}

.workload-breakdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.workload-breakdown-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.workload-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
}

.workload-breakdown-type {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.workload-breakdown-value {
    font-weight: 600;
    color: var(--text-primary);
}

.workload-alerts {
    margin-top: 1rem;
}

.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Supervisor Timeline Component */
.supervisor-timeline {
    width: 100%;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-marker--active {
    border-color: var(--primary-500);
    background: var(--primary-500);
    color: white;
    box-shadow: 0 0 0 4px var(--primary-100);
}

.timeline-marker i {
    font-size: 0.5rem;
}

.timeline-content {
    margin-left: 1rem;
}

.timeline-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.timeline-item--active .timeline-card {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.timeline-card-header h6 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.timeline-card-body {
    font-size: 0.875rem;
}

.timeline-dates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.timeline-dates span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Org Chart Component */
.org-chart {
    width: 100%;
    overflow-x: auto;
}

.org-chart-header {
    margin-bottom: 1.5rem;
}

.org-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100%;
    padding: 1rem 0;
}

.org-chart-level {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.org-chart-level--center {
    margin: 2rem 0;
}

.org-chart-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.org-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 180px;
    min-height: 120px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.org-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.org-card--supervisor {
    border-color: var(--info-color);
}

.org-card--center {
    border-color: var(--primary-500);
    border-width: 3px;
    width: 200px;
    box-shadow: var(--shadow-md);
}

.org-card--report {
    border-color: var(--success-color);
}

.org-card-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: var(--primary-500);
    font-size: 0.75rem;
}

.org-card-header {
    padding: 1rem;
    text-align: center;
    font-size: 1.5rem;
    color: var(--neutral-500);
    border-bottom: 1px solid var(--border-light);
}

.org-card-header.bg-primary {
    background: var(--primary-500);
    color: white;
    border-bottom: none;
}

.org-card-body {
    padding: 1rem;
    text-align: center;
}

.org-card-body h6 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.org-card-body small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.org-card-edge-label {
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    font-size: 0.7rem;
    font-weight: 500;
}

.org-connector {
    width: 2px;
    height: 30px;
    margin: 0;
}

.org-connector--down {
    background: var(--border-color);
}

.org-connector--up {
    background: var(--border-color);
}

.org-edge--primary {
    background: var(--primary-500);
}

.org-edge--secondary {
    background: var(--info-color);
}

/* Approval Context Chips */
.approval-context-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Chip Component (reusable) */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 999px;
    white-space: nowrap;
}

.chip--primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.chip--secondary {
    background: var(--neutral-200);
    color: var(--neutral-700);
}

.chip--success {
    background: var(--success-light);
    color: var(--success-dark);
}

.chip--warning {
    background: var(--warning-light);
    color: var(--warning-dark);
}

.chip--danger {
    background: var(--danger-light);
    color: var(--danger-dark);
}

.chip--info {
    background: var(--info-light);
    color: var(--info-dark);
}

.chip--dark {
    background: var(--neutral-800);
    color: white;
}

.chip i {
    font-size: 0.875em;
}

/* Purple color for project roles */
.bg-purple, .badge.bg-purple {
    background-color: #9333ea !important;
    color: white;
}

.text-purple {
    color: #9333ea !important;
}

/* Responsive Design for Phase 8 Components */
@media (max-width: 768px) {
    .positions-grid {
        grid-template-columns: 1fr;
    }

    .org-chart-level {
        flex-direction: column;
        gap: 1rem;
    }

    .org-chart-node {
        width: 100%;
    }

    .org-card {
        width: 100%;
        max-width: 250px;
    }

    .workload-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1.5rem;
    }
}

/* Animation for Phase 8 components */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.positions-panel,
.workload-bar-component,
.supervisor-timeline,
.org-chart {
    animation: slideInUp 0.3s ease-out;
}

/* Loading states */
.phase8-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: var(--text-muted);
}

.phase8-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
