/* /* ============================================
   CENTRALIZED THEME CONFIGURATION
   ============================================ */

/* Theme Color Variables - Change these to update entire site theme */
@import '@fortawesome/fontawesome-free/css/all.css';
:root {
    /* Primary Colors */
    --primary-gradient: linear-gradient(135deg,  #d5f4f7 0%,  #00AEEF 100%);
    --primary-color: #bbf5c3;
    --primary-dark: #58fd89;
    --primary-light: #87cea2;
    
    /* Secondary Colors */
    --secondary-color: #f0f2f5;
    --secondary-dark: #e0e2e5;
    
    /* Background Colors */
    --light-bg: #f7f9fc;
    --card-bg: #ffffff;
    --hover-bg: #e6e6fa;
    
    /* Text Colors */
    --text-color: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #95a5a6;
    
    /* Border & Dividers */
    --border-color: #ddd;
    --border-light: #eee;
    
    /* Status Colors */
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f1c40f;
    --info-color: #3498db;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 15px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 20px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 8px rgba(72, 61, 139, 0.4);
    --shadow-primary-hover: 0 6px 12px rgba(72, 61, 139, 0.5);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 0.95rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-color);
    font-size: var(--font-size-base);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container-fluid {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

@media (min-width: 576px) {
    .container-fluid {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (min-width: 992px) {
    .container-fluid {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

.min-vh-100 {
    background-color: var(--light-bg) !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-primary { 
    color: var(--primary-color) !important; 
}

.text-muted {
    color: var(--primary-color) !important;
}

.bg-primary { 
    background: var(--primary-gradient) !important;

}

.border-primary { 
    border-color: var(--primary-color) !important; 
}

.border-start {
    border-left: 4px solid var(--primary-color) !important;
}

@media (min-width: 768px) {
    .border-start {
        border-left-width: 5px !important;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border: none;
    font-size: var(--font-size-base);
}

@media (min-width: 768px) {
    .btn {
        padding: 0.875rem 2rem;
    }
}

.btn-primary { 
    background: var(--primary-gradient);
    color: #198a84 !important;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-color);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--text-color);
    border-color: var(--text-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #27ae60;
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
    color: white;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    background: var(--card-bg);
    margin-bottom: 0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    font-weight: var(--font-weight-bold);
    padding: var(--spacing-md);
    background-color: var(--secondary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .card-header {
        padding: var(--spacing-lg);
    }
}

.card-header.bg-primary {
    background: var(--primary-gradient) !important;

    border-bottom: none;
}

.card-body {
    padding: var(--spacing-md);
}

@media (min-width: 768px) {
    .card-body {
        padding: var(--spacing-lg);
    }
}

@media (min-width: 992px) {
    .card-body {
        padding: var(--spacing-xl);
    }
}

.card-header h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .card-header h4 {
        font-size: 1.5rem;
    }
}

/* ============================================
   HEADER COMPONENTS
   ============================================ */

.app-header-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 15px rgba(72, 61, 139, 0.3);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .app-header-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
}

@media (min-width: 992px) {
    .app-header-card {
        padding: var(--spacing-xl);
    }
}

.app-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.app-header-card > * {
    position: relative;
    z-index: 1;
}

.header-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

@media (min-width: 576px) {
    .header-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 768px) {
    .header-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 992px) {
    .header-title {
        font-size: 2.5rem;
    }
}

.header-subtitle {
    opacity: 0.95;
    font-size: 0.95rem;
}

/* ============================================
   NAVIGATION PILLS
   ============================================ */

.nav-pills-prominent {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

@media (min-width: 768px) {
    .nav-pills-prominent {
        padding: 0.75rem;
        gap: 0.75rem;
    }
}

.nav-pills-prominent .nav-item {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-pills-prominent .nav-link {
    background: var(--secondary-color);
    color: var(--text-color);
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-size: 0.875rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .nav-pills-prominent .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

.nav-pills-prominent .nav-link:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.nav-pills-prominent .nav-link.active {
    background: var(--primary-gradient);
    /* color: rgb(25, 148, 31); */
  
    box-shadow: 0 4px 10px rgba(72, 61, 139, 0.4);
}

/* ============================================
   FORMS
   ============================================ */

.form-label {
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(106, 90, 205, 0.1);
    outline: none;
}

textarea.form-control {
    resize: vertical;
}

/* ============================================
   TABLES
   ============================================ */

.table-responsive {
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.table tbody tr {
    border-bottom: 1px solid var(--border-light);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafafa;
}

.table tbody tr:hover {
    background-color: var(--hover-bg);
    transition: background-color 0.2s ease;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    padding: 0.5em 0.8em;
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.bg-warning {
    background-color: var(--warning-color) !important;
    color: var(--text-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
    color: white !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
    color: white !important;
}

.bg-info {
    background-color: var(--info-color) !important;
    color: white !important;
}

.duration-badge {
    background: var(--primary-gradient) !important;
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.25rem;
    font-weight: var(--font-weight-medium);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ============================================
   MODALS
   ============================================ */

/* .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
} */

/* .modal-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--spacing-md);
} */

.modal-body {
    padding: var(--spacing-md);
}

.modal-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* ============================================
   LOADING SPINNERS
   ============================================ */

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

.spinner-border.text-primary {
    color: var(--primary-color) !important;
}

/* ============================================
   TAB CONTENT
   ============================================ */

.tab-content {
    padding-top: 0;
    margin-top: 0;
}

.tab-pane {
    padding-top: var(--spacing-md);
}

@media (min-width: 768px) {
    .tab-pane {
        padding-top: var(--spacing-lg);
    }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

.row.g-3,
.row.g-4 {
    --bs-gutter-y: 1rem;
}

/* Touch Friendly */
@media (max-width: 991.98px) {
    button,
    .btn,
    a.btn,
    select,
    input[type="date"] {
        min-height: 44px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .nav-pills-prominent,
    .btn,
    .modal {
        display: none !important;
    }
    
    .app-header-card {
        background: white !important;
        color: black !important;
    }

}


    .card {
        -radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        border: 1px solid var(--border-color) !important;
        transition: all 0.3s ease;
        background: white;
    }

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .card-header {
        font-weight: 700;
        border-bottom: 1px solid var(--border-color) !important;
        /* background: white !important; */
        padding: 1.25rem 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    /* ===== Enhanced Calendar Styling ===== */
    #calendar {
        max-width: 100%;
        margin: 0 auto;
        min-height: 500px;
        background: white;
    }

    .fc {
        font-family: inherit;
    }

    .fc-header-toolbar {
        padding: 1rem;
        background: white;
        border-radius: 8px;
        margin-bottom: 1rem !important;
        border: 1px solid var(--border-color);
    }

    .fc-button {
        background: white !important;
        border: 1px solid #065f46 !important;
        color: var(--primary-color) !important;
        border-radius: 6px !important;
        font-weight: 600 !important;
        padding: 0.5rem 1rem !important;
        transition: all 0.2s !important;
    }

    .fc-button:hover {
        background: var(--primary-color) !important;
        color: white !important;
    }

    .fc-button-active {
        background: linear-gradient(135deg,  #d5f4f7 0%,  #00AEEF 100%) !important;
        color: white !important;
    }

    .fc-daygrid-day {
        transition: all 0.2s;
    }

    .fc-daygrid-day:hover {
        background: rgba(99, 102, 241, 0.05);
    }

    .fc-col-header-cell {
        background:  #00AEEF;
        color: white !important;
        font-weight: 700;
        padding: 0.75rem !important;
        border: none !important;
        text-transform: uppercase;
        font-size: 0.8rem;
    }

    .fc-daygrid-day-number {
        padding: 6px;
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--text-primary);
    }

    .fc-day-today {
        background: rgba(99, 102, 241, 0.1) !important;
        border: 2px solid var(--primary-color) !important;
    }

    .fc-event {
        cursor: pointer;
        border-radius: 4px;
        padding: 2px 6px;
        transition: all 0.2s ease;
        border: none !important;
        font-weight: 600;
        margin: 1px 0;
        font-size: 0.8rem;
    }

    .fc-event:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .fc-timegrid-slot {
        height: 80px !important;
    }

    .fc-timegrid-slot-label {
        font-weight: 600;
        color: var(--text-secondary);
    }

    .fc .fc-col-header-cell-cushion {
        color: white;
    }


    /* Hide slots that aren't on 4-hour intervals */
    .fc-timegrid-slot[data-time]:not([data-time="00:00:00"]):not([data-time="04:00:00"]):not([data-time="08:00:00"]):not([data-time="12:00:00"]):not([data-time="16:00:00"]):not([data-time="20:00:00"]) .fc-timegrid-slot-label {
        display: none;
    }

    /* ===== Enhanced Timeline/Gantt Chart (Aligned Version) ===== */
    :root {
        --primary-color: #6366f1;
        --primary-dark: #4f46e5;
        --border-color: #e5e7eb;
        --hover-bg: #f9fafb;
        --text-primary: #111827;
        --text-secondary: #6b7280;
        --success-color: #10b981;
        --warning-color: #f59e0b;
        --info-color: #3b82f6;
    }

    /* --- Container --- */
    .gantt-container {
        overflow: hidden;
        border-radius: 12px;
        background: white;
        border: 1px solid var(--border-color);
    }

    /* --- Controls --- */
    .gantt-controls {
        background: white;
        padding: 1.25rem;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .timeline-nav-buttons {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .timeline-nav-buttons button {
        background: white;
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        border-radius: 6px;
        padding: 0.5rem 1rem;
        font-weight: 600;
        transition: all 0.2s;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .timeline-nav-buttons button:hover {
        background: var(--primary-color);
        color: white;
    }

    .timeline-period-display {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-primary);
        padding: 0.5rem 1.25rem;
        background: var(--hover-bg);
        border-radius: 6px;
        border: 1px solid var(--border-color);
    }

    /* --- Header (Fixed Top) --- */
    .gantt-header {
        display: flex;
        background: #00AEEF;
        border-bottom: 2px solid var(--primary-dark);
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .gantt-sidebar-header {
        width: 220px;
        min-width: 220px;
        padding: 1rem;
        font-weight: 700;
        
        color: white;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
    }

    .gantt-timeline-header {
        flex: 1;
        display: flex;
        overflow-x: hidden;
        /* Hide horizontal scroll, will sync with timeline */
        scrollbar-width: none;
    }

    .gantt-timeline-header::-webkit-scrollbar {
        display: none;
    }

    .gantt-timeline-header>div {
        min-width: 100px;
        flex-shrink: 0;
        padding: 1rem 0.75rem;
        text-align: center;
        border-right: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 0.85rem;
        color: white;
        font-weight: 700;
        white-space: nowrap;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .gantt-timeline-header>div .date-day {
        font-size: 1rem;
        font-weight: 800;
    }

    .gantt-timeline-header>div .date-month {
        font-size: 0.7rem;
        opacity: 0.9;
        text-transform: uppercase;
    }

    /* --- Body Layout (Scrollable Area) --- */
    .gantt-body {
        display: flex;
        max-height: 500px;
        overflow: hidden;
        /* Parent doesn't scroll */
        position: relative;
    }

    /* --- Sidebar (Fixed Left, Scrolls Vertically) --- */
    .gantt-sidebar {
        width: 220px;
        min-width: 220px;
        border-right: 1px solid var(--border-color);
        background: #fafafa;
        overflow-y: auto;
        /* Allow vertical scrolling */
        overflow-x: hidden;
        flex-shrink: 0;
        max-height: 500px;
    }

    .gantt-sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .gantt-sidebar::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 4px;
    }

    .gantt-sidebar::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }

    .gantt-sidebar::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }

    /* --- Timeline (Main Scrollable Area) --- */
    .gantt-timeline {
        flex: 1;
        position: relative;
        overflow: auto;
        /* This is the main scrollable container */
        background: white;
    }

    /* --- Rows (User + Timeline Alignment) --- */
    .gantt-row,
    .gantt-timeline-row {
        height: 60px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        transition: background 0.2s;
    }

    .gantt-row:hover,
    .gantt-timeline-row:hover {
        background: rgba(99, 102, 241, 0.05);
    }

    /* --- Sidebar User Info --- */
    .gantt-user-info {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 0 1rem;
    }

    .gantt-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.95rem;
        color: white;
        flex-shrink: 0;
        border: 2px solid white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .gantt-user-details {
        flex: 1;
        min-width: 0;
    }

    .gantt-user-name {
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px;
    }

    .gantt-user-status {
        font-size: 0.7rem;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* --- Timeline Bars --- */
    .gantt-timeline-row {
        position: relative;
        min-width: fit-content;
        /* Allow horizontal scrolling */
    }

    .gantt-bar {
        position: absolute;
        height: 42px;
        border-radius: 6px;
        padding: 6px 12px;
        font-size: 0.8rem;
        color: white;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        top: 14px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        cursor: pointer;
        transition: all 0.2s;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* Availability box that fits perfectly inside each calendar day cell */
    .gantt-availability {
        position: absolute;
        top: 6px;
        bottom: 6px;
        left: 0;
        right: 0;

        background: var(--availability-color, #4f46e5);
        border-radius: 6px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 0.75rem;
        font-weight: 600;
        color: white;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }

    /* Hover effect */
    .gantt-availability:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

    /* Prevent shrinking */
    .gantt-availability {
        min-width: 100%;
    }

    /* Smooth expand when clicked */
    .gantt-availability.expanded {
        z-index: 20;
        height: auto;
        padding: 10px 12px;
        white-space: normal;
        text-align: left;
        background: var(--availability-color, #4338ca);
    }

    .gantt-bar:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
        z-index: 10;
    }

    /* --- Bar Types --- */
    .gantt-bar.meeting {
        background: #3b82f6;
    }

    .gantt-bar.vacation {
        background: var(--success-color);
    }

    .gantt-bar.sick-leave {
        background: #ef4444;
    }

    .gantt-bar.work-from-home {
        background: var(--warning-color);
    }

    .gantt-bar.out-of-office {
        background: #8b5cf6;
    }

    .gantt-bar.busy {
        background: var(--warning-color);
    }

    .gantt-bar.leave {
        background: var(--info-color);
    }

    .gantt-bar.availability {
        background: var(--success-color);
    }

    .gantt-bar.project {
        background: var(--primary-color);
    }

    /* --- Empty State --- */
    .empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem 2rem;
        color: var(--text-secondary);
    }

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.4;
    }

    /* --- Scroll Styling --- */
    .gantt-timeline::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .gantt-timeline::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 4px;
    }

    .gantt-timeline::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }

    .gantt-timeline::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }

    /* ===== Responsive Design ===== */
    @media (max-width: 1200px) {

        .gantt-sidebar-header,
        .gantt-sidebar {
            width: 200px;
            min-width: 200px;
        }
    }

    @media (max-width: 992px) {

        .gantt-sidebar-header,
        .gantt-sidebar {
            width: 180px;
            min-width: 180px;
        }

        .gantt-timeline-header>div {
            min-width: 90px;
        }
    }

    @media (max-width: 768px) {

        .gantt-sidebar-header,
        .gantt-sidebar {
            width: 150px;
            min-width: 150px;
        }

        .gantt-timeline-header>div {
            min-width: 75px;
        }

        .gantt-row,
        .gantt-timeline-row {
            height: 60px;
        }

        .gantt-bar {
            height: 36px;
            top: 12px;
        }
    }

    /* ===== Enhanced Team Member Cards ===== */
    .team-members-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .team-member-card {
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 1.5rem;
        transition: all 0.3s;
        box-shadow: var(--shadow-sm);
    }

    .team-member-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
        border-color: var(--primary-color);
    }

    .member-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 1rem;
    }

    .member-avatar {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 1.3rem;
        color: white;
        position: relative;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        flex-shrink: 0;
        border: 3px solid white;
    }

    .status-indicator {
        position: absolute;
        bottom: 2px;
        right: 2px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 2px solid white;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .status-indicator.online {
        background-color: #10b981;
    }

    .status-indicator.offline {
        background-color: #9ca3af;
    }

    .member-info {
        flex: 1;
        min-width: 0;
    }

    .member-name {
        font-weight: 700;
        font-size: 1rem;
        color: var(--text-primary);
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .member-email {
        font-size: 0.8rem;
        color: var(--text-secondary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .member-status-label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 12px;
        margin-top: 4px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .member-status-label.online {
        background: #d1fae5;
        color: #065f46;
    }

    .member-status-label.offline {
        background: #e5e7eb;
        color: #6b7280;
    }

    .member-status-label i {
        font-size: 0.5rem;
    }

    .status-indicators {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .status-indicators .badge {
        padding: 6px 12px;
        font-weight: 700;
        font-size: 0.7rem;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s;
    }

    .status-indicators .badge:hover {
        transform: translateY(-1px);
    }

    .status-indicators .badge i {
        font-size: 0.8rem;
    }

    /* ===== Enhanced Filters & Buttons ===== */
    .form-select,
    .form-control {
        border-radius: 8px;
        border: 1px solid var(--border-color);
        transition: all 0.2s;
        padding: 0.65rem 0.9rem;
        font-weight: 500;
        background: white;
    }

    .form-select:focus,
    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

    .form-label {
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }

    .btn {
        border-radius: 8px !important;
        font-weight: 600 !important;
        transition: all 0.2s !important;
        padding: 0.65rem 1.1rem !important;
        border: none !important;
    }

    .btn-group .btn {
        margin-right: 12px;
        /* spacing between Calendar & Timeline */
    }

    .btn-group .btn:last-child {
        margin-right: 0;
        /* remove margin after last one */
    }

    .btn:focus {
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
    }

    .btn:hover {
        transform: translateY(-1px);
    }
/* 
    .btn-primary {
        background: var(--primary-color) !important;
    }

    .btn-primary:hover {
        background: var(--primary-dark) !important;
    } */

    .btn-success {
        background: var(--success-color) !important;
    }

    .btn-warning {
        background: var(--warning-color) !important;
    }

    .btn-info {
        background: var(--info-color) !important;
    }

    .btn-light {
        background: white !important;
        color: var(--primary-color) !important;
        border: 1px solid white !important;
    }

    .btn-light:hover {
        background: rgba(255, 255, 255, 0.9) !important;
    }

    /* ===== View Toggle ===== */
    .view-toggle-btn {
        transition: all 0.2s ease;
        border: 1px solid white !important;
        background: transparent !important;
    }

    .view-toggle-btn.active {
        background: white !important;
        color: var(--primary-color) !important;
    }

    /* ===== Enhanced Header Section ===== */
    .dashboard-header {
        background:linear-gradient(135deg,  #d5f4f7 0%,  #00AEEF 100%) ;
 color: #000;
        padding: 5.75rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    }

    .dashboard-header h5 {
        margin-bottom: 0.5rem;
        font-weight: 700;
        font-size: 1.4rem;
    }

    .dashboard-header small {
        opacity: 0.95;
        font-weight: 500;
    }

    /* ===== Empty State ===== */
    .empty-state {
        text-align: center;
        padding: 3rem 2rem;
        color: var(--text-secondary);
    }

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.4;
        color: var(--primary-color);
    }

    /* ===== Legend ===== */
    .legend-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.85rem;
        border-radius: 8px;
        transition: all 0.2s;
        background: white;
        border: 1px solid transparent;
    }

    .legend-item:hover {
        background: var(--hover-bg);
        border-color: var(--border-color);
    }

    .legend-badge {
        font-size: 0.85rem;
        padding: 6px 14px;
        border-radius: 6px;
        font-weight: 700;
        min-width: 90px;
        text-align: center;
    }

    /* ===== Online Counter Badge ===== */
    .online-counter {
        background: #d1fae5;
        color: #065f46;
        padding: 0.6rem 1.25rem;
        border-radius: 20px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.9rem;
        border: 1px solid #a7f3d0;
    }

    .online-counter i {
        font-size: 0.6rem;
    }

    /* ===== Responsive Design ===== */
    @media (max-width: 1200px) {

        .gantt-sidebar-header,
        .gantt-sidebar {
            width: 200px;
            min-width: 200px;
        }

        .team-members-grid {
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        }
    }

    @media (max-width: 992px) {

        .gantt-sidebar-header,
        .gantt-sidebar {
            width: 180px;
            min-width: 180px;
        }

        .gantt-timeline-header>div {
            min-width: 90px;
        }

        .team-members-grid {
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        }
    }

    @media (max-width: 768px) {

        .gantt-sidebar-header,
        .gantt-sidebar {
            width: 150px;
            min-width: 150px;
        }

        .gantt-timeline-header>div {
            min-width: 75px;
        }

        .team-members-grid {
            grid-template-columns: 1fr;
        }

        .dashboard-header {
            padding: 1.25rem;
        }

        .card-body {
            padding: 1rem;
        }

        .gantt-row {
            height: 60px;
        }

        .gantt-timeline-row {
            height: 60px;
        }

        .gantt-bar {
            height: 36px;
            top: 12px;
        }
    }

    /* ===== Scroll Styling ===== */
    .gantt-body::-webkit-scrollbar,
    .gantt-timeline::-webkit-scrollbar,
    .gantt-timeline-header::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .gantt-body::-webkit-scrollbar-track,
    .gantt-timeline::-webkit-scrollbar-track,
    .gantt-timeline-header::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 4px;
    }

    .gantt-body::-webkit-scrollbar-thumb,
    .gantt-timeline::-webkit-scrollbar-thumb,
    .gantt-timeline-header::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }

    .gantt-body::-webkit-scrollbar-thumb:hover,
    .gantt-timeline::-webkit-scrollbar-thumb:hover,
    .gantt-timeline-header::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }

    /* ===== Modal Enhancements ===== */
    /* .modal-content {
        border-radius: 12px;
        border: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    } */

    .modal-header {
       background: linear-gradient(135deg,  #d5f4f7 0%,  #00AEEF 100%) !important;
        color: rgb(23, 124, 131);
        border-bottom: none;
        padding: 1.25rem 1.5rem;

    }

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
    }

    .modal-header .btn-close:hover {
        opacity: 1;
    }

    .modal-title {
        font-weight: 700;
        font-size: 1.15rem;
    }

    .modal-body {
        padding: 1.75rem;
    }

    .modal-footer {
        border-top: 1px solid var(--border-color);
        padding: 1rem 1.5rem;
        background: #fafafa;
    }

    .nav-pills .nav-link {
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.2s;
        border: 1px solid transparent;
    }

    .nav-pills .nav-link:hover {
        background: rgba(99, 102, 241, 0.1);
        border-color: var(--primary-color);
    }

    .nav-pills .nav-link.active {
         background: linear-gradient(135deg,  #d5f4f7 0%,  #00AEEF 100%) !important;
    }

    /* ===== Additional Enhancements ===== */
    .badge {
        border-radius: 6px;
        font-weight: 700;
    }

    .bg-success {
        background: var(--success-color) !important;
    }

    .bg-warning {
        background: var(--warning-color) !important;
    }

    .bg-info {
        background: var(--info-color) !important;
    }

    .bg-primary {
        background: var(--primary-color) !important;
    }

    /* ===== Responsive Fix for Calendar Top Controls ===== */
    @media (max-width: 768px) {

        /* Wrap the top controls neatly */
        .fc-toolbar.fc-header-toolbar {
            flex-direction: column !important;
            align-items: stretch !important;
            gap: 0.5rem;
        }

        /* Each section (left, center, right) takes full width */
        .fc-toolbar-chunk {
            width: 100% !important;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.4rem;
        }

        /* Make buttons smaller and wrap nicely */
        .fc .fc-button {
            font-size: 0.85rem !important;
            padding: 0.3rem 0.6rem !important;
            flex: 1 1 auto;
        }

        /* Center the title and reduce font size */
        .fc-toolbar-title {
            font-size: 1rem !important;
            text-align: center !important;
            width: 100%;
            margin: 0.3rem 0 !important;
        }

        /* Reduce gaps between toolbar elements */
        .fc-toolbar-chunk:not(:last-child) {
            margin-bottom: 0.25rem;
        }

        /* Prevent overflow of button groups */
        .fc-button-group {
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.3rem;
        }
    }

    /* Extra small screens (phones under 480px) */
    @media (max-width: 480px) {
        .fc-toolbar-title {
            font-size: 0.9rem !important;
        }

        .fc .fc-button {
            font-size: 0.75rem !important;
            padding: 0.25rem 0.5rem !important;
        }
    }

    /* ===== Responsive Fix for Timeline Navigation Buttons ===== */
    @media (max-width: 768px) {
        .timeline-nav-buttons {
            flex-wrap: wrap;
            justify-content: center;
            width: 100%;
        }

        .timeline-nav-buttons button {
            flex: 1 1 30%;
            min-width: 90px;
            font-size: 0.85rem;
            padding: 0.4rem 0.6rem;
            justify-content: center;
        }

        .timeline-period-display {
            width: 100%;
            text-align: center;
            margin-top: 0.5rem;
            font-size: 0.9rem;
        }

        .gantt-controls {
            flex-direction: column;
            align-items: stretch;
            gap: 0.6rem;
            text-align: center;
        }
    }
     .sprint-card {
            background: #ffffff;
            border-radius: 12px;
            overflow: hidden;
            position: relative;

            /* Smooth modern hover shadow */
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        }

        .sprint-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12) !important;
        }

        /* Left Color Bar */
        .sprint-card-bar {
            position: absolute;
            top: 0;
            left: 0;
            width: 6px;
            /* slightly thicker for premium look */
            height: 100%;
            border-radius: 0 4px 4px 0;
        }

        /* Card Body Improvements */
        .sprint-card .card-body {
            padding: 1rem 1.25rem;
        }

        /* Title improvements */
        .sprint-card h6 {
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: -0.2px;
        }

        /* Short description */
        .sprint-card p {
            font-size: 0.85rem;
            line-height: 1.3;
            color: #6c757d;
        }

        /* Status badge (compact) */
        .status-badge-compact {
            padding: 4px 8px;
            font-size: 0.72rem;
            border-radius: 6px;
            font-weight: 600;
        }

        /* Timeline row items */
        .sprint-card .small {
            font-size: 0.8rem !important;
        }

        /* Team section */
        .sprint-card .border-top {
            border-color: #e9ecef !important;
        }

        /* Buttons inside */
        .sprint-card .btn-group .btn {
            font-size: 0.78rem;
            padding: 6px 10px;
        }

        /* -----------------------------
   RESPONSIVENESS
   ----------------------------- */

        /* Medium screens */
        @media (max-width: 992px) {
            .sprint-card {
                border-radius: 10px;
            }
        }

        /* Tablets */
        @media (max-width: 768px) {
            .sprint-card .card-body {
                padding: 1rem;
            }

            .sprint-card h6 {
                font-size: 0.95rem;
            }
        }

        /* Mobile screens */
        @media (max-width: 576px) {
            .sprint-card {
                border-radius: 8px;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
            }

            .sprint-card h6 {
                font-size: 0.9rem;
            }

            .sprint-card .small {
                font-size: 0.75rem !important;
            }

            .sprint-card .btn-group .btn {
                font-size: 0.72rem;
                padding: 5px 8px;
            }
        }
   

    /* Extra small devices */
    @media (max-width: 480px) {
        .timeline-nav-buttons button {
            flex: 1 1 45%;
            font-size: 0.75rem;
            padding: 0.3rem 0.5rem;
        }

        .timeline-period-display {
            font-size: 0.8rem;
        }
    }

    .card {
        border: none;
        border-radius: 1.25rem !important;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    }

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    }

    .card-header {
        font-weight: 700;
        padding: 1rem 1.5rem;
        background-color: var(--secondary-color);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .card-body {
        padding: 1.5rem 1.5rem;
    }
    
    .bg-theme {
        background: var(--primary-gradient) !important;
   
        /* color: white !important; */
    }

    /* ===== Clock Display ===== */
    #currentTime {
        font-weight: 800;
        font-size: 3rem;
        color: var(--primary-color);
        letter-spacing: -1px;
    }
    
    #workDuration h6 {
        font-weight: 600;
        color: var(--text-color);
    }

    #durationDisplay {
        font-weight: 700;
        color: var(--primary-color);
    }

    /* ===== Buttons ===== */
    .btn {
        border-radius: 0.75rem;
        font-weight: 600;
        padding: 0.75rem 1.5rem;
        transition: all 0.2s ease;
        border: none;
    }

    .btn-success {
        background-color: #2ecc71;
    }
    .btn-danger {
        background-color: #e74c3c;
    }
    .btn-warning {
        background-color: #f1c40f;
    }

    .btn-theme-primary {
        background: var(--primary-gradient);
        color: rgb(31, 115, 121);
        box-shadow: 0 4px 8px rgba(72, 61, 139, 0.4);
    }
    .btn-theme-primary:hover {
        opacity: 0.9;
    }

    /* ===== Table ===== */
    .table thead th {
        background-color: var(--secondary-color);
        font-weight: 700;
        color: var(--primary-color);
        border-bottom: 3px solid var(--primary-color);
        text-transform: uppercase;
        font-size: 0.85rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .table-striped tbody tr:nth-of-type(odd) {
        background-color: #fafafa;
    }
    
    .table tbody tr {
        border-bottom: 1px solid #eee;
    }
    
    .table tbody tr:hover {
        background-color: #e6e6fa;
        transition: background-color 0.2s ease;
    }

    .form-control, .form-select {
        border-radius: 0.75rem;
        border-color: #ddd;
    }

    .badge {
        padding: 0.5em 0.8em;
        font-size: 0.8em;
        font-weight: 700;
        border-radius: 0.5rem;
    }

    .min-vh-100 {
        background-color: #f7f9fc !important;
    }

    #todayStats h4 {
        font-size: 1.8rem;
        font-weight: 800;
    }
    #todayHours {
        color: var(--primary-color);
    }
    #weekHours {
        color: #1abc9c;
    }
    
    #teamStatusList {
        max-height: 400px;
        overflow-y: auto;
        padding-right: 0.5rem;
    }

    /* Modal Styles */
    .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background: white;
        border-radius: 1rem;
        /* padding: 2rem; */
        max-width: 800px;
        width: 100%;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
      .task-item {
                    border: 1px solid #e0e0e0;
                    border-radius: 8px;
                    padding: 12px;
                    margin-bottom: 10px;
                    transition: all 0.2s ease;
                    background: white;
                }

                .task-item:hover {
                    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
                    transform: translateY(-2px);
                }

                .task-item.completed {
                    background-color: #f0f8f0;
                    border-color: #28a745;
                }

                .task-item.completed .task-title {
                    text-decoration: line-through;
                    color: #6c757d;
                }

                .task-title {
                    font-weight: 600;
                    margin-bottom: 4px;
                    color: #2c3e50;
                }

                .task-description {
                    font-size: 0.9rem;
                    color: #666;
                    margin-bottom: 8px;
                }

                .task-meta {
                    font-size: 0.8rem;
                    color: #999;
                }

                .task-actions {
                    display: flex;
                    gap: 8px;
                }

                .task-actions .btn {
                    padding: 4px 12px;
                    font-size: 0.85rem;
                }
             
.super-admin-dashboard {
    background: linear-gradient(135deg,  #d5f4f7 0%,  #00AEEF 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.dashboard-header-super {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.dashboard-header h1 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.dashboard-header .subtitle {
    color: #64748b;
    font-size: 1.125rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--card-color);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: var(--card-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.quick-actions {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.quick-actions h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.action-btn:hover {
    transform: translateY(-3px);
    border-color: #667eea;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
}

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg,  #d5f4f7 0%,  #00AEEF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.action-label {
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.recent-activity {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recent-activity h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.activity-item {
    padding: 1rem;
    border-left: 4px solid;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.activity-item.role-super-admin { border-left-color: #dc3545; }
.activity-item.role-admin { border-left-color: #ffc107; }
.activity-item.role-hr { border-left-color: #28a745; }
.activity-item.role-manager { border-left-color: #17a2b8; }

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.activity-user {
    font-weight: 600;
    color: #1e293b;
}

.activity-time {
    color: #64748b;
    font-size: 0.875rem;
}

.activity-details {
    color: #475569;
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
}

.roles-page {
    background:linear-gradient(135deg,  #d5f4f7 0%,  #00AEEF 100%) !important;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.page-header {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 4px solid;
}

.stat-card.super-admin { border-left-color: #dc3545; }
.stat-card.admin { border-left-color: #ffc107; }
.stat-card.hr { border-left-color: #28a745; }
.stat-card.manager { border-left-color: #17a2b8; }
.stat-card.user { border-left-color: #6c757d; }

.role-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.user-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.role-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.change-role-btn {
    width: 100%;
    margin-top: 1rem;
}

    .departments-page {
        background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
        min-height: 100vh;
    }

    /* Page Header */
    .page-header {
        background: var(--primary-gradient);
        border-radius: 16px;
        padding: 2rem;
        color: rgb(21, 124, 150);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
        position: relative;
        overflow: hidden;
    }

    .page-header::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(30%, -30%);
    }

    .header-content {
        position: relative;
        z-index: 1;
    }

    .page-title {
        font-size: clamp(1.5rem, 4vw, 2.25rem);
        font-weight: 700;
        margin: 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .page-subtitle {
        font-size: clamp(0.875rem, 2vw, 1rem);
        opacity: 0.95;
    }

    .header-actions {
        position: relative;
        z-index: 1;
    }

    .btn-primary-custom {
        background: white;
        color: var(--primary-color);
        border: 2px solid white;
        padding: 0.75rem 1.5rem;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .btn-primary-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        background: white;
        color: var(--secondary-color);
    }

    /* Custom Alerts */
    .alert-success-custom,
    .alert-danger-custom {
        border: none;
        border-radius: 12px;
        padding: 1rem 1.25rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        box-shadow: var(--card-shadow);
    }

    .alert-success-custom {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        color: #065f46;
    }

    .alert-danger-custom {
        background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
        color: #991b1b;
    }

    .alert-icon {
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .alert-content {
        flex: 1;
    }

    /* Search Box */
    .search-box {
        position: relative;
        background: white;
        border-radius: 12px;
        box-shadow: var(--card-shadow);
        border: 2px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .search-box:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    }

    .search-icon {
        position: absolute;
        left: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-secondary);
        font-size: 1.125rem;
        z-index: 1;
    }

    .search-input {
        border: none;
        padding: 0.875rem 1.25rem 0.875rem 3.25rem;
        font-size: 0.9375rem;
        background: transparent;
    }

    .search-input:focus {
        box-shadow: none;
        outline: none;
    }

    /* Stats Badge */
    .stats-badge {
        background: white;
        border-radius: 12px;
        padding: 1.25rem;
        box-shadow: var(--card-shadow);
        border: 2px solid var(--border-color);
        display: flex;
        align-items: center;
        gap: 1rem;
        height: 100%;
    }

    .stats-icon {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        background: var(--primary-gradient);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .stats-content {
        flex: 1;
    }

    .stats-label {
        font-size: 0.8125rem;
        color: var(--text-secondary);
        font-weight: 500;
        margin-bottom: 0.25rem;
    }

    .stats-value {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    /* Content Card */
    .content-card {
        background: white;
        border-radius: 16px;
        box-shadow: var(--card-shadow);
        border: 1px solid var(--border-color);
        overflow: hidden;
    }

    /* Empty State */
    .empty-state {
        text-align: center;
        padding: 4rem 2rem;
    }

    .empty-state-icon {
        font-size: 5rem;
        color: var(--border-color);
        margin-bottom: 1.5rem;
    }

    .empty-state-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0.75rem;
    }

    .empty-state-text {
        font-size: 1rem;
        color: var(--text-secondary);
        max-width: 500px;
        margin: 0 auto;
    }

    /* Departments Grid */
    .departments-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .department-card {
        background: white;
        border: 2px solid var(--border-color);
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }

    .department-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--card-shadow-hover);
        border-color: var(--primary-color);
    }

    .department-card-header {
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .department-info {
        display: flex;
        gap: 1rem;
    }

    .department-color-indicator {
        width: 4px;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .department-details {
        flex: 1;
        min-width: 0;
    }

    .department-name {
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 0.5rem 0;
        line-height: 1.3;
    }

    .department-description {
        font-size: 0.875rem;
        color: var(--text-secondary);
        margin: 0;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .department-card-body {
        padding: 1.25rem 1.5rem;
        flex: 1;
    }

    .department-stat {
        display: flex;
        align-items: center;
        gap: 0.875rem;
        background: var(--bg-light);
        padding: 1rem;
        border-radius: 10px;
    }

    .stat-icon-small {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: var(--primary-gradient);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .stat-info {
        flex: 1;
    }

    .stat-value-small {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        line-height: 1;
        margin-bottom: 0.25rem;
    }

    .stat-label-small {
        font-size: 0.75rem;
        color: var(--text-secondary);
        font-weight: 500;
    }

    .department-card-footer {
        padding: 1rem 1.5rem;
        background: var(--bg-light);
        display: flex;
        gap: 0.75rem;
        border-top: 1px solid var(--border-color);
    }

    .btn-edit-custom,
    .btn-delete-custom {
        flex: 1;
        padding: 0.625rem 1rem;
        border-radius: 8px;
        font-size: 0.875rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        border: 2px solid;
    }

    .btn-edit-custom {
        background: linear-gradient(135deg, rgb(118, 121, 124) 0%, rgb(236, 238, 240) 100%);
        border-color: #155993ff;
        color: #ffffffff;
    }

    .btn-edit-custom:hover {
        background: linear-gradient(135deg, #085599ff 0%, #155993ff 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(36, 133, 251, 0.3);
        color: #fff !important;
    }

    .btn-delete-custom {
        background: linear-gradient(135deg,  #d5f4f7 0%,  #00AEEF 100%);
        border-color: #f7f7f7;
        color: #ffffffff;
    }

    .btn-delete-custom:hover {
        background: linear-gradient(135deg, #8f1f1fff 0%, #a12b2bff 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(232, 58, 58, 0.3);
        color: #fff !important;
    }

    /* Table View Styles */
    .custom-table {
        width: 100%;
    }

    .custom-table thead {
        background: var(--bg-light);
    }

    .custom-table th {
        padding: 1rem 1.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-secondary);
        border-bottom: 2px solid var(--border-color);
    }

    .custom-table td {
        padding: 1rem 1.5rem;
        vertical-align: middle;
        border-bottom: 1px solid var(--border-color);
    }

    .custom-table tbody tr {
        transition: background 0.2s;
    }

    .custom-table tbody tr:hover {
        background: var(--bg-light);
    }

    .table-department-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .table-color-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .table-actions {
        display: flex;
        gap: 0.5rem;
        justify-content: flex-end;
    }

    .btn-edit-icon,
    .btn-delete-icon {
        width: 32px;
        height: 32px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        border: none;
        transition: all 0.2s ease;
    }

    .btn-edit-icon {
        background: #fef3c7;
        color: #92400e;
    }

    .btn-edit-icon:hover {
        background: #fde68a;
        transform: scale(1.1);
    }

    .btn-delete-icon {
        background: #fecaca;
        color: #991b1b;
    }

    .btn-delete-icon:hover {
        background: #fca5a5;
        transform: scale(1.1);
    }

    /* Badge Styles */
    .badge-custom {
        display: inline-flex;
        align-items: center;
        padding: 0.375rem 0.75rem;
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1;
    }

    .badge-custom.badge-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }

    .badge-info {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        color: #1e40af;
    }

    /* Responsive Design */
    @media (max-width: 991.98px) {
        .page-header {
            padding: 1.5rem;
        }

        .departments-grid {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
            padding: 1rem;
        }
    }

    @media (max-width: 575.98px) {
        .page-header {
            padding: 1.25rem;
            border-radius: 12px;
        }

        .btn-action-add span {
            display: none;
        }

        .btn-action-add i {
            margin: 0 !important;
        }

        .departments-grid {
            grid-template-columns: 1fr;
        }

        .stats-badge {
            padding: 1rem;
        }

        .stats-icon {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }

        .stats-value {
            font-size: 1.5rem;
        }
    }


    .admin-dashboard {
        background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
        min-height: 100vh;
    }

    /* Header Section */
    .dashboard-header {
        background: var(--primary-gradient);
        border-radius: 16px;
        padding: 2rem;
        color: rgb(3, 0, 0);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
        position: relative;
        overflow: hidden;
    }

    .dashboard-header::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(30%, -30%);
    }

    .header-content {
        position: relative;
        z-index: 1;
    }

    .dashboard-title {
        font-size: clamp(1.5rem, 4vw, 2.25rem);
        font-weight: 700;
    
        margin: 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .dashboard-subtitle {
        font-size: clamp(0.875rem, 2vw, 1rem);
        opacity: 0.95;
    }

    .header-actions {
        position: relative;
        z-index: 1;
    }

    .btn-action {
        padding: 0.625rem 1.25rem;
        border-radius: 10px;
        font-weight: 500;
        transition: all 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.3);
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

    .btn-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .btn-light.btn-action {
        background: white;
        color: var(--primary-color);
        border-color: white;
    }

    .btn-outline-light.btn-action:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: white;
    }

    /* Stat Cards */
    .stat-card {
        background: white;
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: var(--card-shadow);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100%;
        border: 1px solid var(--border-color);
        position: relative;
        overflow: hidden;
    }

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100px;
        height: 100px;
        background: currentColor;
        opacity: 0.05;
        border-radius: 50%;
        transform: translate(30%, -30%);
    }

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--card-shadow-hover);
    }

    .stat-card-inner {
        position: relative;
        z-index: 1;
    }

    .stat-icon-wrapper {
        margin-bottom: 1rem;
    }

    .stat-icon {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: white;
        background: var(--primary-gradient);
        box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
    }

    .stat-card-primary { color: var(--primary-color); }
    .stat-card-primary .stat-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

    .stat-card-warning { color: var(--warning-color); }
    .stat-card-warning .stat-icon { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }

    .stat-card-success { color: var(--success-color); }
    .stat-card-success .stat-icon { background: linear-gradient(135deg, #34d399 0%, #10b981 100%); }

    .stat-card-info { color: var(--info-color); }
    .stat-card-info .stat-icon { background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%); }

    .stat-number {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
        font-weight: 700;
        margin: 0 0 0.25rem 0;
        color: var(--text-primary);
        line-height: 1.2;
    }

    .stat-label {
        margin: 0;
        color: var(--text-secondary);
        font-size: 0.875rem;
        font-weight: 500;
    }

    .stat-action-btn {
        display: inline-flex;
        align-items: center;
        margin-top: 0.75rem;
        padding: 0.375rem 0.75rem;
        background: currentColor;
        color: white;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s;
        opacity: 0.9;
    }

    .stat-action-btn:hover {
        opacity: 1;
        transform: translateX(2px);
    }

    /* Content Cards */
    .content-card {
        background: white;
        border-radius: 16px;
        box-shadow: var(--card-shadow);
        border: 1px solid var(--border-color);
        overflow: hidden;
        height: 100%;
    }

    .content-card-header {
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
        background: linear-gradient(to bottom, #fafafa, white);
    }

    .content-card-header.header-warning {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border-bottom-color: #fbbf24;
    }

    .content-card-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        display: flex;
        align-items: center;
    }

    .content-card-body {
        padding: 1.5rem;
    }

    .loading-state {
        text-align: center;
        padding: 3rem 1rem;
    }

    /* Stat Items */
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.875rem 0;
    }

    .stat-item:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
    }

    .stat-item-label {
        font-size: 0.875rem;
        color: var(--text-secondary);
        font-weight: 500;
    }

    /* Custom Badges */
    .badge-custom {
        display: inline-flex;
        align-items: center;
        padding: 0.375rem 0.75rem;
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1;
    }

    .badge-custom.badge-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }

    .badge-primary {
        background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
        color: var(--primary-color);
    }

    .badge-warning {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        color: #92400e;
    }

    .badge-success {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        color: #065f46;
    }

    .badge-danger {
        background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
        color: #991b1b;
    }

    .badge-info {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        color: #1e40af;
    }

    /* Pending List */
    .pending-list {
        max-height: 400px;
        overflow-y: auto;
    }

    .pending-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        gap: 1rem;
        transition: background 0.2s;
    }

    .pending-item:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
    }

    .pending-item:hover {
        background: var(--bg-light);
    }

    .pending-info {
        flex: 1;
        min-width: 0;
    }

    .pending-name {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .pending-email {
        font-size: 0.75rem;
        color: var(--text-secondary);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Custom Table */
    .custom-table {
        width: 100%;
    }

    .custom-table thead {
        background: var(--bg-light);
    }

    .custom-table th {
        padding: 1rem 1.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-secondary);
        border-bottom: 2px solid var(--border-color);
    }

    .custom-table td {
        padding: 1rem 1.5rem;
        vertical-align: middle;
        border-bottom: 1px solid var(--border-color);
    }

    .custom-table tbody tr {
        transition: background 0.2s;
    }

    .custom-table tbody tr:hover {
        background: var(--bg-light);
    }

    .user-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        object-fit: cover;
        border: 2px solid var(--border-color);
        flex-shrink: 0;
    }

    .user-details {
        min-width: 0;
    }

    .user-name {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .department-badge {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 500;
    }

    /* Hierarchy Styles */
    .hierarchy-node {
        background: white;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        transition: all 0.3s ease;
    }

    .hierarchy-node:hover {
        border-color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }

    .hierarchy-node.manager {
        border-color: var(--primary-color);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    }

    .hierarchy-children {
        margin-left: 1.5rem;
        border-left: 2px dashed var(--border-color);
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    /* Responsive Utilities */
    @media (max-width: 991.98px) {
        .dashboard-header {
            padding: 1.5rem;
        }

        .stat-card {
            padding: 1.25rem;
        }

        .stat-icon {
            width: 48px;
            height: 48px;
            font-size: 1.25rem;
        }

        .content-card-header,
        .content-card-body {
            padding: 1rem;
        }

        .custom-table th,
        .custom-table td {
            padding: 0.75rem 1rem;
        }

        .pending-item {
            padding: 0.875rem 1rem;
        }
    }

    @media (max-width: 575.98px) {
        .dashboard-header {
            padding: 1.25rem;
            border-radius: 12px;
        }

        .stat-card {
            padding: 1rem;
        }

        .stat-number {
            font-size: 1.5rem;
        }

        .user-avatar {
            width: 32px;
            height: 32px;
        }

        .btn-action span {
            display: none;
        }

        .btn-action i {
            margin: 0 !important;
        }
    }

    /* Scrollbar Styling */
    .pending-list::-webkit-scrollbar {
        width: 6px;
    }

    .pending-list::-webkit-scrollbar-track {
        background: var(--bg-light);
    }

    .pending-list::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 3px;
    }

    .pending-list::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary);
    }

                /* Enhanced Header Section Styling - Fully Responsive */
                .header-section {
                    background: var(--primary-gradient);
                    
                    padding: 1.5rem;
                    border-radius: 16px;
                    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3),
                        0 4px 12px rgba(118, 75, 162, 0.2);
                    position: relative;
                    overflow: hidden;
                    border: none;
                }

                @media (min-width: 768px) {
                    .header-section {
                        padding: 2rem;
                        border-radius: 20px;
                    }
                }

                /* Decorative Background Elements */
                .header-section::before {
                    content: '';
                    position: absolute;
                    top: -50%;
                    right: -10%;
                    width: 500px;
                    height: 500px;
                    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
                    border-radius: 50%;
                    pointer-events: none;
                }

                .header-section::after {
                    content: '';
                    position: absolute;
                    bottom: -30%;
                    left: -5%;
                    width: 400px;
                    height: 400px;
                    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
                    border-radius: 50%;
                    pointer-events: none;
                }

                /* Ensure content is above decorative elements */
                .header-section>* {
                    position: relative;
                    z-index: 1;
                }

                /* Page Title Styling */
                .page-title {
                    font-size: 1.5rem;
                    font-weight: 800;
                    color: #000;
                    margin: 0;
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    gap: 0.5rem;
                    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                    line-height: 1.3;
                }

                @media (min-width: 576px) {
                    .page-title {
                        font-size: 1.75rem;
                        gap: 0.625rem;
                    }
                }

                @media (min-width: 768px) {
                    .page-title {
                        font-size: 2rem;
                        gap: 0.75rem;
                    }
                }

                @media (min-width: 992px) {
                    .page-title {
                        font-size: 2.25rem;
                    }
                }

                .page-title i {
                    font-size: 1em;
                }

                /* Enhanced Badge Styling */
                .page-title .badge {
                    font-size: 0.7rem;
                    padding: 0.375rem 0.75rem;
                    font-weight: 700;
                    border-radius: 10px;
                    background: rgba(255, 255, 255, 0.95) !important;
                    color: #667eea !important;
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
                    backdrop-filter: blur(10px);
                    display: inline-flex;
                    align-items: center;
                    transition: all 0.3s ease;
                }

                @media (min-width: 576px) {
                    .page-title .badge {
                        font-size: 0.8rem;
                        padding: 0.4rem 0.875rem;
                        border-radius: 11px;
                    }
                }

                @media (min-width: 768px) {
                    .page-title .badge {
                        font-size: 0.875rem;
                        padding: 0.5rem 1rem;
                        border-radius: 12px;
                    }
                }

                .page-title .badge:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
                }

                /* Pending Badge Styling */
                .badge-pending {
                    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
                    color: #92400e !important;
                    padding: 0.375rem 0.75rem;
                    border-radius: 10px;
                    font-size: 0.7rem;
                    font-weight: 700;
                    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
                    display: inline-flex;
                    align-items: center;
                }

                @media (min-width: 576px) {
                    .badge-pending {
                        font-size: 0.8rem;
                        padding: 0.4rem 0.875rem;
                        border-radius: 11px;
                    }
                }

                @media (min-width: 768px) {
                    .badge-pending {
                        font-size: 0.875rem;
                        padding: 0.5rem 1rem;
                        border-radius: 12px;
                    }
                }

                /* Pulse Animation */
                .pulse {
                    animation: pulse-effect 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
                }

                @keyframes pulse-effect {

                    0%,
                    100% {
                        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
                        transform: scale(1);
                    }

                    50% {
                        box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
                        transform: scale(1.05);
                    }
                }

                /* Page Subtitle */
                .page-subtitle {
                    font-size: 0.8125rem;
                color:#000;
                    font-weight: 500;
                    line-height: 1.6;
                    margin-top: 0.5rem;
                }

                @media (min-width: 576px) {
                    .page-subtitle {
                        font-size: 0.875rem;
                    }
                }

                @media (min-width: 768px) {
                    .page-subtitle {
                        font-size: 0.9375rem;
                    }
                }

                @media (min-width: 992px) {
                    .page-subtitle {
                        font-size: 1rem;
                    }
                }

                /* Enhanced Button Styling */
                .header-section .btn {
                    padding: 0.625rem 0.875rem;
                    border-radius: 10px;
                    font-weight: 600;
                    font-size: 0.8125rem;
                    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                    border: 2px solid;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    gap: 0.4rem;
                    position: relative;
                    overflow: hidden;
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
                    backdrop-filter: blur(10px);
                    white-space: nowrap;
                }

                @media (min-width: 576px) {
                    .header-section .btn {
                        padding: 0.675rem 1rem;
                        font-size: 0.875rem;
                        border-radius: 11px;
                        gap: 0.45rem;
                    }
                }

                @media (min-width: 768px) {
                    .header-section .btn {
                        padding: 0.75rem 1.25rem;
                        font-size: 0.9375rem;
                        border-radius: 12px;
                        gap: 0.5rem;
                    }
                }

                .header-section .btn::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
                    opacity: 0;
                    transition: opacity 0.3s ease;
                }

                .header-section .btn:hover::before {
                    opacity: 1;
                }

                @media (hover: hover) {
                    .header-section .btn:hover {
                        transform: translateY(-3px);
                        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
                    }
                }

                .header-section .btn:active {
                    transform: translateY(-1px);
                }

                /* Success Button */
                .header-section .btn-success {
                    background: rgba(255, 255, 255, 0.95);
                    border-color: rgba(255, 255, 255, 0.3);
                    color: #10b981;
                }

                .header-section .btn-success:hover {
                    background: white;
                    border-color: white;
                    color: #059669;
                }

                /* Primary Button */
                .header-section .btn-primary {
                    background: rgba(255, 255, 255, 0.95);
                    border-color: rgba(255, 255, 255, 0.3);
                    color: #667eea;
                }

                .header-section .btn-primary:hover {
                    background: white;
                    border-color: white;
                    color: #5568d3;
                }

                /* Outline Buttons */
                .header-section .btn-outline-primary,
                .header-section .btn-outline-success {
                    background: rgba(255, 255, 255, 0.15);
                    border-color: rgba(255, 255, 255, 0.3);
                    color: white;
                }

                .header-section .btn-outline-primary:hover,
                .header-section .btn-outline-success:hover {
                    background: rgba(255, 255, 255, 0.25);
                    border-color: rgba(255, 255, 255, 0.5);
                    color: white;
                }

                /* Button Icons */
                .header-section .btn i {
                    font-size: 1rem;
                }

                @media (min-width: 576px) {
                    .header-section .btn i {
                        font-size: 1.0625rem;
                    }
                }

                @media (min-width: 768px) {
                    .header-section .btn i {
                        font-size: 1.125rem;
                    }
                }

                /* Mobile: Icon-only buttons */
                @media (max-width: 575.98px) {
                    .header-section .btn .btn-text {
                        display: none;
                    }

                    .header-section .btn {
                        min-width: 44px;
                        padding: 0.625rem;
                    }

                    .header-section .btn i {
                        margin: 0 !important;
                    }
                }

                /* Header flex wrapper for buttons */
                .header-button-group {
                    display: flex;
                    gap: 0.5rem;
                    flex-wrap: wrap;
                }

                @media (max-width: 575.98px) {
                    .header-button-group {
                        width: 100%;
                        justify-content: space-between;
                    }

                    .header-button-group .btn {
                        flex: 1;
                        min-width: 44px;
                        max-width: calc(25% - 0.375rem);
                    }
                }

                @media (min-width: 576px) {
                    .header-button-group {
                        gap: 0.625rem;
                    }
                }

                @media (min-width: 768px) {
                    .header-button-group {
                        gap: 0.75rem;
                    }
                }

                /* Override any conflicting styles */
                .header-section.mb-4 {
                    margin-bottom: 1.5rem !important;
                }

                @media (min-width: 768px) {
                    .header-section.mb-4 {
                        margin-bottom: 2rem !important;
                    }
         
/* Page Background */
.analytics-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    min-height: 100vh;
}

/* ================================================
   HEADER BAR STYLING
   ================================================ */
.header-bar {
    background: var(--primary-gradient);
    color: #000 !important;
    border-left: none;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3), 
                0 4px 12px rgba(118, 75, 162, 0.2);
    position: relative;
    overflow: hidden;
    padding: 2rem !important;
    border: none;
}

/* Decorative Background Elements */
.header-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.header-bar::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Header Content */
.header-bar > * {
    position: relative;
    z-index: 1;
}

.header-bar h1 {
    /* color: white !important; */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0;
}

.header-bar h1 i {
    /* color: white !important; */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header-bar .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
}

/* ================================================
   METRIC CARDS STYLING
   ================================================ */
.analytics-card {
    border: none;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    pointer-events: none;
}

.analytics-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Primary Card (Active Users) */
.analytics-card.bg-primary {
    background: var(--primary-gradient) !important;
}

/* Success Card (Total Hours) */
.analytics-card.bg-success {
    background: var(--success-gradient) !important;
}

/* Info Card (Week Hours) */
.analytics-card.bg-info {
    background: var(--info-gradient) !important;
}

.analytics-card .card-body {
    padding: 1.75rem;
    position: relative;
    z-index: 1;
}

.analytics-card h6 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.analytics-card .display-4 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.analytics-card small {
    font-size: 0.8125rem;
    opacity: 0.9;
}

.analytics-card i.display-5 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    opacity: 0.3;
}

/* ================================================
   FILTER CARD STYLING
   ================================================ */
.analytics-card-filter {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.analytics-card-filter:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

.analytics-card-filter .card-body {
    padding: 1.75rem;
}

.analytics-card-filter .form-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.analytics-card-filter .form-label i {
    color: var(--primary-color);
}

.analytics-card-filter .form-select-lg {
    min-height: 3.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #1e293b;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.analytics-card-filter .form-select-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background-color: white;
    outline: none;
}

.analytics-card-filter .form-select-lg:hover {
    border-color: var(--primary-color);
}

/* ================================================
   CHART CARD STYLING
   ================================================ */
.chart-card {
    border: 2px solid #e2e8f0;
    border-radius: 20px !important;
    padding-bottom: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.chart-card .card-header {
    background: linear-gradient(to bottom, #fafafa, white) !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 1.5rem 2rem;
}

.chart-card .card-header h5 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.chart-card .card-header p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.chart-card .card-body {
    padding: 2rem;
}

/* ================================================
   LOADING OVERLAY STYLING
   ================================================ */
#loadingOverlay {
    z-index: 10;
    transition: opacity 0.3s ease-in-out;
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(4px);
}

#loadingOverlay .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1199.98px) {
    .analytics-card .display-4 {
        font-size: 2.25rem;
    }
    
    .analytics-card i.display-5 {
        font-size: 2.75rem;
    }
}

@media (max-width: 991.98px) {
    .header-bar {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
    
    .header-bar h1 {
        font-size: 1.5rem;
    }
    
    .analytics-card .card-body {
        padding: 1.5rem;
    }
    
    .analytics-card .display-4 {
        font-size: 2rem;
    }
    
    .analytics-card i.display-5 {
        font-size: 2.5rem;
    }
    
    .chart-card .card-header {
        padding: 1.25rem 1.5rem;
    }
    
    .chart-card .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .header-bar {
        padding: 1.25rem !important;
        border-radius: 12px !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
    
    .header-bar h1 {
        font-size: 1.375rem;
    }
    
    .header-bar .text-muted {
        display: block !important;
        width: 100%;
        text-align: center;
    }
    
    .analytics-card .card-body {
        padding: 1.25rem;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .analytics-card i.display-5 {
        align-self: flex-end;
        margin-top: -0.5rem;
    }
    
    .analytics-card .display-4 {
        font-size: 1.875rem;
    }
}

@media (max-width: 575.98px) {
    .analytics-page {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .header-bar {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .header-bar h1 {
        font-size: 1.25rem;
    }
    
    .analytics-card .card-body {
        padding: 1rem;
    }
    
    .analytics-card h6 {
        font-size: 0.75rem;
    }
    
    .analytics-card .display-4 {
        font-size: 1.75rem;
    }
    
    .analytics-card small {
        font-size: 0.75rem;
    }
    
    .analytics-card i.display-5 {
        font-size: 2rem;
    }
    
    .analytics-card-filter .card-body {
        padding: 1.25rem;
    }
    
    .analytics-card-filter .form-select-lg {
        min-height: 3rem;
        font-size: 0.9375rem;
    }
    
    .chart-card {
        border-radius: 16px !important;
    }
    
    .chart-card .card-header {
        padding: 1rem 1.25rem;
    }
    
    .chart-card .card-header h5 {
        font-size: 1.125rem;
    }
    
    .chart-card .card-body {
        padding: 1rem;
        min-height: 350px !important;
    }
    
    #workHoursTrendChart {
        max-height: 300px !important;
    }
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
    .analytics-page {
        background: white;
    }
    
    .header-bar {
        background: white !important;
        color: black !important;
        box-shadow: none;
    }
    
    .analytics-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ================================================
   ACCESSIBILITY ENHANCEMENTS
   ================================================ */
.analytics-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-select-lg:focus {
    outline: none;
}

/* Smooth Animations */
.analytics-card,
.analytics-card-filter,
.chart-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for cards */
.row .col-12:nth-child(1) .analytics-card,
.row .col-12:nth-child(1) .analytics-card-filter {
    animation-delay: 0.1s;
}

.row .col-12:nth-child(2) .analytics-card,
.row .col-12:nth-child(2) .analytics-card-filter {
    animation-delay: 0.2s;
}

.row .col-12:nth-child(3) .analytics-card,
.row .col-12:nth-child(3) .analytics-card-filter {
    animation-delay: 0.3s;
}

.row .col-12:nth-child(4) .analytics-card,
.row .col-12:nth-child(4) .analytics-card-filter {
    animation-delay: 0.4s;
}
              
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* LinkedIn-style Card */
.linkedin-card {
    background: white;
    border: 1px solid var(--linkedin-border);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 1px 2px 0 rgba(0,0,0,.08);
    transition: box-shadow 0.3s ease;
}

.linkedin-card:hover {
    box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 4px 12px 0 rgba(0,0,0,.12);
}

/* Header Section */
.page-header {
    background: var(--primary-gradient);
    padding: 32px 24px;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.header-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.header-content p {
    font-size: 14px;
    opacity: 0.9;
}

.btn-export {
    background: white;
    color: var(--linkedin-blue);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Filters Section */
.filters-container {
    padding: 24px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--linkedin-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 10px 14px;
    border: 1px solid var(--linkedin-border);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: rgba(0,0,0,.9);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--linkedin-blue);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.btn-apply {
    background: var(--linkedin-blue);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.btn-apply:hover {
    background: var(--linkedin-dark-blue);
    transform: translateY(-1px);
}

/* Table Container */
.table-container {
    overflow-x: auto;
}

.referrals-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.referrals-table thead {
    background: var(--linkedin-light-gray);
}

.referrals-table th {
    padding: 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--linkedin-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--linkedin-border);
    position: sticky;
    top: 0;
    background: var(--linkedin-light-gray);
    z-index: 10;
}

.referrals-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--linkedin-border);
}

.referrals-table tbody tr:hover {
    background: rgba(10, 102, 194, 0.02);
}

.referrals-table td {
    padding: 16px;
    font-size: 14px;
    color: rgba(0,0,0,.9);
    vertical-align: middle;
}

/* User Avatar */
.user-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--linkedin-blue), var(--linkedin-light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: rgba(0,0,0,.9);
    font-size: 14px;
}

.user-id {
    font-size: 12px;
    color: var(--linkedin-gray);
    font-family: monospace;
}

/* Customer Info */
.customer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-name {
    font-weight: 600;
    color: rgba(0,0,0,.9);
}

.customer-email {
    font-size: 12px;
    color: var(--linkedin-gray);
}

/* Status Select */
.status-select {
    padding: 6px 12px;
    border: 1px solid currentColor;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-select.pending {
    background: rgba(245, 166, 35, 0.1);
    color: var(--warning-orange);
}

.status-select.contacted {
    background: rgba(10, 102, 194, 0.1);
    color: var(--linkedin-blue);
}

.status-select.qualified {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.status-select.converted {
    background: rgba(5, 118, 66, 0.1);
    color: var(--success-green);
}

.status-select.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Input Fields */
.deal-input {
    width: 100px;
    padding: 6px 10px;
    border: 1px solid var(--linkedin-border);
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.deal-input:focus {
    outline: none;
    border-color: var(--linkedin-blue);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

/* Buttons */
.btn-set-value {
    color: var(--linkedin-blue);
    background: transparent;
    border: 1px solid var(--linkedin-blue);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-set-value:hover {
    background: rgba(10, 102, 194, 0.08);
}

.btn-mark-paid {
    color: var(--success-green);
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.btn-mark-paid:hover {
    color: #046c3a;
}

.btn-details {
    color: var(--linkedin-blue);
    background: transparent;
    border: 1px solid var(--linkedin-blue);
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-details:hover {
    background: rgba(10, 102, 194, 0.08);
}

/* Commission Display */
.commission-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.commission-amount {
    font-weight: 700;
    color: #10b981;
    font-size: 15px;
}

.commission-status {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.commission-status.paid {
    color: var(--success-green);
}

/* Badges */
.id-badge {
    font-family: 'Monaco', monospace;
    background: var(--linkedin-light-gray);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--linkedin-gray);
    font-weight: 600;
}

.no-inquiry {
    color: #9ca3af;
    font-style: italic;
    font-size: 13px;
}

/* Pagination */
.pagination-container {
    padding: 20px 24px;
    border-top: 1px solid var(--linkedin-border);
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        border-radius: 8px;
    }
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Toast Notification */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--success-green);
}

.toast.error {
    border-left: 4px solid #ef4444;
}
                }
             
.hr-dashboard {
    background: var(--primary-gradient);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.dashboard-header-super {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--card-color);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: var(--card-color);
    margin-bottom: 1rem;
}

.content-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #212529;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    border-color: #28a745;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.2);
    color: #212529;
}

.employee-list {
    max-height: 400px;
    overflow-y: auto;
}

.employee-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
}

.employee-item:hover {
    background: #f8f9fa;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.leave-item {
    padding: 1rem;
    border-left: 4px solid;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.leave-item.pending { border-left-color: #ffc107; }

.manager-dashboard {
    background:var(--primary-gradient);
    min-height: 100vh;
    padding: 2rem 1rem;
}



.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.team-stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.team-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.stat-icon-big {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.team-activity-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-member-row {
    padding: 1.25rem;
    border-radius: 12px;
    background: #f8f9fa;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.team-member-row:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-indicator.working { background: #28a745; }
.status-indicator.not-working { background: #6c757d; }

.quick-link-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: white;
}



.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.page-subtitle {
    opacity: 0.9;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    color: #6c757d;
    font-size: 0.875rem;
}

.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table thead {
    background: #f8f9fa;
}

.form-switch .form-check-input {
    cursor: pointer;
}

/* ONLY apply these to welcome page - use specific selectors */
body.is-welcome-page .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Welcome page wrapper - ONLY on welcome page */
.welcome-page-wrapper {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(120deg, #b8b8b8, #f7f7f8, #4d4c50);
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
    color: #000;
    min-height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1;
}

/* Pattern Overlay - ONLY on welcome page */
.welcome-page-wrapper::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 70px 70px, 100px 100px;
    background-position: 0 0, 35px 35px;
    animation: patternMove 50s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes patternMove {
    0% { background-position: 0 0, 35px 35px; }
    100% { background-position: 70px 70px, 105px 105px; }
}

/* Content Container */
.welcome-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 60px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.content-box {
    width: 100%;
    max-width: 1150px;
    text-align: center;
}

/* Typography */
.welcome-title {
    font-weight: 700;
    color: #000;
    letter-spacing: 1px;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.welcome-subtitle {
    color: #000;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--primary-gradient);
    border: none;
    border-radius: 18px;
    padding: 35px 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(79,70,229,0.3), rgba(79,70,229,0));
    transform: skewX(-25deg);
    transition: 0.5s;
}

.feature-card:hover::before {
    left: 125%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(79,70,229, 0.3);
}

.feature-icon {
    font-size: 3rem;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
}

.feature-title {

    margin-top: 20px;
    font-weight: 600;
    font-size: 1.2rem;
}

.feature-text {
  
    font-size: 0.95rem;
    margin-top: 10px;
}

/* Icon Colors
.icon-calendar { color: #00b4d8; }
.icon-clock { color: #64ffda; }
.icon-people { color: #ffb703; } */

/* Buttons */
.welcome-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-welcome-primary {
    background: linear-gradient(90deg, #777676, #fdfdff);
    border: none;
 color: #000;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 35px;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-welcome-primary:hover {
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    transform: scale(1.05);
    color: #fff;
}

.btn-welcome-outline {
    border: 2px solid #64ffda;
    color: #64ffda;
    background: transparent;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 35px;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-welcome-outline:hover {
    background: #64ffda;
    color: #0a192f;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1200px) {
    .welcome-title { font-size: 2.4rem; }
}

@media (max-width: 992px) {
    .welcome-title { font-size: 2rem; }
    .welcome-content { padding: 120px 20px 40px; }
}

@media (max-width: 768px) {
    .welcome-title { font-size: 1.8rem; }
    .welcome-subtitle { 
        margin-bottom: 40px; 
        font-size: 1rem; 
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .welcome-content { padding: 100px 15px 30px; }
    .welcome-title { font-size: 1.6rem; }
    .welcome-subtitle { font-size: 0.9rem; }
    .feature-card { padding: 25px 15px; }
}
/* Gantt Chart Styles */
.gantt-row {
  min-height: 60px;
  display: flex;
  align-items: center;
}

.gantt-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.gantt-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gantt-user-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gantt-user-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-user-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #6b7280;
}

.gantt-user-status i {
  margin-right: 2px;
}

/* Timeline Row Styles */
.gantt-timeline-row {
  position: relative;
  min-height: 60px;
  display: flex;
  align-items: center;
}

/* Gantt Bar Styles */
.gantt-bar {
  height: 40px;
  z-index: 1;
}

.gantt-bar:hover {
  z-index: 10;
}

.gantt-bar.project {
  height: 44px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gantt-user-name {
    font-size: 0.85rem;
  }
  
  .gantt-user-status {
    font-size: 0.7rem;
  }
  
  .gantt-user-avatar {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}
