﻿/* ============================================================
   HRMS Design System — style.css
   Custom design tokens, Bootstrap overrides, premium UI layer
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ══════════════════════════════════════════════════
   1. DESIGN TOKENS (CSS Custom Properties)
══════════════════════════════════════════════════ */
:root {
    /* Color Palette */
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --primary-light: #818CF8;
    --primary-xlight: #EEF2FF;
    --primary-glow: rgba(79,70,229,0.15);
    --secondary: #7C3AED;
    --accent: #06B6D4;
    --accent-dark: #0891B2;
    --accent-light: #CFFAFE;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    /* Status colors (attendance) */
    --status-present: #10B981;
    --status-absent: #EF4444;
    --status-late: #F59E0B;
    --status-wfh: #3B82F6;
    --status-leave: #8B5CF6;
    --status-holiday: #EC4899;
    --status-halfday: #F97316;
    /* Neutral Palette */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    /* Background */
    --bg-body: #F0EFFE;
    --bg-surface: #FFFFFF;
    --bg-surface-2: #F8F7FF;
    --bg-sidebar: #0F0D2E;
    --bg-sidebar-hover: #1A1744;
    --bg-topbar: #FFFFFF;
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --text-xs: 0.70rem;
    --text-sm: 0.813rem;
    --text-base: 0.9375rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(79,70,229,0.07), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(79,70,229,0.10), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(79,70,229,0.13), 0 4px 12px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 48px rgba(79,70,229,0.18), 0 8px 24px rgba(0,0,0,0.10);
    --shadow-glow: 0 0 24px rgba(79,70,229,0.25);
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.40s ease;
    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --topbar-height: 64px;
    --sidebar-transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ══════════════════════════════════════════════════
   2. RESET & BASE
══════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--gray-800);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* ══════════════════════════════════════════════════
   3. LAYOUT — SHELL
══════════════════════════════════════════════════ */

/* App wrapper */
.hrms-app {
    display: flex;
    min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-sidebar);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width var(--sidebar-transition), transform var(--sidebar-transition);
    overflow: hidden;
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
}

    .sidebar.collapsed {
        width: var(--sidebar-collapsed);
    }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0 var(--space-5);
    height: var(--topbar-height);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
}

    .sidebar-brand .brand-icon {
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(79,70,229,0.4);
    }

        .sidebar-brand .brand-icon i {
            color: #fff;
            font-size: 18px;
        }

    .sidebar-brand .brand-text {
        color: #fff;
        font-family: var(--font-heading);
        font-weight: var(--fw-bold);
        font-size: var(--text-lg);
        letter-spacing: -0.02em;
        transition: opacity var(--sidebar-transition);
    }

    .sidebar-brand .brand-sub {
        display: block;
        font-size: var(--text-xs);
        color: var(--primary-light);
        font-weight: var(--fw-medium);
    }

.sidebar.collapsed .brand-text,
.sidebar.collapsed .brand-sub {
    opacity: 0;
    pointer-events: none;
}

/* Sidebar scroll area */
.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-4) 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

    .sidebar-scroll::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-scroll::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.15);
        border-radius: 4px;
    }

/* Nav sections */
.nav-section-label {
    font-size: 0.65rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    padding: var(--space-4) var(--space-5) var(--space-2);
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--sidebar-transition);
}

.sidebar.collapsed .nav-section-label {
    opacity: 0;
}

/* Nav items */
.sidebar-nav .nav-item {
    margin: 1px var(--space-3);
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 9px 14px;
    color: rgba(255,255,255,0.65);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    white-space: nowrap;
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

    .sidebar-nav .nav-link i {
        font-size: 18px;
        flex-shrink: 0;
        width: 22px;
        text-align: center;
        transition: transform var(--transition-fast);
    }

    .sidebar-nav .nav-link .nav-label {
        transition: opacity var(--sidebar-transition);
    }

    .sidebar-nav .nav-link .nav-badge {
        margin-left: auto;
        background: var(--danger);
        color: #fff;
        font-size: 0.6rem;
        font-weight: var(--fw-bold);
        padding: 2px 6px;
        border-radius: var(--radius-full);
        min-width: 18px;
        text-align: center;
        transition: opacity var(--sidebar-transition);
    }

.sidebar.collapsed .nav-link .nav-label,
.sidebar.collapsed .nav-link .nav-badge {
    opacity: 0;
}

.sidebar-nav .nav-link:hover {
    background: var(--bg-sidebar-hover);
    color: #fff;
}

    .sidebar-nav .nav-link:hover i {
        transform: translateX(2px);
    }

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary), rgba(79,70,229,0.8));
    color: #fff;
    box-shadow: 0 4px 12px rgba(79,70,229,0.35);
}

    .sidebar-nav .nav-link.active i {
        transform: none;
    }

/* Sidebar footer */
.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
    white-space: nowrap;
}

    .sidebar-footer .user-info {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-2) var(--space-1);
    }

    .sidebar-footer .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: var(--radius-full);
        background: linear-gradient(135deg, var(--accent), var(--primary));
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: var(--fw-bold);
        font-size: var(--text-sm);
        flex-shrink: 0;
        border: 2px solid rgba(255,255,255,0.2);
    }

    .sidebar-footer .user-name {
        color: #fff;
        font-size: var(--text-sm);
        font-weight: var(--fw-semibold);
        transition: opacity var(--sidebar-transition);
    }

    .sidebar-footer .user-role {
        color: var(--primary-light);
        font-size: var(--text-xs);
        transition: opacity var(--sidebar-transition);
    }

.sidebar.collapsed .user-name,
.sidebar.collapsed .user-role {
    opacity: 0;
}

/* ── MAIN CONTENT AREA ── */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--sidebar-transition);
    width: calc(100% - var(--sidebar-width));
}

    .main-content.expanded {
        margin-left: var(--sidebar-collapsed);
        width: calc(100% - var(--sidebar-collapsed));
    }

/* ── TOPBAR ── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--topbar-height);
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 var(--space-6);
    gap: var(--space-4);
    box-shadow: var(--shadow-xs);
}

    .topbar .toggle-btn {
        width: 36px;
        height: 36px;
        border: none;
        background: transparent;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--gray-600);
        font-size: 20px;
        transition: all var(--transition-fast);
        flex-shrink: 0;
    }

        .topbar .toggle-btn:hover {
            background: var(--primary-xlight);
            color: var(--primary);
        }

/* Search box */
.topbar-search {
    flex: 1;
    max-width: 360px;
    position: relative;
}

    .topbar-search input {
        width: 100%;
        height: 38px;
        border: 1.5px solid var(--gray-200);
        border-radius: var(--radius-full);
        padding: 0 var(--space-4) 0 var(--space-10);
        font-size: var(--text-sm);
        background: var(--bg-surface-2);
        color: var(--gray-800);
        outline: none;
        transition: all var(--transition-fast);
        font-family: var(--font-body);
    }

        .topbar-search input::placeholder {
            color: var(--gray-400);
        }

        .topbar-search input:focus {
            border-color: var(--primary);
            background: #fff;
            box-shadow: 0 0 0 3px var(--primary-glow);
        }

    .topbar-search .search-icon {
        position: absolute;
        left: var(--space-4);
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray-400);
        font-size: 15px;
        pointer-events: none;
    }

/* Right actions */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: auto;
}

/* Icon button */
.icon-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 18px;
    position: relative;
    transition: all var(--transition-fast);
}

    .icon-btn:hover {
        background: var(--primary-xlight);
        color: var(--primary);
    }

    .icon-btn .badge-dot {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 8px;
        height: 8px;
        background: var(--danger);
        border-radius: var(--radius-full);
        border: 2px solid #fff;
    }

    .icon-btn .badge-count {
        position: absolute;
        top: 3px;
        right: 3px;
        background: var(--danger);
        color: #fff;
        font-size: 0.55rem;
        font-weight: var(--fw-bold);
        padding: 1px 4px;
        border-radius: var(--radius-full);
        min-width: 16px;
        text-align: center;
        border: 1.5px solid #fff;
    }

/* Profile dropdown toggle */
.profile-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 5px 12px 5px 5px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .profile-toggle:hover {
        border-color: var(--primary);
        background: var(--primary-xlight);
    }

    .profile-toggle .avatar {
        width: 30px;
        height: 30px;
        border-radius: var(--radius-full);
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: var(--fw-bold);
        font-size: var(--text-xs);
    }

    .profile-toggle .profile-name {
        font-size: var(--text-sm);
        font-weight: var(--fw-semibold);
        color: var(--gray-800);
    }

    .profile-toggle .profile-role {
        font-size: var(--text-xs);
        color: var(--gray-500);
    }

/* ── PAGE BODY ── */
.page-body {
    flex: 1;
    padding: var(--space-6);
    overflow-y: auto;
}

/* Page header */
.page-header {
    margin-bottom: var(--space-6);
}

.page-title {
    font-size: var(--text-2xl);
    font-weight: var(--fw-extrabold);
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.025em;
}

.page-subtitle {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin: 0;
    margin-top: 4px;
}

/* Breadcrumb */
.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin-bottom: var(--space-1);
}

    .breadcrumb-custom a {
        color: var(--primary);
    }

    .breadcrumb-custom .sep {
        color: var(--gray-300);
    }

/* ══════════════════════════════════════════════════
   4. CARDS
══════════════════════════════════════════════════ */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-100);
    padding: var(--space-5) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.card-title {
    font-size: var(--text-md);
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin: 0;
    font-family: var(--font-heading);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--gray-100);
    padding: var(--space-4) var(--space-6);
}

/* Stat Card */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--card-accent, var(--primary)), var(--card-accent2, var(--secondary)));
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

    .stat-card .stat-icon {
        width: 52px;
        height: 52px;
        border-radius: var(--radius-lg);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        margin-bottom: var(--space-4);
        background: var(--card-icon-bg, var(--primary-xlight));
        color: var(--card-icon-color, var(--primary));
    }

    .stat-card .stat-value {
        font-size: var(--text-3xl);
        font-weight: var(--fw-extrabold);
        color: var(--gray-900);
        line-height: 1;
        font-family: var(--font-heading);
        margin-bottom: var(--space-1);
    }

    .stat-card .stat-label {
        font-size: var(--text-sm);
        color: var(--gray-500);
        font-weight: var(--fw-medium);
        margin-bottom: var(--space-3);
    }

    .stat-card .stat-trend {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: var(--text-xs);
        font-weight: var(--fw-semibold);
        padding: 3px 8px;
        border-radius: var(--radius-full);
    }

.stat-trend.up {
    background: var(--success-light);
    color: var(--success);
}

.stat-trend.down {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-trend.neutral {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* ══════════════════════════════════════════════════
   5. TABLES
══════════════════════════════════════════════════ */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

    .data-table thead th {
        background: var(--bg-surface-2);
        color: var(--gray-500);
        font-weight: var(--fw-semibold);
        font-size: var(--text-xs);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 12px 16px;
        border-bottom: 1px solid var(--gray-200);
        white-space: nowrap;
    }

    .data-table tbody tr {
        border-bottom: 1px solid var(--gray-100);
        transition: background var(--transition-fast);
    }

        .data-table tbody tr:hover {
            background: var(--primary-xlight);
        }

        .data-table tbody tr:last-child {
            border-bottom: none;
        }

    .data-table tbody td {
        padding: 13px 16px;
        color: var(--gray-700);
        vertical-align: middle;
    }

/* Employee avatar cell */
.employee-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.emp-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: var(--fw-bold);
    font-size: var(--text-xs);
    flex-shrink: 0;
}

.emp-name {
    font-weight: var(--fw-semibold);
    color: var(--gray-800);
    font-size: var(--text-sm);
}

.emp-email {
    font-size: var(--text-xs);
    color: var(--gray-400);
}

/* ══════════════════════════════════════════════════
   6. BADGES / PILLS
══════════════════════════════════════════════════ */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
}

.badge-present {
    background: var(--success-light);
    color: var(--success);
}

.badge-absent {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-late {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-wfh {
    background: var(--info-light);
    color: var(--info);
}

.badge-leave {
    background: #EDE9FE;
    color: #7C3AED;
}

.badge-holiday {
    background: #FCE7F3;
    color: #BE185D;
}

.badge-halfday {
    background: #FFF7ED;
    color: #C2410C;
}

.badge-active {
    background: var(--success-light);
    color: var(--success);
}

.badge-inactive {
    background: var(--gray-100);
    color: var(--gray-500);
}

.badge-pending {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-approved {
    background: var(--success-light);
    color: var(--success);
}

.badge-rejected {
    background: var(--danger-light);
    color: var(--danger);
}

/* Live pulse dot */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    position: relative;
    flex-shrink: 0;
}

    .pulse-dot::after {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--success);
        opacity: 0.3;
        animation: pulse-ring 1.5s ease-out infinite;
    }

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-dot.offline {
    background: var(--gray-400);
}

    .pulse-dot.offline::after {
        background: var(--gray-400);
        animation: none;
    }

.pulse-dot.danger {
    background: var(--danger);
}

    .pulse-dot.danger::after {
        background: var(--danger);
    }

.pulse-dot.warning {
    background: var(--warning);
}

    .pulse-dot.warning::after {
        background: var(--warning);
        animation: none;
    }

/* ══════════════════════════════════════════════════
   7. BUTTONS
══════════════════════════════════════════════════ */
.btn {
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

    .btn:active {
        transform: scale(0.97);
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
        box-shadow: 0 6px 18px rgba(79,70,229,0.4);
        color: #fff;
        transform: translateY(-1px);
    }

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(6,182,212,0.3);
}

    .btn-accent:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(6,182,212,0.4);
        color: #fff;
    }

.btn-outline-primary {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

    .btn-outline-primary:hover {
        background: var(--primary-xlight);
        color: var(--primary);
    }

.btn-light {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

    .btn-light:hover {
        background: var(--gray-200);
        color: var(--gray-800);
    }

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239,68,68,0.25);
}

    .btn-danger:hover {
        background: #DC2626;
        color: #fff;
        transform: translateY(-1px);
    }

.btn-success {
    background: var(--success);
    color: #fff;
}

    .btn-success:hover {
        background: #059669;
        color: #fff;
    }

.btn-sm {
    padding: 5px 12px;
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 15px;
}

/* ══════════════════════════════════════════════════
   8. FORM ELEMENTS
══════════════════════════════════════════════════ */
.form-label {
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 9px 14px;
    font-size: var(--text-sm);
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--bg-surface);
    transition: all var(--transition-fast);
    width: 100%;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-glow);
        outline: none;
        background: #fff;
    }

    .form-control::placeholder {
        color: var(--gray-400);
    }

.input-group .input-group-text {
    background: var(--bg-surface-2);
    border: 1.5px solid var(--gray-200);
    color: var(--gray-500);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* ══════════════════════════════════════════════════
   9. MODALS
══════════════════════════════════════════════════ */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: var(--space-5) var(--space-6);
}

    .modal-header .modal-title {
        color: #fff;
        font-family: var(--font-heading);
        font-weight: var(--fw-bold);
        font-size: var(--text-lg);
    }

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
    }

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    border-top: 1px solid var(--gray-100);
    padding: var(--space-4) var(--space-6);
    background: var(--bg-surface-2);
}

/* ══════════════════════════════════════════════════
   10. TOAST NOTIFICATIONS
══════════════════════════════════════════════════ */
.toast-container-custom {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-custom {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary);
    min-width: 280px;
    max-width: 360px;
    pointer-events: all;
    animation: slideInRight 0.3s cubic-bezier(0.34,1.56,0.64,1);
    font-size: var(--text-sm);
}

    .toast-custom.success {
        border-left-color: var(--success);
    }

    .toast-custom.error {
        border-left-color: var(--danger);
    }

    .toast-custom.warning {
        border-left-color: var(--warning);
    }

    .toast-custom.info {
        border-left-color: var(--info);
    }

    .toast-custom .toast-icon {
        font-size: 20px;
        flex-shrink: 0;
        margin-top: 1px;
    }

    .toast-custom.success .toast-icon {
        color: var(--success);
    }

    .toast-custom.error .toast-icon {
        color: var(--danger);
    }

    .toast-custom.warning .toast-icon {
        color: var(--warning);
    }

    .toast-custom.info .toast-icon {
        color: var(--info);
    }

    .toast-custom .toast-title {
        font-weight: var(--fw-semibold);
        color: var(--gray-800);
        margin-bottom: 2px;
    }

    .toast-custom .toast-msg {
        color: var(--gray-500);
        font-size: var(--text-xs);
    }

    .toast-custom.hiding {
        animation: slideOutRight 0.3s ease forwards;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100px);
        opacity: 0;
    }
}

/* ══════════════════════════════════════════════════
   11. EMPTY STATE
══════════════════════════════════════════════════ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-8);
    text-align: center;
}

    .empty-state .empty-icon {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: var(--primary-xlight);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        color: var(--primary-light);
        margin-bottom: var(--space-5);
    }

    .empty-state .empty-title {
        font-size: var(--text-lg);
        font-weight: var(--fw-bold);
        color: var(--gray-700);
        margin-bottom: var(--space-2);
    }

    .empty-state .empty-desc {
        font-size: var(--text-sm);
        color: var(--gray-400);
        max-width: 300px;
        line-height: 1.6;
    }

/* ══════════════════════════════════════════════════
   12. SKELETON SHIMMER
══════════════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 8px;
}

    .skeleton-line.short {
        width: 40%;
    }

    .skeleton-line.medium {
        width: 65%;
    }

    .skeleton-line.full {
        width: 100%;
    }

.skeleton-circle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.skeleton-card {
    height: 120px;
    border-radius: var(--radius-xl);
}

/* ══════════════════════════════════════════════════
   13. TABS
══════════════════════════════════════════════════ */
.tabs-custom {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 4px;
    border: none;
    flex-wrap: wrap;
}

    .tabs-custom .tab-item {
        padding: 7px 18px;
        border-radius: var(--radius-md);
        font-size: var(--text-sm);
        font-weight: var(--fw-medium);
        color: var(--gray-600);
        cursor: pointer;
        transition: all var(--transition-fast);
        border: none;
        background: transparent;
        white-space: nowrap;
    }

        .tabs-custom .tab-item:hover {
            color: var(--primary);
        }

        .tabs-custom .tab-item.active {
            background: var(--bg-surface);
            color: var(--primary);
            font-weight: var(--fw-semibold);
            box-shadow: var(--shadow-xs);
        }

/* ══════════════════════════════════════════════════
   14. KANBAN BOARD
══════════════════════════════════════════════════ */
.kanban-board {
    display: flex;
    gap: var(--space-5);
    overflow-x: auto;
    padding-bottom: var(--space-4);
    align-items: flex-start;
}

.kanban-col {
    min-width: 280px;
    width: 280px;
    flex-shrink: 0;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.kanban-col-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: var(--fw-bold);
    font-size: var(--text-sm);
    border-bottom: 2px solid;
}

.kanban-col.pending .kanban-col-header {
    border-color: var(--warning);
    color: var(--warning);
}

.kanban-col.inprogress .kanban-col-header {
    border-color: var(--info);
    color: var(--info);
}

.kanban-col.completed .kanban-col-header {
    border-color: var(--success);
    color: var(--success);
}

.kanban-col.overdue .kanban-col-header {
    border-color: var(--danger);
    color: var(--danger);
}

.kanban-col-body {
    padding: 12px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-200);
    cursor: grab;
    transition: all var(--transition-fast);
    user-select: none;
}

    .kanban-card:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--primary-light);
        transform: translateY(-1px);
    }

    .kanban-card.dragging {
        opacity: 0.5;
        transform: rotate(2deg);
    }

.kanban-col.drag-over {
    outline: 2px dashed var(--primary);
    outline-offset: -2px;
}

/* ══════════════════════════════════════════════════
   15. MAP STYLES
══════════════════════════════════════════════════ */
.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xl) !important;
    border: none !important;
}

.leaflet-popup-tip {
    background: #fff !important;
}

.map-marker-label {
    background: var(--bg-sidebar);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 2px 6px;
    font-size: 10px;
    font-weight: var(--fw-semibold);
    font-family: var(--font-body);
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   16. PROGRESS BARS
══════════════════════════════════════════════════ */
.progress-custom {
    height: 6px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

    .progress-custom .progress-fill {
        height: 100%;
        border-radius: var(--radius-full);
        background: linear-gradient(90deg, var(--primary), var(--accent));
        transition: width 0.6s ease;
    }

/* ══════════════════════════════════════════════════
   17. NOTIFICATION DROPDOWN
══════════════════════════════════════════════════ */
.notification-dropdown {
    min-width: 360px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.notification-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition-fast);
    cursor: pointer;
}

    .notification-item:hover {
        background: var(--primary-xlight);
    }

    .notification-item.unread {
        background: var(--bg-surface-2);
    }

    .notification-item .notif-icon {
        width: 36px;
        height: 36px;
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        flex-shrink: 0;
    }

    .notification-item .notif-title {
        font-size: var(--text-sm);
        font-weight: var(--fw-semibold);
        color: var(--gray-800);
        margin-bottom: 2px;
    }

    .notification-item .notif-msg {
        font-size: var(--text-xs);
        color: var(--gray-500);
        line-height: 1.4;
    }

    .notification-item .notif-time {
        font-size: 0.65rem;
        color: var(--gray-400);
        margin-top: 4px;
    }

/* ══════════════════════════════════════════════════
   18. ACTIVITY FEED
══════════════════════════════════════════════════ */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
}

    .activity-item:last-child {
        border-bottom: none;
    }

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 5px;
    border: 2px solid var(--primary-xlight);
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.5;
}

    .activity-text strong {
        color: var(--gray-900);
        font-weight: var(--fw-semibold);
    }

.activity-time {
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════
   19. STEPPER
══════════════════════════════════════════════════ */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 80px;
}

    .step-item::before {
        content: '';
        position: absolute;
        top: 18px;
        left: 50%;
        width: 100%;
        height: 2px;
        background: var(--gray-200);
        z-index: 0;
    }

    .step-item:last-child::before {
        display: none;
    }

    .step-item.completed::before {
        background: var(--primary);
    }

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: var(--fw-bold);
    z-index: 1;
    position: relative;
    border: 2px solid var(--gray-200);
    transition: all var(--transition-base);
}

.step-item.active .step-circle {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.step-item.completed .step-circle {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.step-label {
    font-size: var(--text-xs);
    color: var(--gray-500);
    text-align: center;
    margin-top: 6px;
    font-weight: var(--fw-medium);
    max-width: 80px;
    line-height: 1.3;
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: var(--fw-semibold);
}

.step-item.completed .step-label {
    color: var(--success);
}

/* ══════════════════════════════════════════════════
   20. UTILITY CLASSES
══════════════════════════════════════════════════ */
.text-primary-custom {
    color: var(--primary) !important;
}

.text-muted-custom {
    color: var(--gray-400) !important;
}

.bg-primary-xlight {
    background: var(--primary-xlight) !important;
}

.fw-600 {
    font-weight: 600 !important;
}

.fw-700 {
    font-weight: 700 !important;
}

.gap-10 {
    gap: 10px;
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.rounded-full {
    border-radius: var(--radius-full) !important;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--gray-100);
    margin: var(--space-4) 0;
}

/* Section heading */
.section-heading {
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search highlight */
.highlight {
    background: #FEF08A;
    border-radius: 2px;
    padding: 0 2px;
}

/* Scroll hide */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Vertical divider */
.vr-custom {
    width: 1px;
    background: var(--gray-200);
    align-self: stretch;
    margin: 0 var(--space-2);
}

/* Info panel */
.info-panel {
    background: var(--primary-xlight);
    border: 1px solid rgba(79,70,229,0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

    .info-panel .info-icon {
        color: var(--primary);
        font-size: 18px;
        flex-shrink: 0;
        margin-top: 1px;
    }

/* Leave balance card */
.leave-balance-card {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    text-align: center;
    transition: all var(--transition-base);
}

    .leave-balance-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary-light);
    }

.leave-balance-number {
    font-size: var(--text-3xl);
    font-weight: var(--fw-extrabold);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 4px;
}

/* Payslip styles */
.payslip-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.payslip-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
    padding: var(--space-8) var(--space-10);
    color: #fff;
}

/* Filter bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    padding: var(--space-4) var(--space-5);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--gray-100);
}

/* ══════════════════════════════════════════════════
   21. LOGIN PAGE
══════════════════════════════════════════════════ */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0F0D2E 0%, #1a1060 50%, #2D1B8E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    position: relative;
    overflow: hidden;
    top: 60px;
}

    .login-page::before {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(79,70,229,0.3) 0%, transparent 70%);
        top: -200px;
        right: -200px;
        pointer-events: none;
    }

    .login-page::after {
        content: '';
        position: absolute;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 70%);
        bottom: -100px;
        left: -100px;
        pointer-events: none;
    }

.login-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(79,70,229,0.2);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: var(--space-8);
}

    .login-logo .logo-box {
        width: 64px;
        height: 64px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border-radius: var(--radius-xl);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        color: #fff;
        margin-bottom: var(--space-4);
        box-shadow: 0 8px 24px rgba(79,70,229,0.5);
    }

    .login-logo h1 {
        color: #fff;
        font-size: var(--text-2xl);
        font-weight: var(--fw-extrabold);
        margin: 0;
    }

    .login-logo p {
        color: rgba(255,255,255,0.5);
        font-size: var(--text-sm);
        margin: 4px 0 0;
    }

.login-card .form-control {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

    .login-card .form-control::placeholder {
        color: rgba(255,255,255,0.4);
    }

    .login-card .form-control:focus {
        background: rgba(255,255,255,0.12);
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(129,140,248,0.25);
    }

.login-card .form-label {
    color: rgba(255,255,255,0.75);
}

/* OTP boxes */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: var(--space-4) 0;
}

.otp-box {
    width: 52px;
    height: 58px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    text-align: center;
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    color: #fff;
    transition: all var(--transition-fast);
    outline: none;
    font-family: var(--font-heading);
}

    .otp-box:focus {
        border-color: var(--primary-light);
        background: rgba(129,140,248,0.15);
        box-shadow: 0 0 0 3px rgba(129,140,248,0.2);
    }

.role-switcher {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.role-btn {
    flex: 1;
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.65);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

    .role-btn.active {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: #fff;
        border-color: transparent;
        box-shadow: 0 4px 10px rgba(79,70,229,0.4);
    }

/* ══════════════════════════════════════════════════
   22. ATTENDANCE GRID
══════════════════════════════════════════════════ */
.attendance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 4px;
}

.att-cell {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

    .att-cell:hover {
        transform: scale(1.15);
        z-index: 10;
    }

    .att-cell.present {
        background: var(--success-light);
        color: var(--success);
    }

    .att-cell.absent {
        background: var(--danger-light);
        color: var(--danger);
    }

    .att-cell.late {
        background: var(--warning-light);
        color: var(--warning);
    }

    .att-cell.wfh {
        background: var(--info-light);
        color: var(--info);
    }

    .att-cell.leave {
        background: #EDE9FE;
        color: #7C3AED;
    }

    .att-cell.holiday {
        background: #FCE7F3;
        color: #BE185D;
    }

    .att-cell.future {
        background: var(--gray-100);
        color: var(--gray-300);
        cursor: default;
    }

/* ══════════════════════════════════════════════════
   23. PROFILE PAGE SPECIFIC
══════════════════════════════════════════════════ */
.profile-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-8) var(--space-10);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .profile-hero::before {
        content: '';
        position: absolute;
        width: 300px;
        height: 300px;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
        top: -100px;
        right: -50px;
    }

.profile-avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    font-weight: var(--fw-extrabold);
    color: #fff;
    font-family: var(--font-heading);
}

/* ══════════════════════════════════════════════════
   24. MOBILE BOTTOM NAV (Employee)
══════════════════════════════════════════════════ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--gray-200);
    z-index: 1050;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px 8px;
    color: var(--gray-400);
    font-size: 0.6rem;
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: color var(--transition-fast);
    gap: 4px;
}

    .mobile-nav-item i {
        font-size: 20px;
    }

    .mobile-nav-item.active {
        color: var(--primary);
    }

    .mobile-nav-item:hover {
        color: var(--primary);
    }

/* ══════════════════════════════════════════════════
   25. CHART CARDS
══════════════════════════════════════════════════ */
.chart-card {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-5) var(--space-6);
    box-shadow: var(--shadow-sm);
}

    .chart-card .chart-title {
        font-size: var(--text-md);
        font-weight: var(--fw-bold);
        font-family: var(--font-heading);
        color: var(--gray-800);
        margin-bottom: var(--space-1);
    }

    .chart-card .chart-subtitle {
        font-size: var(--text-xs);
        color: var(--gray-400);
        margin-bottom: var(--space-5);
    }

/* ══════════════════════════════════════════════════
   26. DRAG & DROP OVERLAY
══════════════════════════════════════════════════ */
.drag-placeholder {
    border: 2px dashed var(--primary-light);
    border-radius: var(--radius-lg);
    background: var(--primary-xlight);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: var(--text-sm);
}

/* ══════════════════════════════════════════════════
   27. PRINT STYLES (payslip)
══════════════════════════════════════════════════ */
@media print {
    .sidebar, .topbar, .mobile-bottom-nav {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .payslip-container {
        box-shadow: none !important;
    }

    body {
        background: #fff !important;
    }
}

/* ══════════════════════════════════════════════════
   28. MISCELLANEOUS
══════════════════════════════════════════════════ */

/* Overlay backdrop */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1035;
}

    .sidebar-overlay.show {
        display: block;
    }

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

    .ripple::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        width: 120%;
        padding-top: 120%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        background: rgba(255,255,255,0.2);
        opacity: 0;
        animation: ripple-anim 0.5s linear;
    }

@keyframes ripple-anim {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.5;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Department color dots */
.dept-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Scroll to top */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
    z-index: 900;
}

    .scroll-top-btn.visible {
        opacity: 1;
        pointer-events: all;
    }

/* Back-link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-4);
}

    .back-link:hover {
        color: var(--primary-dark);
    }

/* Tag badges for skills/tech */
.tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary-xlight);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    border: 1px solid rgba(79,70,229,0.15);
}

/* KPI box */
.kpi-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all var(--transition-base);
}

    .kpi-box:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.kpi-value {
    font-size: var(--text-2xl);
    font-weight: var(--fw-extrabold);
    font-family: var(--font-heading);
    color: var(--gray-900);
}

.kpi-label {
    font-size: var(--text-xs);
    color: var(--gray-500);
    font-weight: var(--fw-medium);
}


/* ============================================================
   HRMS Responsive Styles — responsive.css
   ============================================================ */

/* ── TABLET (768px – 1199px) ── */
@media (max-width: 1199px) {
    .sidebar {
        width: var(--sidebar-collapsed);
    }

        .sidebar .brand-text, .sidebar .brand-sub,
        .sidebar .nav-label, .sidebar .nav-badge,
        .sidebar .nav-section-label,
        .sidebar .user-name, .sidebar .user-role {
            opacity: 0;
            pointer-events: none;
        }

    .main-content {
        margin-left: var(--sidebar-collapsed);
        width: calc(100% - var(--sidebar-collapsed));
    }

    /* Allow sidebar to expand on hover */
    .sidebar:hover {
        width: var(--sidebar-width);
    }

        .sidebar:hover .brand-text, .sidebar:hover .brand-sub,
        .sidebar:hover .nav-label, .sidebar:hover .nav-badge,
        .sidebar:hover .nav-section-label,
        .sidebar:hover .user-name, .sidebar:hover .user-role {
            opacity: 1;
            pointer-events: auto;
        }

    .page-body {
        padding: var(--space-5);
    }

    .kanban-board {
        gap: var(--space-3);
    }

    .kanban-col {
        min-width: 250px;
        width: 250px;
    }

    .topbar-search {
        max-width: 240px;
    }

    .profile-name, .profile-role {
        display: none;
    }
}

/* ── MOBILE (≤767px) ── */
@media (max-width: 767px) {
    /* Sidebar off-canvas on mobile */
    .sidebar {
        width: var(--sidebar-width);
        transform: translateX(-100%);
    }

        .sidebar.mobile-open {
            transform: translateX(0);
        }

            /* Restore labels when open */
            .sidebar.mobile-open .brand-text, .sidebar.mobile-open .brand-sub,
            .sidebar.mobile-open .nav-label, .sidebar.mobile-open .nav-badge,
            .sidebar.mobile-open .nav-section-label,
            .sidebar.mobile-open .user-name, .sidebar.mobile-open .user-role {
                opacity: 1;
                pointer-events: auto;
            }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .page-body {
        padding: var(--space-4);
    }

    .page-title {
        font-size: var(--text-xl);
    }

    /* Topbar adjustments */
    .topbar {
        padding: 0 var(--space-4);
        gap: var(--space-2);
    }

    .topbar-search {
        display: none;
    }

    /* Grid adjustments */
    .row-cols-md-2 > * {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .row-cols-md-3 > * {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .row-cols-md-4 > * {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Tables become card-rows on mobile */
    .table-responsive-stack thead {
        display: none;
    }

    .table-responsive-stack tbody tr {
        display: block;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-3);
        padding: var(--space-3);
        background: var(--bg-surface);
    }

    .table-responsive-stack tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 8px;
        border: none;
        font-size: var(--text-xs);
    }

        .table-responsive-stack tbody td::before {
            content: attr(data-label);
            font-weight: var(--fw-semibold);
            color: var(--gray-500);
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

    /* Cards */
    .stat-card {
        padding: var(--space-4);
    }

        .stat-card .stat-value {
            font-size: var(--text-2xl);
        }

        .stat-card .stat-icon {
            width: 44px;
            height: 44px;
            font-size: 18px;
        }

    /* Kanban */
    .kanban-board {
        flex-direction: column;
        overflow-x: visible;
    }

    .kanban-col {
        width: 100%;
        min-width: 0;
    }

    /* Modals */
    .modal-dialog {
        margin: var(--space-3);
    }

    /* Filters wrap */
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

        .filter-bar .btn {
            width: 100%;
        }

    /* Profile toggle — text hidden */
    .profile-toggle .profile-name,
    .profile-toggle .profile-role {
        display: none;
    }

    /* Map full width on mobile */
    .map-sidebar-layout {
        flex-direction: column;
    }

        .map-sidebar-layout .map-sidebar {
            width: 100%;
            max-height: 220px;
            overflow-y: auto;
        }

        .map-sidebar-layout .map-frame {
            height: 55vh;
        }

    /* Bottom nav for employee panel */
    .mobile-bottom-nav {
        display: flex;
    }

    .employee-page .page-body {
        padding-bottom: 80px;
    }

    /* Toast adjustments */
    .toast-container-custom {
        bottom: 80px;
        right: 12px;
        left: 12px;
    }

    .toast-custom {
        min-width: 0;
        max-width: 100%;
    }

    /* Attendance grid smaller */
    .att-cell {
        width: 32px;
        height: 32px;
        font-size: 0.65rem;
    }

    /* Stepper wrap */
    .stepper {
        flex-wrap: wrap;
        gap: var(--space-3);
        justify-content: flex-start;
    }

    .step-item::before {
        display: none;
    }

    /* Login */
    .login-card {
        padding: var(--space-6);
    }

    .otp-box {
        width: 44px;
        height: 50px;
        font-size: var(--text-lg);
    }
}

/* ── Extra small (≤400px) ── */
@media (max-width: 400px) {
    .otp-inputs {
        gap: 6px;
    }

    .otp-box {
        width: 40px;
        height: 46px;
    }

    .row-cols-md-4 > * {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ── LARGE DESKTOP (≥1400px) ── */
@media (min-width: 1400px) {
    .page-body {
        padding: var(--space-8);
    }

    .kanban-col {
        min-width: 300px;
        width: 300px;
    }
}

/* ── Print ── */
@media print {
    .sidebar, .topbar, .mobile-bottom-nav,
    .filter-bar .btn, .btn-primary, .btn-accent,
    .toast-container-custom {
        display: none !important;
    }

    .main-content {
        margin: 0 !important;
        width: 100% !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .card, .stat-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Floating blobs animation */
/* Floating blobs animation */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: floatBlob 8s ease-in-out infinite alternate;
}

.blob-1 {
    width: 350px;
    height: 350px;
    background: rgba(79,70,229,0.25);
    top: -80px;
    right: -80px;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: rgba(6,182,212,0.18);
    bottom: -60px;
    left: -60px;
    animation-delay: -3s;
}

.blob-3 {
    width: 180px;
    height: 180px;
    background: rgba(124,58,237,0.2);
    top: 40%;
    left: 20%;
    animation-delay: -5s;
}

@keyframes floatBlob {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, -20px) scale(1.1);
    }
}
/* Steps for OTP */
.login-step {
    display: none;
}

.login-step.active {
    display: block;
}

/* Feature list */
.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin: 3px;
}

.feature-chip i {
    color: var(--accent);
}

/* Divider */
.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.12);
}