:root {
    /* Premium Glassmorphism Dark Theme */
    --bg-dark: #07070a;
    /* We use highly transparent surfaces for glassmorphism */
    --bg-surface: rgba(18, 18, 22, 0.65);
    --bg-surface-light: rgba(30, 30, 38, 0.5);
    --bg-card: rgba(20, 20, 24, 0.45);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Neons & Accents (Gradients) */
    --accent-blue: #4f46e5;
    --accent-blue-hover: #6366f1;
    
    --color-admin: #a855f7; /* Vibrant Purple */
    --color-recruiter: #3b82f6; /* Electric Blue */
    --color-applicant: #f59e0b; /* Sunset Yellow */
    
    --grad-admin: linear-gradient(135deg, #a855f7, #6366f1);
    --grad-recruiter: linear-gradient(135deg, #3b82f6, #06b6d4);
    --grad-applicant: linear-gradient(135deg, #f59e0b, #ef4444);
    
    /* Status */
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-danger: #ef4444;
    --status-info: #3b82f6;

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    /* Subtle radial gradient background to add depth */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.04), transparent 25%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--text-primary); text-decoration: none; transition: color 0.3s ease; }
ul { list-style: none; }

/* Page load animation */
.auth-split {
    animation: fadeSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeSlideIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn-primary { 
    background: var(--grad-recruiter); 
    color: #fff; 
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); 
}
.btn-admin { background: var(--grad-admin); color: #fff; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.btn-admin:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4); }

.btn-recruiter-solid { background: var(--grad-recruiter); color: #fff; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.btn-recruiter-solid:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); }

.btn-applicant-solid { background: var(--grad-applicant); color: #fff; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; transition: all 0.3s; }
.btn-applicant-solid:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }

.btn-outline { 
    background: rgba(255,255,255,0.03); 
    border: 1px solid var(--border-color); 
    color: var(--text-secondary); 
    backdrop-filter: blur(5px);
}
.btn-outline:hover { 
    border-color: rgba(255,255,255,0.3); 
    color: var(--text-primary); 
    background: rgba(255,255,255,0.08); 
    transform: translateY(-1px);
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.75rem; color: var(--text-secondary); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.form-control:focus { 
    outline: none; 
    border-color: rgba(245, 158, 11, 0.5); 
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); 
}

/* Premium Custom Select & Dropdown Option Styling */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f59e0b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1em;
    padding-right: 2.75rem;
    cursor: pointer;
    background-color: #141418 !important;
    color: #ffffff !important;
}

select.form-control option {
    background-color: #141418 !important;
    color: #ffffff !important;
    padding: 0.8rem 1rem !important;
    font-size: 0.92rem;
}

select.form-control option:hover,
select.form-control option:focus,
select.form-control option:active,
select.form-control option:checked {
    background: #f59e0b !important;
    color: #000000 !important;
}

html[data-theme="light"] select.form-control,
.theme-light select.form-control {
    background-color: #ffffff !important;
    color: #0f172a !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

html[data-theme="light"] select.form-control option,
.theme-light select.form-control option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

html[data-theme="light"] select.form-control option:checked,
html[data-theme="light"] select.form-control option:hover,
.theme-light select.form-control option:checked,
.theme-light select.form-control option:hover {
    background-color: #f59e0b !important;
    color: #ffffff !important;
}

/* Layout - Sidebar (Glassmorphism) */
.sidebar {
    width: 260px;
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}
.sidebar-header {
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.logo-sub {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}
.sidebar-nav {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}
.nav-section { margin-bottom: 2rem; }
.nav-section-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.nav-item i { width: 1.5rem; font-size: 0.95rem; opacity: 0.8; transition: opacity 0.3s; }
.nav-item:hover { 
    color: var(--text-primary); 
    background: rgba(255,255,255,0.03); 
    transform: translateX(3px);
}
.nav-item:hover i { opacity: 1; }
/* Gradients for active nav items based on role */
.nav-item.active { 
    color: #fff; 
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
aside .nav-item.active { background: var(--grad-admin); } /* Default for admin */
aside:has(.logo-text span[style*="color: var(--color-recruiter)"]) .nav-item.active { background: var(--grad-recruiter); }

.nav-badge { background: rgba(255,255,255,0.1); color: #fff; padding: 0.15rem 0.5rem; border-radius: 12px; font-size: 0.7rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.05); }
.nav-badge.danger { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }

.sidebar-footer {
    padding: 1rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    margin-top: auto !important;
}

/* Ensure no vertical colored line, decorative bar, or pseudo-element appears beside profile or nav items */
.sidebar-footer::before,
.sidebar-footer::after,
.sidebar-footer *,
.sidebar-footer *::before,
.sidebar-footer *::after,
.avatar::before,
.avatar::after,
.user-info::before,
.user-info::after,
.nav-item::before,
.nav-item::after,
.app-nav-item::before,
.app-nav-item::after {
    border-left: none !important;
    border-right: none !important;
}

.sidebar-footer::before,
.sidebar-footer::after,
.avatar::before,
.avatar::after,
.user-info::before,
.user-info::after,
.nav-item::before,
.nav-item::after,
.app-nav-item::before,
.app-nav-item::after {
    content: none !important;
    display: none !important;
}

.avatar { 
    width: 36px; height: 36px; 
    min-width: 36px; min-height: 36px;
    flex-shrink: 0 !important;
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-weight: 700; font-size: 0.9rem; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    overflow: hidden;
}

.avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 50% !important;
}

.user-info { 
    display: flex; 
    flex-direction: column; 
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.user-name { 
    font-size: 0.82rem; 
    font-weight: 600; 
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role { 
    font-size: 0.65rem; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    margin-top: 0.1rem; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content */
.main-wrapper {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* ========================================================================= */
/* BULLET-PROOF TOP NAVIGATION BAR & HEADER SYSTEM                           */
/* ========================================================================= */
.top-nav {
    min-height: 64px;
    height: auto !important;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 0.75rem;
    flex-wrap: nowrap !important;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

.top-nav-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.top-nav-left > .header-title-box,
.top-nav-left > div:not(.mobile-menu-toggle):not(.page-title) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.page-title {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    font-weight: 800;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.55rem !important;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.page-title i {
    display: inline-block !important;
    flex-shrink: 0 !important;
    font-size: 1.1rem;
}

.page-title span {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-top: 0.15rem;
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
    flex-shrink: 0;
}

.top-nav-actions .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.quota-pill-badge {
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 0.4rem 0.85rem;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* MEDIA QUERY ADAPTATIONS FOR TOP NAV */
@media (max-width: 1024px) {
    .top-nav {
        padding: 0.55rem 1rem !important;
        min-height: 56px !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }
    
    .page-subtitle {
        display: none !important; /* Hide subtitle on tablet/mobile so title remains clean on 1 line */
    }

    .top-nav-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.35rem !important;
        flex-wrap: nowrap !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    .top-nav-actions .btn {
        min-height: 34px !important;
        height: 34px !important;
        padding: 0.3rem 0.6rem !important;
        font-size: 0.76rem !important;
        white-space: nowrap !important;
        border-radius: 8px !important;
    }

    .quota-pill-badge {
        min-height: 32px !important;
        height: 32px !important;
        padding: 0.25rem 0.55rem !important;
        font-size: 0.74rem !important;
        white-space: nowrap !important;
    }

    .quota-label-text {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0.45rem 0.75rem !important;
        gap: 0.4rem !important;
        min-height: 54px !important;
    }

    .page-title {
        font-size: 0.9rem !important;
    }

    .nav-btn-hide-mobile {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 0.35rem 0.5rem !important;
        gap: 0.35rem !important;
        min-height: 50px !important;
    }

    .page-title {
        font-size: 0.82rem !important;
    }

    .page-title i {
        font-size: 0.95rem !important;
    }

    .top-nav-actions .btn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.72rem !important;
        min-height: 32px !important;
        height: 32px !important;
    }

    .top-nav-actions .btn .btn-text-label {
        display: none !important;
    }

    .content-area {
        padding: 0.85rem 0.65rem !important;
    }
}

.content-area {
    padding: 2rem;
    flex: 1;
}

/* Cards & Dashboards (Glassmorphism) */
.grid-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.grid-main { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
.grid-bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }

.dashboard-grid {
    display: grid;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}
.dash-card, .card, .settings-card {
    background: linear-gradient(135deg, rgba(30, 30, 38, 0.65), rgba(20, 20, 24, 0.45));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.dash-card:hover, .card:hover {
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6), inset 0 1px 2px rgba(255, 255, 255, 0.15);
}
.dash-card-header, .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.dash-card-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); font-family: var(--font-heading); letter-spacing: 0.5px;}
.dash-card-subtitle { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

.stat-box { position: relative; overflow: hidden; }
.stat-box::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%); opacity: 0; transition: opacity 0.5s; pointer-events: none;}
.stat-box:hover::before { opacity: 1; }
.stat-box::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; border-radius: 3px 3px 0 0; }
.stat-box.primary::after { background: var(--grad-admin); }
.stat-box.success::after { background: var(--status-success); }
.stat-box.warning::after { background: var(--status-warning); }
.stat-box.danger::after { background: var(--status-danger); }

.stat-label { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 0.75rem; }
.stat-number { font-size: 2.75rem; font-weight: 700; line-height: 1; margin-bottom: 0.75rem; font-family: var(--font-heading); letter-spacing: 1px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.stat-trend { font-size: 0.75rem; display: flex; align-items: center; gap: 0.35rem; font-weight: 600; padding: 0.2rem 0.5rem; background: rgba(255,255,255,0.03); border-radius: 4px; width: fit-content;}
.trend-up { color: #34d399; }
.trend-down { color: #f87171; }
.trend-neutral { color: #fbbf24; }

/* Tables Custom */
.table-container { overflow-x: auto; background: rgba(0,0,0,0.15); border-radius: 8px; border: 1px solid rgba(255,255,255,0.03); }
.custom-table, .table-container table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.85rem; }
.custom-table th, .table-container table th { 
    text-align: left; 
    padding: 1rem; 
    color: var(--text-muted); 
    font-weight: 600; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    background: rgba(255,255,255,0.02);
}
.custom-table td, .table-container table td { 
    padding: 1rem; 
    border-bottom: 1px solid rgba(255,255,255,0.03); 
    color: var(--text-primary); 
    transition: background 0.2s;
}
.custom-table tr:hover td, .table-container table tr:hover td { background: rgba(255,255,255,0.02); }
.custom-table tr:last-child td, .table-container table tr:last-child td { border-bottom: none; }

/* Status Badges with Glow */
.status-pill, .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid;
    letter-spacing: 0.03em;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.1);
}
.status-dot { 
    width: 6px; height: 6px; border-radius: 50%; 
    animation: pulseGlow 2s infinite alternate;
}
@keyframes pulseGlow {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.pill-success, .badge-low { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: #34d399; }
.pill-success .status-dot { background: #34d399; box-shadow: 0 0 8px #34d399; }

.pill-warning, .badge-mod { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }
.pill-warning .status-dot { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }

.pill-danger, .badge-high { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #f87171; }
.pill-danger .status-dot { background: #f87171; box-shadow: 0 0 8px #f87171; }

.pill-info { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }
.pill-info .status-dot { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }

.badge-admin { background: rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.3); color: #c084fc; }
.badge-recruiter { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }

/* Progress Bars */
.progress-bar-container { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.progress-label { width: 80px; font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }
.progress-track { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; position: relative; box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); }
.progress-fill { height: 100%; border-radius: 4px; box-shadow: 0 0 10px rgba(255,255,255,0.2); animation: progressFill 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; transform-origin: left; }
@keyframes progressFill {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}
.progress-value { width: 40px; text-align: right; font-size: 0.8rem; font-weight: 600; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

/* Quick Action Cards */
.quick-action-card:hover {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.2) !important;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.quick-action-card:hover .qa-icon {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 0 15px currentColor;
}

/* List Items */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: padding 0.2s;
}
.list-item:hover { padding-left: 0.5rem; padding-right: 0.5rem; background: rgba(255,255,255,0.02); border-radius: 6px; }
.list-item:last-child { border-bottom: none; padding-bottom: 0; }
.list-item:last-child:hover { padding-bottom: 1rem; }
.item-info-main { font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem;}
.item-info-sub { font-size: 0.75rem; color: var(--text-muted); font-weight: 500;}
.item-action { display: flex; gap: 0.5rem; align-items: center; }

/* Auth Layout (Premium Redesign) */
.auth-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}
.auth-left {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.auth-left::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.7) 100%);
}
.auth-left > * { position: relative; z-index: 2; }
.brand-sub { color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.2em; margin-bottom: 1rem; }
.brand-title { font-family: var(--font-heading); font-size: 6.5rem; font-weight: 800; line-height: 0.9; margin-bottom: 1.5rem; letter-spacing: -1px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.brand-title span { background: var(--grad-recruiter); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.brand-desc { color: #d4d4d8; max-width: 450px; font-size: 1.05rem; line-height: 1.6; margin-bottom: 3rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.auth-right {
    flex: 1;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 10%;
    position: relative;
    overflow: hidden;
}
.auth-right::before {
    content: '';
    position: absolute;
    top: -20%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.auth-tabs { display: flex; gap: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 2.5rem; }
.auth-tab { padding: 1rem 0; color: var(--text-muted); font-size: 0.95rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.3s; }
.auth-tab:hover { color: #fff; }
.auth-tab.active { color: #fff; border-bottom-color: var(--accent-blue); text-shadow: 0 0 15px rgba(255,255,255,0.3); }

/* Flash Messages Update */
.flash-message { padding: 0.85rem 1.2rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 0.75rem; border: 1px solid; backdrop-filter: blur(8px); }
.flash-error { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3); color: #fca5a5; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1); }
.flash-success { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: #6ee7b7; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1); }

/* Applicant Portal Layout (no sidebar) */
.main-content { padding: 2.5rem 4%; max-width: 1400px; width: 100%; margin: 0 auto; animation: fadeSlideIn 0.6s ease forwards; }
.top-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.top-header h1 { font-size: 1.75rem; font-weight: 700; font-family: var(--font-heading); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

/* Utility - Applicant top nav styling */
div[style*="height: 60px;"] {
    background: rgba(10, 10, 12, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

/* Role Selectors (Login) */
.role-selectors { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.role-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255,255,255,0.02);
    position: relative;
    overflow: hidden;
}
.role-option:hover { 
    background: rgba(255,255,255,0.05); 
    border-color: rgba(255,255,255,0.15); 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.role-option.active { 
    border-color: var(--accent-blue); 
    background: rgba(79, 70, 229, 0.1); 
    box-shadow: 0 5px 20px rgba(79, 70, 229, 0.2), inset 0 0 0 1px var(--accent-blue);
}
.role-input { display: none; }
.role-icon { font-size: 1.25rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,0.05); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.role-option.active .role-icon { background: rgba(255,255,255,0.1); transform: scale(1.15) rotate(5deg); box-shadow: 0 0 20px currentColor; }
.role-details h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.15rem; color: #fff; transition: color 0.3s ease; }
.role-option.active .role-details h4 { color: var(--accent-blue); }
.role-details p { font-size: 0.75rem; color: var(--text-muted); }
.role-badge { font-size: 0.6rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 6px; background: rgba(245, 158, 11, 0.15); color: var(--status-warning); border: 1px solid rgba(245, 158, 11, 0.3); letter-spacing: 0.05em; display: flex; align-items: center; gap: 0.3rem; margin-left: auto; box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1); }
.role-radio-circle { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-color); margin-left: 0.75rem; position: relative; transition: all 0.3s ease; }
.role-option.active .role-radio-circle { border-color: var(--accent-blue); background: rgba(79, 70, 229, 0.2); }
.role-option.active .role-radio-circle::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; background: var(--accent-blue); border-radius: 50%; box-shadow: 0 0 10px var(--accent-blue); }

/* Force main wrapper layout */
.main-wrapper {
    margin-left: 260px !important;
    width: calc(100% - 260px) !important;
}
.sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 9999 !important;
}
.top-nav {
    width: 100% !important;
}

/* Light Mode System Overrides & High-Contrast Styling */
html[data-theme="light"], body[data-theme="light"], .theme-light {
    --bg-dark: #f8fafc !important;
    --bg-surface: #ffffff !important;
    --bg-surface-light: #f1f5f9 !important;
    --bg-card: #ffffff !important;
    
    --border-color: #cbd5e1 !important;
    --border-light: #e2e8f0 !important;
    --glass-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.06) !important;
    
    --text-primary: #0f172a !important;
    --text-secondary: #334155 !important;
    --text-muted: #64748b !important;
    color-scheme: light !important;
}

html[data-theme="light"] body,
body[data-theme="light"] {
    background-color: #f8fafc !important;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.04), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.04), transparent 25%) !important;
    color: #0f172a !important;
}

/* Sidebar & Navigation in Light Mode */
html[data-theme="light"] .app-sidebar, 
html[data-theme="light"] .sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .app-sidebar-logo .excell, 
html[data-theme="light"] .logo-text {
    color: #0f172a !important;
}

html[data-theme="light"] .app-nav-item, 
html[data-theme="light"] .nav-item {
    color: #475569 !important;
}

html[data-theme="light"] .app-nav-item:hover:not(.active), 
html[data-theme="light"] .nav-item:hover:not(.active) {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

html[data-theme="light"] .app-nav-item.active, 
html[data-theme="light"] .nav-item.active {
    color: #0f172a !important;
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

/* Top Header & Navigation Bar Icons Contrast */
html[data-theme="light"] .app-header, 
html[data-theme="light"] .top-header,
html[data-theme="light"] .top-nav {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .app-nav-bell {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .app-nav-bell:hover {
    background: #e2e8f0 !important;
    color: var(--color-applicant) !important;
}

html[data-theme="light"] .app-nav-logout {
    color: #0f172a !important;
}

html[data-theme="light"] .app-nav-logout:hover {
    color: #ef4444 !important;
}

html[data-theme="light"] .sidebar-footer a {
    color: #0f172a !important;
}

html[data-theme="light"] .sidebar-footer a:hover {
    color: #ef4444 !important;
}

/* Applicant Welcome Hero Banner (Light Gold to White Gradient) */
html[data-theme="light"] .hero-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 45%, #ffffff 100%) !important;
    border: 1px solid #fde68a !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08) !important;
    border-radius: 12px;
}

html[data-theme="light"] .hero-sub {
    color: #b45309 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .hero-title {
    color: #0f172a !important;
}

html[data-theme="light"] .hero-desc {
    color: #334155 !important;
}

/* Cards, Tables, Forms & Components in Light Mode */
html[data-theme="light"] .dash-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .content-card,
html[data-theme="light"] .verify-card,
html[data-theme="light"] .settings-card,
html[data-theme="light"] .table-card,
html[data-theme="light"] .kanban-col,
html[data-theme="light"] .kanban-card,
html[data-theme="light"] .timeline-content,
html[data-theme="light"] .job-card,
html[data-theme="light"] .notif-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 {
    color: #0f172a !important;
}

html[data-theme="light"] table {
    color: #0f172a !important;
}

html[data-theme="light"] th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-bottom-color: #cbd5e1 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] td {
    border-bottom-color: #e2e8f0 !important;
    color: #0f172a !important;
}

html[data-theme="light"] input, 
html[data-theme="light"] select, 
html[data-theme="light"] textarea {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] input::placeholder, 
html[data-theme="light"] textarea::placeholder {
    color: #64748b !important;
}

html[data-theme="light"] input:focus, 
html[data-theme="light"] select:focus, 
html[data-theme="light"] textarea:focus {
    background-color: #ffffff !important;
    border-color: #2563eb !important;
}

/* Minimalist Pill Switch Toggle Switch (Sun / Moon) */
.theme-pill-switch {
    position: relative;
    width: 58px;
    height: 30px;
    border-radius: 999px;
    background: #18181c;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    user-select: none;
    transition: background 0.3s ease, border-color 0.3s ease;
    margin-right: 1.25rem;
    outline: none;
    box-sizing: border-box;
    vertical-align: middle;
}

html[data-theme="light"] .theme-pill-switch {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.theme-pill-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2563eb;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.72rem;
}

html[data-theme="dark"] .theme-pill-knob {
    transform: translateX(28px);
}

.theme-pill-icon {
    font-size: 0.75rem;
    z-index: 1;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease;
    width: 20px;
    text-align: center;
}

html[data-theme="light"] .theme-pill-icon {
    color: #64748b;
}

/* Radio Button Theme Options (Clean & Minimalist) */
.theme-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
    max-width: 480px;
}

.theme-radio-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.theme-radio-option:hover {
    border-color: var(--accent-blue);
    background: rgba(99, 102, 241, 0.05);
}

.theme-radio-option.selected {
    border-color: var(--accent-blue);
    background: rgba(99, 102, 241, 0.1);
}

.theme-radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.theme-radio-option.selected .theme-radio-circle {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
}

.theme-radio-circle-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.theme-radio-option.selected .theme-radio-circle-dot {
    opacity: 1;
}

.theme-radio-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================
   SYSTEM-WIDE CRISP HIGH-CONTRAST LIGHT THEME
   ========================================== */
html[data-theme="light"], body.theme-light {
    --bg-dark: #f8fafc;
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-light: #f1f5f9;
    --bg-card: #ffffff;
    
    --border-color: #cbd5e1;
    --border-light: #e2e8f0;
    --glass-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.06);
    
    /* Text - High Contrast Deep Slate/Black */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    /* Accents for Light Mode */
    --color-admin: #7e22ce;
    --color-recruiter: #1d4ed8;
    --color-applicant: #d97706;
}

body.theme-light {
    background-color: #f8fafc !important;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.04), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.04), transparent 30%) !important;
    color: #0f172a !important;
}

/* Form inputs & controls contrast */
body.theme-light input,
body.theme-light select,
body.theme-light textarea,
body.theme-light .form-control {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

body.theme-light input:focus,
body.theme-light select:focus,
body.theme-light textarea:focus,
body.theme-light .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder,
body.theme-light .form-control::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

body.theme-light input[disabled],
body.theme-light select[disabled],
body.theme-light textarea[disabled] {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    opacity: 0.8 !important;
}

/* Cards & containers in light mode */
body.theme-light .card,
body.theme-light .dash-card,
body.theme-light .admin-kpi-card,
body.theme-light .qa-card,
body.theme-light .settings-card,
body.theme-light .portfolio-card,
body.theme-light .portfolio-section-card,
body.theme-light .timeline-content,
body.theme-light .notif-item,
body.theme-light .read-only-content,
body.theme-light .content-display-box {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .top-nav {
    background: #ffffff !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

body.theme-light .page-title {
    color: #0f172a !important;
}

body.theme-light .page-subtitle {
    color: #64748b !important;
}

body.theme-light .custom-table th {
    color: #475569 !important;
    border-bottom-color: #cbd5e1 !important;
}

body.theme-light .custom-table td {
    color: #0f172a !important;
    border-bottom-color: #e2e8f0 !important;
}

body.theme-light .admin-kpi-title {
    color: #475569 !important;
}

body.theme-light .admin-kpi-value {
    color: #0f172a !important;
}

body.theme-light .admin-kpi-subtext {
    color: #334155 !important;
}

body.theme-light .dash-card-title {
    color: #0f172a !important;
}

body.theme-light .progress-label {
    color: #1e293b !important;
}

body.theme-light .progress-value {
    color: #0f172a !important;
}

body.theme-light .progress-track {
    background: #e2e8f0 !important;
}

/* Sidebar & Navigation in Light Mode */
body.theme-light .app-sidebar,
body.theme-light .sidebar {
    background: #ffffff !important;
    border-right-color: #e2e8f0 !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .app-sidebar-logo .excell,
body.theme-light .logo-text {
    color: #0f172a !important;
}

body.theme-light .app-nav-item,
body.theme-light .nav-item {
    color: #334155 !important;
}

body.theme-light .app-nav-item:hover:not(.active),
body.theme-light .nav-item:hover:not(.active) {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

body.theme-light .app-nav-item.active {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #78350f !important;
}

body.theme-light .sidebar-footer {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.theme-light .sidebar-footer .user-name {
    color: #0f172a !important;
}

body.theme-light .sidebar-footer .user-role {
    color: #64748b !important;
}

body.theme-light .funnel-recruiter-name {
    color: #0f172a !important;
}

body.theme-light .funnel-total-badge {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}

body.theme-light .settings-tab {
    color: #475569 !important;
}

body.theme-light .settings-tab:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

body.theme-light .kpi-card,
body.theme-light .kanban-col,
body.theme-light .kanban-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .kanban-header {
    background: #f8fafc !important;
    border-bottom-color: #cbd5e1 !important;
}

body.theme-light .k-title {
    color: #0f172a !important;
}

body.theme-light .k-sub {
    color: #334155 !important;
}

body.theme-light .k-footer {
    color: #64748b !important;
    border-top-color: #e2e8f0 !important;
}

body.theme-light .kanban-card:hover {
    background: #f8fafc !important;
    border-color: #3b82f6 !important;
}

body.theme-light .kpi-title {
    color: #475569 !important;
}

body.theme-light .kpi-value {
    color: #0f172a !important;
}

body.theme-light .kpi-subtext {
    color: #334155 !important;
}

/* ==========================================================================
   7 STAGES PIPELINE & DATA LISTS PREMIUM DESIGN SYSTEM
   ========================================================================== */

/* 1. Interactive 7-Stage Stepper Ribbon */
.pipeline-stepper-wrapper {
    background: rgba(18, 20, 29, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.5rem 0.6rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.pipeline-stepper {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pipeline-stepper::-webkit-scrollbar { display: none; }

.pipeline-step {
    flex: 1;
    min-width: 130px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.pipeline-step:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.08);
}

.pipeline-step.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.pipeline-step-num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.pipeline-step.active .pipeline-step-num {
    background: #3b82f6;
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.pipeline-step-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.pipeline-step-title {
    font-size: 0.78rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pipeline-step-count {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pipeline-step.active .pipeline-step-count {
    color: #93c5fd;
    font-weight: 600;
}

/* 2. Top Metric Cards (Standardized) */
.stage-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
    .stage-summary-grid { grid-template-columns: 1fr; }
}

.stage-summary-card {
    background: linear-gradient(135deg, rgba(24, 27, 38, 0.75), rgba(15, 17, 24, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.stage-summary-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
}

.stage-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stage-summary-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.stage-summary-val {
    font-size: 1.65rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stage-summary-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 3. Stage Table Design System */
.stage-table-card {
    background: linear-gradient(135deg, rgba(20, 23, 34, 0.8), rgba(13, 15, 22, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

.stage-custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    text-align: left;
}

.stage-custom-table thead tr {
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.stage-custom-table th {
    padding: 0.95rem 1.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.stage-custom-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.stage-custom-table tbody tr:last-child {
    border-bottom: none;
}

.stage-custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.stage-custom-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

/* Candidate Profile Column */
.candidate-cell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.candidate-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(168, 85, 247, 0.25));
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: #ffffff;
    flex-shrink: 0;
    overflow: hidden;
}
.candidate-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    display: block;
}

.candidate-meta {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.15rem;
    display: block;
}

/* Job Applied Chip */
.job-applied-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #93c5fd;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* AI Match Badge */
.ai-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.ai-match-badge.high {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}
.ai-match-badge.mod {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}
.ai-match-badge.low {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
}

/* Date Display */
.stage-date-text {
    font-size: 0.82rem;
    color: #94a3b8;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* SLA Status Pill */
.stage-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 99px;
    font-size: 0.74rem;
    font-weight: 600;
    border: 1px solid;
    white-space: nowrap;
}
.stage-status-pill.pending {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}
.stage-status-pill.overdue {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
}
.stage-status-pill.reviewed {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}
.stage-status-pill.interview {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.3);
    color: #c084fc;
}
.stage-status-pill.qualified {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}
.stage-status-pill.endorsed {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}
.stage-status-pill.shortlisted {
    background: rgba(192, 132, 252, 0.12);
    border-color: rgba(192, 132, 252, 0.3);
    color: #d8b4fe;
}
.stage-status-pill.hired {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

/* Stage Actions Group */
.stage-actions-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.stage-btn-advance {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.42rem 0.85rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
    transition: all 0.2s ease;
    height: 32px;
    box-sizing: border-box;
}
.stage-btn-advance:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.5);
}

.stage-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1 !important;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.42rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 32px;
    box-sizing: border-box;
}
.stage-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* 4. Stage Filter Toolbar */
.stage-filter-card {
    background: linear-gradient(135deg, rgba(22, 25, 36, 0.75), rgba(15, 17, 25, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.stage-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.stage-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 170px;
}

.stage-filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.stage-filter-input, .stage-filter-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    color: #ffffff;
    font-size: 0.84rem;
    padding: 0.55rem 0.85rem;
    outline: none;
    transition: all 0.2s ease;
    height: 38px;
    box-sizing: border-box;
}

.stage-filter-input:focus, .stage-filter-select:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.stage-filter-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.stage-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1px;
}

.stage-btn-filter {
    height: 38px;
    padding: 0 1.1rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.stage-btn-filter:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(59, 130, 246, 0.5);
}

.stage-btn-reset {
    height: 38px;
    padding: 0 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.stage-btn-reset:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
    transform: translateY(-1px);
}

/* ==========================================================================
   Global Modal Overlay & Content System
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 1.25rem;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: linear-gradient(145deg, #141824, #0f121d);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.1);
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-sizing: border-box;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-body {
    padding: 1.5rem 1.75rem;
    max-height: 72vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.2rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

/* ========================================================================= */
/* GLOBAL CUSTOM PAGINATION (10 Items per Page Component)                    */
/* ========================================================================= */
.custom-pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1.25rem 1rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.pagination-btn.nav-btn {
    padding: 0 1.1rem;
    gap: 0.45rem;
    font-weight: 600;
}

.pagination-btn.disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

/* ========================================================================= */
/* SYSTEM-WIDE DROPDOWN CHOICES & SELECT DESIGN SYSTEM                       */
/* ========================================================================= */

/* 1. Base Select Dropdown Container */
select {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    height: 38px;
    padding: 0.45rem 2.2rem 0.45rem 0.85rem !important;
    background-color: #121422 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 0.9rem 0.9rem !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 8px !important;
    color: #f8fafc !important;
    font-family: var(--font-main, 'Inter', -apple-system, sans-serif) !important;
    font-size: 0.83rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Form inputs & grid controls inside forms */
.form-group select,
.form-control select,
select.form-control {
    width: 100%;
}

/* Compact Toolbar & Table Filter Selects */
.filter-select,
.job-select-filter,
.overdue-select-filter,
.table-filter-select,
.job-filter-inputs select,
.overdue-filter-inputs select,
.filter-bar select {
    width: auto !important;
    min-width: 140px;
    max-width: 220px;
    flex: 0 1 auto !important;
    height: 38px !important;
    font-size: 0.82rem !important;
}

/* 2. Select Hover State */
select:hover {
    border-color: rgba(255, 255, 255, 0.28) !important;
    background-color: #16192d !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23cbd5e1' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* 3. Select Focus / Active State */
select:focus {
    outline: none !important;
    border-color: #6366f1 !important;
    background-color: #181b32 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23818cf8' stroke-width='2.4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22), 0 3px 10px rgba(0, 0, 0, 0.35) !important;
}

/* 4. Select Disabled State */
select:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    background-color: rgba(15, 17, 28, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-muted, #71717a) !important;
    box-shadow: none !important;
}

/* 5. Dropdown Choices (<option> & <optgroup>) */
option {
    background-color: #121422 !important;
    color: #f1f5f9 !important;
    padding: 0.55rem 0.85rem !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    border: none !important;
}

option:hover,
option:focus,
option:active,
option:checked {
    background-color: #2563eb !important;
    background-image: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

option:disabled {
    color: #64748b !important;
    background-color: #0b0d18 !important;
    font-style: italic;
}

optgroup {
    background-color: #0b0d17 !important;
    color: #818cf8 !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 0.5rem 0.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* 6. Custom Floating Dropdown Menus (Context Menus, Action Menus, 3-Dots) */
.dropdown-menu,
.conv-dropdown-menu,
.user-dropdown-menu,
.action-dropdown-menu,
.custom-dropdown-list {
    background: rgba(18, 20, 34, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    padding: 0.35rem !important;
    min-width: 175px !important;
    z-index: 1050 !important;
    animation: dropdownFadeScale 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownFadeScale {
    0% {
        opacity: 0;
        transform: translateY(-5px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 7. Dropdown Menu Choice Items */
.dropdown-item,
.conv-dropdown-item,
.dropdown-menu a,
.dropdown-menu button,
.conv-dropdown-menu a,
.conv-dropdown-menu button,
.action-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    padding: 0.5rem 0.8rem !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    text-align: left !important;
}

.dropdown-item:hover,
.conv-dropdown-item:hover,
.dropdown-menu a:hover,
.dropdown-menu button:hover,
.conv-dropdown-menu a:hover,
.conv-dropdown-menu button:hover,
.action-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.16) !important;
    color: #ffffff !important;
    transform: translateX(2px) !important;
}

.dropdown-item.danger:hover,
.conv-dropdown-item.danger:hover,
.dropdown-menu a.danger:hover,
.dropdown-menu button.danger:hover,
.action-dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #f87171 !important;
}

.dropdown-divider {
    height: 1px;
    margin: 0.25rem 0;
    background: rgba(255, 255, 255, 0.08);
    border: none;
}


/* ========================================================================= */
/* SYSTEM-WIDE RESPONSIVE DESIGN SYSTEM (MOBILE, TABLET, DESKTOP AUDIT)     */
/* ========================================================================= */

/* 1. Universal Media Queries & Touch Target Base Sizing */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    user-select: none;
    touch-action: manipulation;
    z-index: 101 !important;
    pointer-events: auto !important;
}
.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 2. Responsive Table Wrappers & Touch Scrolling */
.table-container,
.table-responsive,
div:has(> table) {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

table {
    min-width: 600px;
}

/* 3. Responsive Images, Videos, Canvases */
img, svg, video, canvas {
    max-width: 100% !important;
    height: auto;
}

/* 4. Responsive Chart Containers */
.chart-container,
.chart-wrapper,
div:has(> canvas#workforceChart),
div:has(> canvas#pipelineDonutChart),
div:has(> canvas#myFunnelChart),
div:has(> canvas[id^="funnelChart"]) {
    position: relative !important;
    width: 100% !important;
    height: 300px !important;
    min-height: 250px !important;
}

/* 5. Responsive Modals */
.modal-overlay,
#workloadAlertModal,
#requirementsModal,
#ocrDetailsModal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 9999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}
.modal-overlay.active,
#workloadAlertModal[style*="display: flex"],
#requirementsModal.active,
#ocrDetailsModal.active {
    display: flex !important;
}

.modal-content,
.modal-dialog,
.modal-card {
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: 70vh !important;
}

/* ========================================================================= */
/* MEDIA BREAKPOINTS AUDIT & LAYOUT RESPONSIVENESS                           */
/* ========================================================================= */

/* TABLET LANDSCAPE & SMALL LAPTOP (max-width: 1024px) */
@media (max-width: 1024px) {
    body, body.theme-dark {
        padding-left: 0 !important;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        width: 270px !important;
        z-index: 9999 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5) !important;
    }

    .sidebar.active {
        transform: translateX(0) !important;
    }

    .main-wrapper,
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .top-nav {
        padding: 0 1.25rem !important;
    }

    .content-area {
        padding: 1.25rem !important;
    }

    .grid-main,
    .dashboard-grid,
    .activity-dashboard-container,
    .bottom-analytics-grid,
    .charts-two-col,
    .funnel-main-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* Enforce 44x44px Touch Targets on Touch Devices */
    .content-area .btn,
    .card .btn,
    form .btn,
    .pagination-btn,
    .nav-item,
    .theme-pill-switch,
    select,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"] {
        min-height: 44px !important;
    }
}

/* TABLET PORTRAIT (max-width: 768px) */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.05rem !important;
    }

    .page-subtitle {
        display: none !important;
    }

    .top-nav-actions {
        gap: 0.5rem !important;
    }

    .top-nav-actions .btn {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.78rem !important;
    }

    /* All Forms Stack Vertically Below 768px */
    form .row,
    form .grid,
    .form-row,
    .form-inline,
    .form-group-inline {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 1rem !important;
    }

    .grid-top,
    .grid-bottom,
    .analytics-kpi-grid,
    .funnel-kpi-grid,
    .funnel-stepper-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .chart-container,
    .chart-wrapper,
    div:has(> canvas) {
        height: 260px !important;
    }
}

/* ========================================================================= */
/* STRICT MOBILE-ONLY (max-width: 480px) COMPONENT ENGINE                    */
/* ========================================================================= */
@media screen and (max-width: 480px) {
    /* Global Mobile Layout Reset */
    * {
        box-sizing: border-box !important;
    }
    
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100vw !important;
    }

    /* 1. Login and Registration Mobile Styling */
    .auth-container,
    .auth-card,
    .login-card,
    .register-card,
    .auth-split {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .auth-logo,
    .login-logo {
        max-width: 160px !important;
        height: auto !important;
    }

    .auth-btn,
    .btn-auth,
    .login-card button[type="submit"],
    .register-card button[type="submit"] {
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .form-error,
    .invalid-feedback,
    .error-msg {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        font-size: 12px !important;
    }

    /* 2. Navigation / Sidebar Mobile Styling */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        z-index: 99999 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .sidebar.active {
        transform: translateX(0) !important;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        min-width: 44px !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nav-item.active {
        background: rgba(99, 102, 241, 0.25) !important;
        border-left: 3px solid #6366f1 !important;
        font-weight: 700 !important;
    }

    /* 3. Admin Dashboard Mobile View */
    .grid-top,
    .grid-main,
    .grid-bottom,
    .analytics-kpi-grid,
    .dashboard-grid,
    .activity-dashboard-container {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .dash-card,
    .card,
    .analytics-kpi-card {
        width: 100% !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    .chart-container,
    .chart-wrapper,
    div:has(> canvas) {
        width: 100% !important;
        height: 220px !important;
        min-height: 220px !important;
        position: relative !important;
    }

    .table-container,
    .table-responsive,
    div:has(> table) {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .export-btn-group {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .export-btn-group .btn {
        width: 100% !important;
        min-height: 44px !important;
    }

    /* 4. Recruiter Dashboard Mobile View */
    .funnel-stepper-grid,
    .pipeline-grid,
    .stage-column-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .funnel-step-card,
    .stage-card,
    .applicant-card {
        width: 100% !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }

    .applicant-name {
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    .stage-badge,
    .stage-label {
        font-size: 12px !important;
    }

    .days-muted,
    .time-in-stage {
        font-size: 11px !important;
        color: var(--text-muted) !important;
    }

    .overdue-flag-badge {
        background: rgba(239, 68, 68, 0.2) !important;
        color: #ef4444 !important;
        border: 1px solid rgba(239, 68, 68, 0.4) !important;
        border-radius: 6px !important;
        padding: 2px 8px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
    }

    .quota-progress-track {
        width: 100% !important;
        height: 12px !important;
        border-radius: 10px !important;
    }

    .quota-number-centered {
        font-size: 1.5rem !important;
        font-weight: 800 !important;
        text-align: center !important;
        margin-bottom: 6px !important;
    }

    /* 5. Applicant Portal Mobile View */
    .job-list-grid,
    .jobs-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .job-card {
        width: 100% !important;
        padding: 14px !important;
    }

    .job-title {
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    .company-name {
        font-size: 12px !important;
        color: var(--text-muted) !important;
    }

    .apply-btn {
        width: 100% !important;
        min-height: 44px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    /* Messaging Chat Interface */
    .chat-messages-container,
    .messages-thread {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    .chat-bubble-sent {
        align-self: flex-end !important;
        background: #3b82f6 !important;
        color: #ffffff !important;
        border-radius: 16px 16px 2px 16px !important;
        max-width: 80% !important;
        padding: 10px 14px !important;
        word-break: break-word !important;
    }

    .chat-bubble-received {
        align-self: flex-start !important;
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        border-radius: 16px 16px 16px 2px !important;
        max-width: 80% !important;
        padding: 10px 14px !important;
        word-break: break-word !important;
    }

    .chat-input-bar {
        position: sticky !important;
        bottom: 0 !important;
        width: 100% !important;
        background: rgba(18, 20, 26, 0.95) !important;
        padding: 10px !important;
        border-top: 1px solid var(--border-color) !important;
        display: flex !important;
        gap: 8px !important;
    }

    /* Vertical Stepper Status Tracker */
    .status-stepper-horizontal {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    /* 6. Workload Rebalancing Tab Mobile View */
    .rebalance-suggestions-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .rebalance-modal-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .rebalance-modal-actions .btn {
        width: 100% !important;
        min-height: 44px !important;
    }

    .capsule-toggle-switch {
        min-width: 50px !important;
        min-height: 28px !important;
    }

    /* 7. Notification Panel Mobile View */
    .dropdown-menu,
    .notifications-dropdown {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    .notification-item-text {
        font-size: 13px !important;
        word-break: break-word !important;
    }

    .notification-badge {
        font-size: 11px !important;
        padding: 2px 6px !important;
    }

    /* 8. Modals and Popups Mobile View */
    .modal-overlay {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.8) !important;
        z-index: 99999 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .modal-content,
    .modal-dialog {
        width: 92% !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 16px !important;
        position: relative !important;
        margin: auto !important;
    }

    .modal-close-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 9. Typography and Spacing Mobile View */
    h1, .page-title {
        font-size: clamp(16px, 4vw, 20px) !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    h2, h3, .dash-card-title {
        font-size: clamp(14px, 3.5vw, 18px) !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    p, span, td, th, div, label, li, a {
        font-size: 13px;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* 10. Touch Target & iOS Form Zoom Prevention */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents iOS auto-zoom on input focus */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    button,
    .btn,
    .nav-item,
    .pagination-btn,
    .mobile-menu-toggle {
        min-height: 44px !important;
        min-width: 44px !important;
        touch-action: manipulation !important;
    }
}

/* ========================================================================= */
/* APPLICANT PORTAL RESPONSIVE DESIGN SYSTEM OVERRIDES                       */
/* ========================================================================= */
.hero-banner-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 1024px) {
    /* Hero Banner Card on Mobile/Tablet */
    .hero-banner-card {
        margin: 1rem 1rem 0 1rem !important;
        padding: 1.5rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.25rem !important;
    }
    
    .hero-banner-card > div {
        width: 100% !important;
    }

    .hero-banner-card > div[style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: 1rem !important;
        justify-content: space-between !important;
    }

    .hero-title {
        font-size: clamp(1.3rem, 4vw, 2rem) !important;
    }

    /* Flex Content Layout Stack */
    div:has(> .right-sidebar),
    div[style*="display: flex; flex: 1; margin-top: 1rem;"] {
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 1rem !important;
    }

    /* Left Content Column */
    div[style*="flex: 2; padding: 0 2.5rem 3rem 2.5rem;"] {
        padding: 0 1rem 2rem 1rem !important;
        width: 100% !important;
        flex: 1 1 100% !important;
        box-sizing: border-box !important;
    }

    /* Right Sidebar Column */
    .right-sidebar,
    div[style*="width: 340px; flex-shrink: 0; margin-right: 2.5rem;"] {
        width: 100% !important;
        margin: 0 0 2rem 0 !important;
        padding: 1.25rem !important;
        box-sizing: border-box !important;
    }

    /* Job Post Cards on Mobile */
    .job-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        padding: 1.1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .job-card > div[style*="text-align: right;"] {
        text-align: left !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .job-card .btn {
        width: 100% !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .hero-banner-card {
        margin: 0.75rem 0.75rem 0 0.75rem !important;
        padding: 1.1rem !important;
        border-radius: 14px !important;
    }

    div[style*="flex: 2; padding: 0 2.5rem 3rem 2.5rem;"] {
        padding: 0 0.75rem 1.5rem 0.75rem !important;
    }

    .right-sidebar {
        padding: 1rem !important;
        border-radius: 14px !important;
    }

    /* Timeline Stepper Mobile Spacing */
    .timeline-item {
        gap: 0.85rem !important;
    }

    .timeline-content {
        padding: 0.85rem 1rem !important;
        border-radius: 12px !important;
    }

    .timeline-content h4 {
        font-size: 0.88rem !important;
    }

    .timeline-content p {
        font-size: 0.78rem !important;
    }
}

/* NARROW MOBILE (max-width: 360px) — Galaxy Z Fold 5 (Folded 344px) & Galaxy S8+ (360px) */
@media (max-width: 360px) {
    .content-area {
        padding: 0.5rem !important;
    }

    .card,
    .dash-card,
    .settings-card,
    .analytics-kpi-card,
    .funnel-kpi-card {
        padding: 0.75rem !important;
        border-radius: 10px !important;
    }

    .page-title {
        font-size: 0.88rem !important;
    }

    .btn {
        padding: 0.45rem 0.65rem !important;
        font-size: 0.76rem !important;
    }

    .table-container table {
        min-width: 500px !important;
        font-size: 0.78rem !important;
    }

    .chart-container,
    .chart-wrapper,
    div:has(> canvas) {
        height: 200px !important;
    }
}

/* LARGE MOBILE & DUAL SCREEN (max-width: 600px) — Surface Duo Single Pane (540px) */
@media (max-width: 600px) {
    .dual-pane-container,
    .split-view {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* SMART DISPLYS — Nest Hub (1024x600) & Nest Hub Max (1280x800) Distance Viewing */
@media (min-width: 800px) and (max-height: 700px) {
    body {
        font-size: 1.05rem !important;
    }

    .page-title {
        font-size: clamp(1.15rem, 2.5vw, 1.5rem) !important;
    }

    .chart-container,
    .chart-wrapper,
    div:has(> canvas#workforceChart),
    div:has(> canvas#pipelineDonutChart),
    div:has(> canvas#myFunnelChart),
    div:has(> canvas[id^="funnelChart"]) {
        height: 380px !important;
        min-height: 350px !important;
    }

    .btn, 
    .nav-item,
    .pagination-btn {
        min-height: 48px !important;
        font-size: 0.95rem !important;
    }
}

/* ========================================================================= */
/* COMPREHENSIVE DEVICE MATRIX RESPONSIVE OVERRIDES                          */
/* Target: iPhone SE, XR, 12-16 Pro Max, Pixel 7-10, Samsung Galaxy S8/S20/A51, */
/* Xiaomi, Oppo, Huawei, Z Fold 5, Surface Duo, Asus Zenbook Fold, iPad Mini, */
/* Air, Pro, Surface Pro 7, Nest Hub & Nest Hub Max.                        */
/* ========================================================================= */

/* 1. ULTRA NARROW MOBILE (344px - 375px) — Galaxy Z Fold 5 Folded (344px), Samsung S8+ (360px), iPhone SE (375px) */
@media (max-width: 375px) {
    body, body.theme-dark {
        font-size: 0.82rem !important;
    }

    .main-content {
        padding: 0.75rem 0.5rem !important;
    }

    .hero-banner-card {
        margin: 0.5rem 0.25rem 0 0.25rem !important;
        padding: 0.85rem !important;
        border-radius: 12px !important;
    }

    .hero-title {
        font-size: 1.2rem !important;
    }

    .top-header h1 {
        font-size: 1.2rem !important;
    }

    .app-req-card,
    .card,
    .settings-card,
    .job-card {
        padding: 0.75rem !important;
        border-radius: 10px !important;
    }

    .status-badge-lg {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .table-container table {
        min-width: 480px !important;
        font-size: 0.75rem !important;
    }

    .table-container th,
    .table-container td {
        padding: 0.6rem 0.75rem !important;
    }
}

/* 2. STANDARD MOBILE PHONES (376px - 435px) — iPhone XR/12/14/15/16 Pro Max, Pixel 7-10, Samsung S20/A51, Xiaomi, Oppo, Huawei */
@media (min-width: 376px) and (max-width: 435px) {
    .main-content {
        padding: 1rem 0.75rem !important;
    }

    .hero-banner-card {
        margin: 0.75rem 0.5rem 0 0.5rem !important;
        padding: 1.15rem !important;
    }

    .hero-title {
        font-size: 1.35rem !important;
    }

    .top-header h1 {
        font-size: 1.3rem !important;
    }

    .job-card {
        padding: 1rem !important;
    }
}

/* 3. DUAL-SCREEN & FOLDABLE IN FOLDED/SINGLE PANE (436px - 600px) — Surface Duo (540px) */
@media (min-width: 436px) and (max-width: 600px) {
    .main-content {
        padding: 1.15rem 1rem !important;
    }

    .hero-banner-card {
        margin: 1rem 0.75rem 0 0.75rem !important;
        padding: 1.25rem !important;
    }
}

/* 4. TABLETS & FOLDABLE UNFOLDED (768px - 1024px) — iPad Mini (768px), iPad Air (820px), Surface Pro 7 (912px), Z Fold 5 Unfolded (816px), Zenbook Fold (853px), Nest Hub (1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        padding: 1.5rem 1.75rem !important;
    }

    .hero-banner-card {
        margin: 1rem 1.5rem 0 1.5rem !important;
        padding: 1.75rem !important;
    }

    .hero-title {
        font-size: 1.65rem !important;
    }

    .top-header h1 {
        font-size: 1.5rem !important;
    }

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

/* 5. LARGE TABLETS & LAPTOPS (1025px - 1366px+) — iPad Pro (1024x1366), Surface Pro 7 Landscape, Zenbook Fold Landscape */
@media (min-width: 1025px) {
    body, body.theme-dark {
        padding-left: 0 !important;
    }

    .sidebar {
        transform: translateX(0) !important;
        position: fixed !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .app-header {
        padding: 0.75rem 2.5rem 0 2.5rem;
    }

    .main-wrapper {
        margin-left: 260px !important;
        padding: 1.75rem 2.5rem;
    }

    .main-content {
        margin-left: 260px !important;
    }
}

