/* public/admin/css/app.css – HRMS Saffron & Espresso Theme */

:root {
    /* ── Core Palette (change ONLY these to swap themes) ── */
    --primary: #292524;
    --primary-dark: #1C1917;
    --primary-light: #FFF7ED;
    --accent: #E8A230;
    --accent-light: #FEF3D6;
    --accent-glow: rgba(232, 162, 48, 0.15);
    --success: #10B981;
    --danger: #F43F5E;
    --warning: #FB923C;
    --info: #38BDF8;
    --black: #1E293B;
    --gray: #64748B;
    --gray-light: #94A3B8;
    --border: #E7E0D5;
    --white: #FFFFFF;
    --body-bg: #FFFBF0;

    /* ── Sidebar ── */
    --sidebar-bg-start: #292524;
    --sidebar-bg-end: #1C1917;

    /* ── Derived (auto-calculated from primary/accent) ── */
    --primary-rgb: 41, 37, 36;
    --accent-rgb: 232, 162, 48;
    --success-rgb: 16, 185, 129;
    --danger-rgb: 244, 63, 94;

    /* ── Semantic colors ── */
    --badge-active-bg: rgba(var(--success-rgb), 0.1);
    --badge-active-color: #059669;
    --badge-inactive-bg: rgba(var(--danger-rgb), 0.1);
    --badge-inactive-color: #E11D48;
    --badge-accent-color: #92400E;

    /* ── Interactive surfaces ── */
    --hover-bg: var(--primary-light);
    --focus-ring: rgba(var(--primary-rgb), 0.12);
    --focus-ring-subtle: rgba(var(--primary-rgb), 0.1);
    --primary-shadow-sm: 0 2px 8px rgba(var(--primary-rgb), 0.25);
    --primary-shadow-md: 0 4px 14px rgba(var(--primary-rgb), 0.25);
    --primary-shadow-lg: 0 8px 25px rgba(var(--primary-rgb), 0.35);
    --primary-shadow-glow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
    --primary-tint: rgba(var(--primary-rgb), 0.1);
    --primary-tint-subtle: rgba(var(--primary-rgb), 0.05);
    --primary-tint-border: rgba(var(--primary-rgb), 0.2);
    --primary-tint-active: rgba(var(--primary-rgb), 0.8);
    --accent-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.3);

    /* ── Neutral surfaces ── */
    --surface-muted: #F7F4EF;
    --surface-hover: #FDFBF7;
    --surface-disabled-bg: #F3F0EB;
    --surface-disabled-color: #C4BFB6;
    --text-heading: #1a1a2e;
    --text-muted-ui: #6b7280;
    --text-label: #374151;
    --border-subtle: #e5e7eb;
    --border-dashed: #e5e7eb;
    --surface-card: var(--white);
    --scrollbar-track: #f1f1f1;
    --scrollbar-thumb: #ccc;
    --scrollbar-thumb-hover: #aaa;

    /* ── Recycle bin specific ── */
    --bin-body-bg: #f3f4f6;
    --bin-lid: #d1d5db;

    /* ── Employee sidebar ── */
    --emp-nav-color: #495057;
    --emp-nav-hover-bg: #f8f9fa;
    --emp-nav-hover-border: #dee2e6;
    --emp-nav-active-bg: #292524;
    --emp-nav-active-border: var(--accent);

    /* ── Layout ── */
    --sidebar-width: 250px;
    --sidebar-collapsed: 70px;
    --topbar-height: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================= */
/*                  RESET & BASE                 */
/* ============================================= */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Figtree', sans-serif;
    background: var(--body-bg);
    overflow-x: hidden;
    min-height: 100vh;
    color: var(--black);
}

/* ============================================= */
/*                  SIDEBAR                      */
/* ============================================= */

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--sidebar-bg-start) 0%, var(--sidebar-bg-end) 100%);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: width var(--transition);
    z-index: 1000;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
    overflow-y: hidden;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Brand */
.brand {
    display: block;
    padding: 20px 16px;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--white);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.brand:hover {
    color: var(--white);
    opacity: 0.85;
}
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
}

.brand span.accent {
    color: var(--accent);
}

/* Nav links */
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    margin: 2px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.sidebar .nav-link i:first-child {
    font-size: 1rem;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-tint-active) 100%);
    color: var(--white);
    font-weight: 600;
    box-shadow: var(--primary-shadow-sm);
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

/* Sub-menu items */
.sidebar .collapse .nav-link,
.sidebar .collapsing .nav-link {
    font-size: 0.78rem;
    padding: 7px 14px;
    margin: 1px 8px 1px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar .collapse .nav-link:hover,
.sidebar .collapsing .nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar .collapse .nav-link.active,
.sidebar .collapsing .nav-link.active {
    color: var(--accent);
    background: rgba(245, 158, 11, 0.08);
    box-shadow: none;
}

.sidebar .collapse .nav-link.active::before {
    background: var(--accent);
    height: 40%;
}

/* Chevron arrow */
.sidebar .nav-link .ms-auto {
    font-size: 0.7rem;
    transition: transform var(--transition);
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.35);
}

.sidebar .nav-link:not(.collapsed) .ms-auto {
    transform: rotate(180deg);
}

.arrow-icon {
    transition: transform var(--transition);
    font-size: 0.65rem;
}

.rotate-down {
    transform: rotate(90deg);
}

/* Collapsed sidebar */
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .nav-link .ms-auto,
.sidebar.collapsed .arrow-icon {
    display: none;
}

.sidebar.collapsed .nav-link {
    position: relative;
    justify-content: center;
    padding: 10px;
    margin: 2px 6px;
    gap: 0;
}

.sidebar.collapsed .nav-link i:first-child {
    font-size: 1.15rem;
}

.sidebar.collapsed .brand {
    font-size: 0;
    padding: 20px 6px;
}

.sidebar.collapsed .brand::first-letter {
    font-size: 1.3rem;
}

.sidebar.collapsed .collapse,
.sidebar.collapsed .collapsing,
.sidebar.collapsed .nav-link-wrapper .collapse {
    display: none !important;
}

/* Sidebar section label */
.sidebar .nav-section-label {
    padding: 16px 16px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar.collapsed .nav-section-label {
    display: none;
}

/* ============================================= */
/*                  TOP BAR                      */
/* ============================================= */

.topbar {
    height: var(--topbar-height);
    background: var(--white);
    padding: 0 28px;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 900;
}

.sidebar.collapsed ~ .topbar {
    margin-left: var(--sidebar-collapsed);
}

/* Toggle button */
#toggleSidebar {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#toggleSidebar:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Topbar user dropdown */
.topbar .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--black);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
}

.topbar .dropdown-toggle::after {
    font-size: 0.6rem;
}

.topbar .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ============================================= */
/*                  MAIN CONTENT                 */
/* ============================================= */

.content-area {
    padding: 28px;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition);
    min-height: calc(100vh - var(--topbar-height));
}

.sidebar.collapsed ~ .content-area {
    margin-left: var(--sidebar-collapsed);
}

/* ============================================= */
/*                  CARDS                        */
/* ============================================= */

.admin-card {
    border: 0 !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.3s ease;
}

.admin-card:hover {
    box-shadow: var(--shadow-lg) !important;
}

.admin-card .card-body {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 1.5rem;
}

.admin-card .card-body .badge {
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
}

/* Card header — warm accent gradient */
.admin-header-yellow {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: var(--white) !important;
    padding: 1rem 1.5rem !important;
    font-weight: 700;
    border: none;
}

.admin-header-yellow h4,
.admin-header-yellow h5,
.admin-header-yellow h6 {
    color: var(--white) !important;
}

/* ============================================= */
/*          FLUSH CARD (Index Pages)             */
/* ============================================= */

.card-flush {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    background: var(--white);
    overflow: hidden;
}

/* Toolbar row */
.card-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--body-bg);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.toolbar-select {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border) !important;
    font-size: 0.82rem !important;
    padding: 0.3rem 2rem 0.3rem 0.6rem !important;
    background-color: var(--white) !important;
    width: auto !important;
}

.toolbar-search {
    position: relative;
    width: 240px;
}

.toolbar-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
    font-size: 0.85rem;
    pointer-events: none;
}

.toolbar-search input {
    width: 100%;
    height: 36px;
    padding: 0.4rem 0.75rem 0.4rem 2.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 0.82rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.toolbar-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Accent Add button */
.btn-accent-add {
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.25rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3);
}

.btn-accent-add:hover {
    background: #D4922A;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.4);
}

/* Accent outline button */
.btn-outline-accent {
    color: var(--accent);
    border-color: var(--accent);
    background: transparent;
}
.btn-outline-accent:hover,
.btn-outline-accent:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Count pill for related items */
.count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
}

.count-pill-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.count-pill-clickable:hover {
    background: var(--accent);
    color: #fff;
}

/* Pagination footer */
.card-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--body-bg);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ============================================= */
/*                  SEARCH BAR                   */
/* ============================================= */

.admin-search-compact {
    position: relative;
    width: 100%;
    max-width: 340px;
}

.admin-search-compact input {
    width: 100%;
    height: 44px;
    padding: 0.65rem 1rem 0.65rem 2.8rem !important;
    border-radius: var(--radius-md) !important;
    border: 1.5px solid var(--border);
    background-color: var(--white);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.admin-search-compact input:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--focus-ring) !important;
    background-color: var(--white);
}

.admin-search-compact .bi-search,
.admin-search-compact i.bi-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1rem;
    pointer-events: none;
}

/* ============================================= */
/*                  BUTTONS                      */
/* ============================================= */

.btn-create-compact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 0.6rem 1.4rem !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    box-shadow: var(--primary-shadow-md) !important;
    transition: all var(--transition) !important;
    white-space: nowrap;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-create-compact:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--sidebar-bg-end) 100%) !important;
    color: var(--accent) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--primary-shadow-lg) !important;
    text-decoration: none !important;
}

/* Form Switch & Checkbox — Saffron accent */
.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}
.form-check-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(232, 162, 48, 0.25);
}

/* Button variants */
.btn-primary-theme {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary-theme:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-accent-theme {
    background: var(--accent);
    color: var(--black);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-accent-theme:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline-theme {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-theme:hover {
    background: var(--primary);
    color: var(--white);
}

/* Disabled system buttons */
.disabled-system {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.disabled-system:hover {
    background-color: inherit;
}

/* Hover lift effect */
.hover-lift {
    transition: all var(--transition);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg) !important;
}

/* ============================================= */
/*                  TABLES                       */
/* ============================================= */

.table-theme {
    width: 100%;
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--white);
}

.table-theme thead th {
    background: var(--body-bg);
    color: var(--text-label);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border: none;
    border-bottom: 2px solid var(--border);
}

.table-theme td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--black);
}

.table-theme tbody tr:last-child td {
    border-bottom: none;
}

.table-theme tbody tr:hover {
    background-color: var(--accent-light);
}

.table-theme tbody tr:nth-child(even) {
    background-color: var(--body-bg);
}

/* Small table variant */
.table-theme.table-sm th,
.table-theme.table-sm td {
    padding: 0.5rem 0.75rem;
}

/* Responsive wrapper */
.table-responsive-theme {
    overflow-x: auto;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
}

/* Generic table header bold */
.table thead th {
    font-weight: 700 !important;
}

/* Row hover alternative */
.hover-bg-yellow-light:hover {
    background-color: var(--primary-light) !important;
    transition: background-color 0.2s ease;
}

/* ============================================= */
/*                  PAGINATION                   */
/* ============================================= */

.pagination-wrapper .pagination {
    gap: 4px;
}

.pagination-wrapper .page-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--black);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
    line-height: 1;
}

.pagination-wrapper .page-item.active .page-link {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
}

.pagination-wrapper .page-link:hover:not(.active) {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.pagination-wrapper .page-item.disabled .page-link {
    background: #F1F5F9 !important;
    color: #CBD5E1 !important;
    opacity: 0.6;
    cursor: not-allowed;
    border-color: var(--border) !important;
}

.pagination-wrapper .page-link[aria-label="Previous"],
.pagination-wrapper .page-link[aria-label="Next"] {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

/* Global pagination theme — applies to all ->links() output without needing .pagination-wrapper */
.pagination {
    gap: 4px;
}

.page-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--black);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
    line-height: 1;
}

.page-item.active .page-link {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(41, 37, 36, 0.25);
}

.page-link:hover:not(.active) {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.page-item.disabled .page-link {
    background: #F1F5F9 !important;
    color: #CBD5E1 !important;
    opacity: 0.6;
    cursor: not-allowed;
    border-color: var(--border) !important;
}

.page-link[aria-label="Previous"],
.page-link[aria-label="Next"] {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

/* ============================================= */
/*             PAGE LENGTH SELECT                */
/* ============================================= */

.form-select-sm {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 0.25rem 0.5rem;
    min-width: 60px;
    font-size: 0.85rem;
    transition: border-color 0.2s ease;
}

.form-select-sm:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* ============================================= */
/*                  TABS                         */
/* ============================================= */

.bg-theme {
    background-color: var(--primary-light);
    border-bottom: 2px solid var(--primary);
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-theme-tab {
    background-color: transparent;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.85rem;
}

.btn-theme-tab.active {
    background-color: var(--primary);
    color: var(--white);
}

.btn-theme-tab:hover:not(.active) {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-dark);
}

/* ============================================= */
/*                  BADGES                       */
/* ============================================= */

.badge-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--badge-active-color);
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    font-size: 0.78rem;
}

.badge-inactive {
    background: rgba(244, 63, 94, 0.1);
    color: var(--badge-inactive-color);
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    font-size: 0.78rem;
}

.badge-draft {
    background: rgba(100, 116, 139, 0.1);
    color: var(--gray);
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    font-size: 0.78rem;
}

.badge-primary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    font-size: 0.78rem;
}

.badge-accent {
    background: var(--accent-light);
    color: var(--badge-accent-color);
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    font-size: 0.78rem;
}

/* ============================================= */
/*               SELECT2 OVERRIDES               */
/* ============================================= */

.select2-container--bootstrap-5 .select2-selection--single {
    height: 44px !important;
    border-radius: var(--radius-sm) !important;
    border: 1.5px solid var(--border) !important;
    padding: 0 14px !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    background-color: var(--white) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--bootstrap-5 .select2-selection--single:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection--single,
.select2-container--bootstrap-5.select2-container--open .select2-selection--single {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12) !important;
}

.select2-container--bootstrap-5 .select2-selection__rendered {
    padding: 0 !important;
    line-height: normal !important;
    color: var(--black);
}

.select2-container--bootstrap-5 .select2-selection__placeholder {
    color: var(--gray) !important;
}

.select2-container--bootstrap-5 .select2-selection__arrow {
    height: 44px !important;
    width: 30px !important;
    right: 6px !important;
    top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--bootstrap-5 .select2-selection__clear {
    display: none !important;
}

.select2-container--bootstrap-5.select2-container--open .select2-dropdown {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    margin-top: 4px;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 10px 16px !important;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.select2-container {
    width: 100% !important;
}

/* Multi-select */
.select2-container--bootstrap-5 .select2-selection--multiple {
    min-height: 44px !important;
    border-radius: var(--radius-sm) !important;
    border: 1.5px solid var(--border) !important;
    padding: 4px 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    background-color: var(--white) !important;
    gap: 4px;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
    border-radius: 6px !important;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 2px 8px !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    padding: 2px 4px !important;
    line-height: normal !important;
    gap: 4px;
}

/* ============================================= */
/*                  FORMS                        */
/* ============================================= */

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1) !important;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--black);
    margin-bottom: 0.35rem;
}

.form-text {
    color: var(--gray);
    font-size: 0.78rem;
}

/* Required asterisk */
.form-label .text-danger {
    font-weight: 400;
}

/* ============================================= */
/*                  STAT CARDS                   */
/* ============================================= */

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    border-radius: 4px 0 0 4px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-card .stat-icon.bg-teal {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.stat-card .stat-icon.bg-amber {
    background: var(--accent-light);
    color: var(--badge-accent-color);
}

.stat-card .stat-icon.bg-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: var(--badge-active-color);
}

.stat-card .stat-icon.bg-rose {
    background: rgba(244, 63, 94, 0.1);
    color: var(--badge-inactive-color);
}

.stat-card .stat-icon.bg-indigo {
    background: var(--accent-light);
    color: var(--accent);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ============================================= */
/*                  MODULE CARDS                 */
/* ============================================= */

.module-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 1.25rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--border);
    transition: background var(--transition);
}

.module-card.is-enabled::before {
    background: var(--badge-active-color);
}

.module-card.is-disabled::before {
    background: var(--badge-inactive-color);
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.module-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.module-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.module-icon.bg-teal {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.module-icon.bg-amber {
    background: var(--accent-light);
    color: var(--badge-accent-color);
}

.module-icon.bg-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: var(--badge-active-color);
}

.module-icon.bg-rose {
    background: rgba(244, 63, 94, 0.1);
    color: var(--badge-inactive-color);
}

.module-icon.bg-indigo {
    background: var(--accent-light);
    color: var(--accent);
}

.module-card .module-name {
    font-weight: 700;
    color: var(--black);
    font-size: 0.98rem;
}

.module-card .module-desc {
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.4;
}

.module-expand-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0;
    margin-top: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.module-expand-btn .arrow-icon {
    font-size: 0.65rem;
}

.module-children-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0.75rem 0 0;
    border-top: 1px dashed var(--border);
}

.module-children-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0;
    font-size: 0.82rem;
}

.module-children-list li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.form-switch-lg .form-check-input {
    width: 2.6rem;
    height: 1.4rem;
    cursor: pointer;
    margin-top: 0;
}

.form-switch-lg .form-check-input:checked {
    background-color: var(--badge-active-color);
    border-color: var(--badge-active-color);
}

.form-switch-sm .form-check-input {
    width: 2rem;
    height: 1.1rem;
    cursor: pointer;
    margin-top: 0;
}

.form-switch-sm .form-check-input:checked {
    background-color: var(--badge-active-color);
    border-color: var(--badge-active-color);
}

/* ============================================= */
/*                  MODALS                       */
/* ============================================= */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    background: var(--white);
    color: var(--black);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    border-left: 4px solid var(--accent);
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-heading);
}

.modal-header .btn-close {
    filter: none;
    opacity: 0.4;
}

.modal-header .btn-close:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--body-bg);
}

/* Modal buttons */
.btn-modal-cancel {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
    background: var(--surface-muted);
    border-color: var(--primary);
}

.btn-modal-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.45rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: var(--primary-shadow-sm);
}

.btn-modal-submit:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--primary-shadow-md);
}

/* Filter bar buttons — match form-control-sm height */
.btn-filter {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.85rem;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-filter-clear {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.85rem;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-filter-clear:hover {
    background: var(--surface-muted);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-modal-danger {
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.45rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-modal-danger:hover,
.btn-modal-danger-confirm {
    background: #DC2626;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--danger-rgb), 0.35);
}

.btn-modal-warning {
    background: var(--warning);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.45rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-modal-warning:hover {
    background: #EA580C;
    color: var(--white);
    transform: translateY(-1px);
}

/* Modal icon rings for confirmation modals */
.modal-icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.modal-icon-ring.danger {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
    border: 2px solid rgba(var(--danger-rgb), 0.2);
}

.modal-icon-ring.warning {
    background: rgba(251, 146, 60, 0.1);
    color: var(--warning);
    border: 2px solid rgba(251, 146, 60, 0.2);
}

/* ============================================= */
/*                  TOASTS                       */
/* ============================================= */

#toast-container > .toast-success,
#toast-container > .toast-error,
#toast-container > .toast-warning,
#toast-container > .toast-info {
    background-image: none !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    padding: 14px 18px 14px 48px !important;
    font-family: 'Figtree', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    border-left: 4px solid transparent !important;
}

#toast-container > .toast-success {
    background-color: #FEFCE8 !important;
    color: #713f12 !important;
    border-left-color: var(--accent) !important;
}

#toast-container > .toast-success::before {
    content: '\F26A';
    font-family: 'bootstrap-icons' !important;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--accent);
}

#toast-container > .toast-error {
    background-color: #FEF2F2 !important;
    color: #991B1B !important;
    border-left-color: var(--danger) !important;
}

#toast-container > .toast-error::before {
    content: '\F623';
    font-family: 'bootstrap-icons' !important;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--danger);
}

#toast-container > .toast-warning {
    background-color: #FFFBEB !important;
    color: #92400E !important;
    border-left-color: var(--warning) !important;
}

#toast-container > .toast-warning::before {
    content: '\F33B';
    font-family: 'bootstrap-icons' !important;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--warning);
}

#toast-container > .toast-info {
    background-color: #EFF6FF !important;
    color: #1E40AF !important;
    border-left-color: var(--info) !important;
}

#toast-container > .toast-info::before {
    content: '\F431';
    font-family: 'bootstrap-icons' !important;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--info);
}

#toast-container > div {
    position: relative;
}

#toast-container .toast-close-button {
    color: inherit !important;
    opacity: 0.5;
    font-weight: 400;
    font-size: 1.1rem;
    text-shadow: none !important;
}

#toast-container .toast-close-button:hover {
    opacity: 1;
}

#toast-container .toast-progress {
    height: 3px !important;
    opacity: 0.3 !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
}

/* ============================================= */
/*           PAGE HEADER / BREADCRUMB            */
/* ============================================= */

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h4 {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--black);
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--gray);
}

/* ============================================= */
/*               UTILITY CLASSES                 */
/* ============================================= */

.bg-purple {
    background-color: var(--primary) !important;
    color: white !important;
}

/* Override Bootstrap blue defaults to match theme */
.text-primary {
    color: var(--accent) !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.text-primary-theme {
    color: var(--primary) !important;
}

.text-accent-theme {
    color: var(--accent) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.border-primary-theme {
    border-color: var(--primary) !important;
}

/* ============================================= */
/*          TABLE ACTION BUTTONS                 */
/* ============================================= */

.btn-action {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Edit — warm accent tint */
.btn-action-edit {
    background: var(--accent-light);
    color: var(--accent);
}

.btn-action-edit:hover {
    background: var(--accent);
    color: var(--white);
}

/* View — primary tint */
.btn-action-view {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.btn-action-view:hover {
    background: var(--primary);
    color: var(--white);
}

/* Delete — danger tint */
.btn-action-delete {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
}

.btn-action-delete:hover {
    background: var(--danger);
    color: var(--white);
}

/* Disable / Warning — orange tint */
.btn-action-warning {
    background: #FFF0E0;
    color: #D97706;
}

.btn-action-warning:hover {
    background: var(--warning);
    color: var(--white);
}

/* Enable / Activate — green tint */
.btn-action-activate {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success);
}

.btn-action-activate:hover {
    background: var(--success);
    color: var(--white);
}

/* Cancel / Neutral — gray tint, for inline-edit "Cancel" actions */
.btn-action-cancel {
    background: var(--surface-muted);
    color: var(--gray);
}

.btn-action-cancel:hover {
    background: var(--gray-light);
    color: var(--white);
}

/* ============================================= */
/*          LOADING / SPINNER                    */
/* ============================================= */

.spinner-theme {
    color: var(--primary);
}

.overlay-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

/* ============================================= */
/*              LOGIN PAGE                       */
/* ============================================= */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-tint-active) 100%);
    padding: 2rem;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.login-card .login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .login-logo h2 {
    font-weight: 900;
    color: var(--primary-dark);
    font-size: 1.6rem;
}

/* ============================================= */
/*               USERS MODULE                    */
/* ============================================= */

.user-sidebar-col {
    width: 180px;
    min-width: 180px;
}

.user-content-col {
    flex: 1;
    min-width: 0;
}

.row > .user-sidebar-col,
.row > .user-content-col {
    flex: none;
}

.row > .user-content-col {
    flex: 1;
}

.user-sidebar-sticky {
    top: 1rem;
}

.user-role-list .list-group-item.active,
.user-sidebar-col .list-group-item.active {
    background-color: var(--emp-nav-active-bg) !important;
    border-color: var(--emp-nav-active-bg) !important;
    color: #fff !important;
}

.user-role-list .list-group-item:not(.active):hover,
.user-sidebar-col .list-group-item:not(.active):hover {
    background-color: var(--emp-nav-hover-bg);
}

.user-table th,
.user-table td,
.employee-results .list-group-item {
    font-size: 0.75rem;
}

.user-section-title {
    font-size: 0.8rem;
}

.employee-search-wrap {
    max-width: 520px;
}

.employee-results {
    top: calc(100% + 4px);
    z-index: 1050;
    max-height: 240px;
    overflow-y: auto;
    border-radius: 0.5rem;
}

.login-card .login-logo h2 span {
    color: var(--accent);
}

.login-card .btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.2s ease;
}

.login-card .btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

/* ============================================= */
/*           EMPLOYEE AVATAR                     */
/* ============================================= */

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.employee-avatar.lg {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
}

.employee-avatar.sm {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
}

/* ============================================= */
/*           STATUS INDICATORS                   */
/* ============================================= */

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.active { background: var(--success); }
.status-dot.inactive { background: var(--danger); }
.status-dot.draft { background: var(--gray-light); }
.status-dot.pending { background: var(--warning); }

/* ============================================= */
/*           RESPONSIVE                          */
/* ============================================= */

@media (max-width: 991.98px) {
    .sidebar {
        width: var(--sidebar-collapsed);
    }

    .sidebar .nav-link span,
    .sidebar .nav-link .ms-auto,
    .sidebar .arrow-icon,
    .sidebar .nav-section-label {
        display: none;
    }

    .sidebar .nav-link {
        justify-content: center;
        padding: 10px;
        margin: 2px 6px;
        gap: 0;
    }

    .sidebar .nav-link i:first-child {
        font-size: 1.15rem;
    }

    .sidebar .brand {
        font-size: 0;
        padding: 20px 6px;
    }

    .sidebar .brand::first-letter {
        font-size: 1.3rem;
    }

    .sidebar .collapse,
    .sidebar .collapsing {
        display: none !important;
    }

    .topbar {
        margin-left: var(--sidebar-collapsed);
    }

    .content-area {
        margin-left: var(--sidebar-collapsed);
        padding: 16px;
    }
}

@media (max-width: 575.98px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }

    .sidebar.mobile-open {
        width: var(--sidebar-width);
    }

    .topbar {
        margin-left: 0;
        padding: 0 16px;
    }

    .content-area {
        margin-left: 0;
        padding: 12px;
    }

    .admin-search-compact {
        max-width: 100%;
    }
}

/* ============================================= */
/*       RESPONSIVE: SMALL LAPTOPS (≤992px)      */
/* ============================================= */

@media (max-width: 991.98px) {
    .toolbar-search { width: 180px; }
    .btn-accent-add { padding: 0.45rem 1rem; font-size: 0.8rem; }
    .btn-action { width: 30px; height: 30px; font-size: 0.78rem; }
    .btn-filter, .btn-filter-clear { padding: 0.2rem 0.7rem; font-size: 0.75rem; }
}

/* ============================================= */
/*       RESPONSIVE: TABLETS (≤768px)            */
/* ============================================= */

@media (max-width: 767.98px) {
    .card-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .toolbar-search { width: 100%; }
    .card-pagination {
        flex-direction: column;
        text-align: center;
    }
    .btn-accent-add { width: 100%; text-align: center; }
}

/* ============================================= */
/*       RESPONSIVE: MOBILE (≤576px)             */
/* ============================================= */

@media (max-width: 575.98px) {
    .btn-action { width: 28px; height: 28px; font-size: 0.75rem; border-radius: 6px; }
    .count-pill { min-width: 24px; height: 20px; font-size: 0.7rem; }
}

/* ============================================= */
/*           PRINT                               */
/* ============================================= */

@media print {
    .sidebar,
    .topbar,
    #toggleSidebar {
        display: none !important;
    }

    .content-area {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .admin-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

        /* ============================================= */
        /*              RECYCLE BIN HUB                  */
        /* ============================================= */

        .recycle-bin-page {
            min-height: 80vh;
        }

        .recycle-hero {
            text-align: center;
            padding: 1rem 0 1.5rem;
        }

        .recycle-hero-icon {
            width: 56px;
            height: 56px;
            background: var(--accent);
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: #fff;
            box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.3);
            animation: heroFloat 4s ease-in-out infinite;
        }

        .recycle-hero h2 {
            font-weight: 800;
            margin-top: 0.6rem;
            margin-bottom: 0.15rem;
            font-size: 1.4rem;
            color: var(--text-heading);
        }

        .recycle-hero p {
            color: var(--text-muted-ui);
            font-size: 0.85rem;
            margin: 0;
        }

        .recycle-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 1rem;
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .recycle-bin-card {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 1.25rem 0.75rem;
            background: #fff;
            border: 1px solid var(--border-subtle);
            border-radius: 14px;
            text-decoration: none;
            transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
            overflow: hidden;
            animation: cardEntrance 0.5s ease forwards;
            opacity: 0;
            transform: translateY(12px) scale(0.96);
        }

        .recycle-bin-card::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--accent);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.4s ease;
        }

        .recycle-bin-card:hover::before {
            transform: scaleX(1);
        }

        .recycle-bin-card:hover {
            transform: translateY(-6px) scale(1.03);
            box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.15);
            border-color: var(--accent);
        }

        /* Trash bin visual */
        .bin-container {
            position: relative;
            width: 56px;
            height: 56px;
            margin-bottom: 0.75rem;
        }

        .bin-body {
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 42px;
            background: var(--bin-body-bg);
            border: 1px solid var(--border-subtle);
            border-radius: 0 0 8px 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .bin-body i {
            font-size: 1.2rem;
            color: var(--text-muted-ui);
            transition: all 0.3s ease;
        }

        .bin-lid {
            position: absolute;
            top: 6px;
            left: 50%;
            transform: translateX(-50%);
            width: 44px;
            height: 6px;
            background: var(--bin-lid);
            border-radius: 3px;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            transform-origin: left center;
        }

        .bin-lid::after {
            content: '';
            position: absolute;
            top: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 14px;
            height: 6px;
            background: var(--bin-lid);
            border-radius: 3px 3px 0 0;
            transition: background 0.3s ease;
        }

        .recycle-bin-card:hover .bin-lid {
            transform: translateX(-50%) rotate(-30deg) translateY(-5px);
            background: var(--accent);
        }

        .recycle-bin-card:hover .bin-lid::after {
            background: var(--accent);
        }

        .recycle-bin-card:hover .bin-body {
            background: rgba(var(--primary-rgb), 0.05);
            border-color: var(--accent);
        }

        .recycle-bin-card:hover .bin-body i {
            color: var(--text-heading);
            transform: scale(1.15);
        }

        /* Particles */
        .bin-particles {
            position: absolute;
            top: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 16px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .recycle-bin-card:hover .bin-particles {
            opacity: 1;
        }

        .bin-particles span {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--accent);
            border-radius: 50%;
            animation: particleRise 0.7s ease-out infinite;
        }

        .bin-particles span:nth-child(1) { left: 15%; animation-delay: 0s; }
        .bin-particles span:nth-child(2) { left: 35%; animation-delay: 0.12s; }
        .bin-particles span:nth-child(3) { left: 55%; animation-delay: 0.24s; }
        .bin-particles span:nth-child(4) { left: 75%; animation-delay: 0.36s; }
        .bin-particles span:nth-child(5) { left: 50%; animation-delay: 0.5s; width: 3px; height: 3px; }

        .bin-label {
            font-weight: 700;
            font-size: 0.78rem;
            color: var(--text-label);
            transition: color 0.3s ease;
            text-align: center;
            line-height: 1.3;
        }

        .recycle-bin-card:hover .bin-label {
            color: var(--text-heading);
        }

        @keyframes heroFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        @keyframes cardEntrance {
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes particleRise {
            0% { transform: translateY(0) scale(1); opacity: 1; }
            100% { transform: translateY(-14px) scale(0); opacity: 0; }
        }

        /* ============================================= */
        /*         RECYCLE BIN DETAIL PAGES              */
        /* ============================================= */

        .recycle-detail-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .recycle-detail-header h4 {
            font-weight: 800;
            margin: 0;
        }

        .recycle-detail-header h4 i {
            color: var(--accent);
        }

        .recycle-items-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 1.5rem;
        }

        .recycle-item-card {
            position: relative;
            background: #fff;
            border: 1px solid var(--border-subtle);
            border-radius: 20px;
            padding: 1.75rem 1.25rem 1.25rem;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            overflow: visible;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        }

        .recycle-item-card::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 3px;
            background: var(--accent);
            border-radius: 3px;
            transition: width 0.4s ease;
        }

        .recycle-item-card:hover::before {
            width: 60%;
        }

        .recycle-item-card:hover {
            border-color: var(--accent);
            box-shadow: 0 12px 36px rgba(var(--primary-rgb), 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
            transform: translateY(-4px);
        }

        .recycle-item-top {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.6rem;
            margin-bottom: 0.75rem;
        }

        .recycle-item-icon {
            width: 56px;
            height: 56px;
            min-width: 56px;
            background: linear-gradient(135deg, var(--surface-hover) 0%, var(--bin-body-bg) 100%);
            border: 2px solid var(--border-subtle);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            color: var(--text-muted-ui);
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        }

        .recycle-item-card:hover .recycle-item-icon {
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.1) 100%);
            border-color: var(--accent);
            color: var(--text-heading);
            transform: scale(1.1) rotate(-5deg);
            box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.2);
        }

        .recycle-item-info {
            flex: 1;
            min-width: 0;
            text-align: center;
        }

        .recycle-item-name {
            font-weight: 700;
            font-size: 1.05rem;
            color: var(--text-heading);
            margin-bottom: 0.3rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .recycle-item-meta {
            font-size: 0.8rem;
            color: var(--text-muted-ui);
            line-height: 1.6;
        }

        .recycle-item-meta span {
            display: inline-block;
            margin: 0 0.35rem;
        }

        .recycle-item-actions {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1rem;
            padding-top: 0.85rem;
            border-top: 1px dashed var(--border-dashed);
        }

        .recycle-item-actions .btn {
            width: 36px;
            height: 36px;
            padding: 0;
            border-radius: 50%;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .recycle-item-actions .btn-outline-success:hover {
            background: #22c55e;
            color: #fff;
            border-color: #22c55e;
            transform: scale(1.15);
            box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
        }

        .recycle-item-actions .btn-outline-danger:hover {
            background: #ef4444;
            color: #fff;
            border-color: #ef4444;
            transform: scale(1.15);
            box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
        }

        .recycle-empty-state {
            text-align: center;
            padding: 5rem 2rem;
            background: #fff;
            border: 1px dashed var(--border-dashed);
            border-radius: 20px;
        }

        .recycle-empty-state i {
            font-size: 4rem;
            color: var(--bin-lid);
            margin-bottom: 1rem;
            display: block;
        }

        .recycle-empty-state p {
            color: var(--text-muted-ui);
            font-size: 0.95rem;
            font-weight: 500;
        }

        .recycle-search-bar {
            background: #fff;
            border: 1px solid var(--border-subtle);
            border-radius: 50px;
            padding: 0.6rem 1.25rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .recycle-search-bar:focus-within {
            border-color: var(--accent);
            box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.1);
        }

        .recycle-search-bar input {
            border: none;
            background: transparent;
            padding: 0.4rem 0.5rem;
            font-size: 0.85rem;
            flex: 1;
            min-width: 200px;
            outline: none;
        }

        .recycle-search-bar input:focus {
            outline: none;
            box-shadow: none;
        }

        .recycle-pagination {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 1px dashed var(--border-dashed);
        }

/* ═══════════════════════════════════════════════════
   Employee Sidebar Layout
   ═══════════════════════════════════════════════════ */
.emp-sidebar-col {
    width: 200px;
    min-width: 200px;
}
.emp-content-col {
    flex: 1;
    min-width: 0;
}
.row > .emp-sidebar-col,
.row > .emp-content-col {
    flex: none;
}
.row > .emp-content-col {
    flex: 1;
}

/* Sidebar nav pills */
.emp-sidebar-nav .nav-link {
    font-size: 0.78rem;
    padding: 0.5rem 0.75rem;
    color: var(--emp-nav-color);
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}
.emp-sidebar-nav .nav-link:hover:not(.disabled) {
    background-color: var(--emp-nav-hover-bg);
    border-left-color: #dee2e6;
}
.emp-sidebar-nav .nav-link.active {
    background-color: var(--emp-nav-active-bg);
    color: #fff;
    border-left-color: var(--emp-nav-active-border);
    font-weight: 600;
}
.emp-sidebar-nav .nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.emp-sidebar-nav .nav-link .badge {
    font-size: 0.6rem;
}

/* Responsive: stack sidebar on small screens */
@media (max-width: 767.98px) {
    .emp-sidebar-col {
        width: 100%;
        min-width: 100%;
    }
    .emp-sidebar-nav {
        flex-direction: row !important;
        overflow-x: auto;
        white-space: nowrap;
    }
    .emp-sidebar-nav .nav-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        display: inline-block;
    }
    .emp-sidebar-nav .nav-link.active {
        border-bottom-color: var(--emp-nav-active-border);
    }
}

/* ===== Kanban Board =====
.kanban-column { width: 280px; }
.kanban-cards { min-height: 200px; max-height: 60vh; overflow-y: auto; }
.kanban-board::-webkit-scrollbar { height: 8px; }
.kanban-board::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.kanban-board::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.kanban-board::-webkit-scrollbar-thumb:hover { background: #aaa; }
.kanban-column .card { transition: box-shadow 0.2s; }
.kanban-column .card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important; }

/* ============================================= */
/*           PROFILE PAGE                        */
/* ============================================= */

.profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.profile-avatar-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    padding: 3px;
    margin: 0 auto;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 1px;
}

.profile-card .input-group-text {
    background: var(--primary-light);
    border-color: var(--border);
    color: var(--accent);
}

/* ============================================= */
/*           TOPBAR GREETING                     */
/* ============================================= */

.topbar-greeting {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-left: 1rem;
    gap: 0.4rem;
    animation: greetSlideIn 0.6s ease-out both;
}

.greeting-icon {
    font-size: 1.15rem;
    color: var(--accent);
    animation: greetPulse 2.5s ease-in-out infinite;
}

.greeting-text {
    opacity: 0.75;
}

.greeting-name {
    font-weight: 700;
    color: var(--accent);
}

@keyframes greetSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes greetPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25%      { transform: scale(1.15) rotate(8deg); }
    50%      { transform: scale(1) rotate(0deg); }
    75%      { transform: scale(1.1) rotate(-5deg); }
}

/* ============================================= */
/*         PERSONALITY & MICRO-ANIMATIONS        */
/* ============================================= */

/* Bouncy card hover */
.admin-card {
    transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.admin-card:hover {
    transform: translateY(-2px) !important;
}

/* Smooth badge pulse for active status */
.badge-active {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Toggle button playful bounce */
#toggleSidebar {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#toggleSidebar:active {
    transform: scale(0.9);
}

/* User avatar ring on hover */
.topbar .user-avatar {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.topbar .dropdown:hover .user-avatar {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
    transform: scale(1.05);
}

/* Stat card bounce on hover */
.stat-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.stat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-lg) !important;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Topbar icon buttons */
.topbar-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    background: var(--primary-light);
    transition: all 0.2s ease;
    text-decoration: none;
}

.topbar-icon-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
    transform: scale(1.08);
}

/* Notification bell wiggle on new notifications */
.topbar .bi-bell {
    transition: transform 0.3s ease;
}

.topbar .dropdown:hover .bi-bell {
    animation: bellWiggle 0.6s ease;
}

@keyframes bellWiggle {
    0% { transform: rotate(0); }
    20% { transform: rotate(12deg); }
    40% { transform: rotate(-8deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-3deg); }
    100% { transform: rotate(0); }
}

/* Sidebar link ripple on click */
.sidebar .nav-link:active {
    transform: scale(0.97);
}

/* Modal enter animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease !important;
}

/* Brand accent color updated to emerald */
.brand span.accent {
    color: var(--accent);
}

/* ============================================= */
/*         CANDIDATE PROFILE PAGES               */
/* ============================================= */

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

.candidate-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 1.5rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.candidate-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.12);
    transform: translateY(-4px);
}

.candidate-card.is-blacklisted {
    border-color: rgba(244, 63, 94, 0.35);
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.05), #fff 70px);
}

.candidate-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
}

.candidate-card.is-blacklisted .candidate-avatar {
    background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
}

.candidate-name {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text-heading);
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.candidate-meta {
    font-size: 0.8rem;
    color: var(--text-muted-ui);
    line-height: 1.55;
}

.candidate-meta span {
    display: block;
}

.candidate-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border-dashed);
}

/* Profile header */
.profile-header-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.profile-header-card.is-blacklisted {
    background: linear-gradient(135deg, #be123c 0%, #7f1d2e 100%);
}

.profile-avatar-lg {
    width: 84px;
    height: 84px;
    min-width: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
}

/* Vertical timeline */
.candidate-timeline {
    position: relative;
    padding-left: 2rem;
}

.candidate-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border-subtle);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 0 0 4px #fff;
}

.timeline-dot.bg-success { background: #10b981 !important; }
.timeline-dot.bg-danger { background: #f43f5e !important; }
.timeline-dot.bg-warning { background: #f59e0b !important; }
.timeline-dot.bg-secondary { background: #64748b !important; }

/* ═══════════════════════════════════════════════════
   Interview Module Badges & Cards
   ═══════════════════════════════════════════════════ */

.badge-scheduled {
    background: rgba(var(--accent-rgb), 0.12);
    color: #92400E;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    font-size: 0.75rem;
}

.badge-completed {
    background: rgba(var(--success-rgb), 0.1);
    color: #059669;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    font-size: 0.75rem;
}

.badge-cancelled {
    background: rgba(var(--danger-rgb), 0.1);
    color: #E11D48;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    font-size: 0.75rem;
}

.badge-no-show {
    background: rgba(251, 146, 60, 0.12);
    color: #C2410C;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    font-size: 0.75rem;
}

.badge-rescheduled {
    background: rgba(251, 146, 60, 0.12);
    color: #C2410C;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    font-size: 0.75rem;
}

.badge-type {
    background: var(--surface-muted);
    color: var(--gray);
    font-weight: 500;
    padding: 0.3em 0.65em;
    border-radius: 5px;
    font-size: 0.72rem;
    border: 1px solid var(--border);
}

.badge-panelist {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
    padding: 0.25em 0.6em;
    border-radius: 5px;
    font-size: 0.7rem;
    border: 1px solid var(--border);
}

.interview-card {
    border-left: 3px solid var(--accent);
    transition: transform 0.15s, box-shadow 0.15s;
}
.interview-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.interview-card--upcoming {
    border-left-color: var(--accent);
}
.interview-card--past {
    border-left-color: var(--border);
}
.interview-card--cancelled {
    border-left-color: var(--danger);
    opacity: 0.75;
}

.schedule-card {
    border-left: 3px solid var(--border);
}
.schedule-card--active {
    border-left-color: var(--accent);
}
.schedule-card--cancelled {
    border-left-color: var(--danger);
    opacity: 0.7;
}

.interview-table th {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--border);
    background: transparent;
}
.interview-table td {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border-subtle);
}
.interview-table tbody tr:hover {
    background: var(--primary-light);
}

.stat-card {
    text-align: center;
    padding: 1rem;
}
.stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-card__value--accent {
    color: var(--accent);
}
.stat-card__value--success {
    color: var(--success);
}
.stat-card__value--warning {
    color: var(--warning);
}
.stat-card__value--danger {
    color: var(--danger);
}
.stat-card__label {
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 0.25rem;
}
