﻿/* ===== CSS VARIABLES (UPDATED WITH PREMIUM THEME) ===== */
:root {
    /* Primary Navy & Gold Theme */
    --navy: #0d1b2a;
    --navy-mid: #1b2d42;
    --navy-light: #253650;
    --gold: #c9a84c;
    --gold-light: #e8c96a;
    --gold-pale: #fdf6e3;
    --emerald: #1a7a5e;
    --emerald-light: #22a07a;
    --rose: #c0392b;
    --rose-light: #e74c3c;
    --sky: #2980b9;
    /* Extended Colors */
    --primary: var(--gold);
    --primary-dark: var(--gold-light);
    --secondary: var(--emerald);
    --secondary-dark: var(--emerald-light);
    --danger: var(--rose);
    --warning: #f59e0b;
    --info: var(--sky);
    /* Neutrals */
    --dark: var(--navy);
    --dark-gray: #6c7a8d;
    --light: #f4f7fb;
    --light-gray: #f4f7fb;
    --border: #dde3ec;
    --text-primary: #1a2332;
    --text-muted: #6c7a8d;
    /* Glass & Effects */
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(13,27,42,0.08);
    --shadow: 0 4px 16px rgba(13,27,42,0.1);
    --shadow-md: 0 8px 24px rgba(13,27,42,0.12);
    --shadow-lg: 0 12px 40px rgba(13,27,42,0.15);
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    /* Backgrounds */
    --bg-card: #ffffff;
    --bg-light: #f4f7fb;
}

[data-theme="dark"] {
    --navy: #0a1520;
    --navy-mid: #142433;
    --light: #0d1b2a;
    --light-gray: #0d1b2a;
    --bg-card: #1b2d42;
    --border: #253650;
    --dark: #ffffff;
    --dark-gray: #9ca3af;
    --text-primary: #ffffff;
    --text-muted: #a0b3c9;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --bg-light: #0d1b2a;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: white;
}

/* ===== TEXT COLOR OVERRIDES ===== */
.text-primary {
    color: var(--gold) !important;
}

.text-dark {
    color: var(--navy) !important;
}

[data-theme="dark"] .text-dark {
    color: white !important;
}

/* ===== MAIN LAYOUT CONTAINER ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR (PREMIUM STYLE) ===== */
.sidebar {
    width: 260px;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.show {
            transform: translateX(0);
            box-shadow: var(--shadow-lg);
        }
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 1.125rem;
    font-weight: 700;
}

.logo-text {
    color: white;
}

    .logo-text span {
        color: var(--gold);
    }

.sidebar-content {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.nav-item {
    margin: 0.25rem 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

    .nav-link:hover {
        background: rgba(201,168,76,0.15);
        color: white;
    }

    .nav-link.active {
        background: rgba(201,168,76,0.15);
        color: var(--gold-light);
        position: relative;
    }

        .nav-link.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 60%;
            background: var(--gold);
            border-radius: 0 3px 3px 0;
        }

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-text {
    font-size: 0.875rem;
    flex: 1;
}

.nav-badge {
    background: var(--gold);
    color: var(--navy);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(201,168,76,0.1);
    transition: all 0.3s ease;
}

    .user-profile:hover {
        background: rgba(201,168,76,0.15);
    }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.user-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--emerald);
    border: 2px solid var(--navy);
    border-radius: 50%;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    margin-bottom: 0.125rem;
}

.user-role {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
}

.user-menu {
    margin-left: auto;
}

.menu-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .menu-toggle:hover {
        background: rgba(201,168,76,0.15);
        color: var(--gold);
    }

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
    }
}

/* ===== HEADER (PREMIUM) ===== */
.main-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .main-header {
    background: rgba(13,27,42,0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .menu-toggle-btn:hover {
        background: rgba(201,168,76,0.1);
        color: var(--gold);
    }

@media (max-width: 992px) {
    .menu-toggle-btn {
        display: flex;
    }
}

.header-title h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .header-title h1 {
    background: linear-gradient(135deg, white 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    min-width: 280px;
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

    .search-input:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    }

    .search-input::placeholder {
        color: var(--text-muted);
    }

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

    .action-btn:hover {
        background: rgba(201,168,76,0.1);
        color: var(--gold);
        border-color: var(--gold);
    }

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--rose);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

/* ===== CONTENT AREA ===== */
.content-area {
    flex: 1;
    padding: 2rem;
    background: var(--bg-light);
}

@media (max-width: 768px) {
    .content-area {
        padding: 1rem;
    }
}

/* ===== DASHBOARD COMPONENTS ===== */
.welcome-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .welcome-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
        border-radius: 50%;
    }

.welcome-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 600px;
    position: relative;
}

/* Stats Grid (Premium Cards) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

    .stat-icon.jobs {
        background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    }

    .stat-icon.candidates {
        background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-light) 100%);
    }

    .stat-icon.interviews {
        background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    }

    .stat-icon.hiring-rate {
        background: linear-gradient(135deg, var(--sky) 0%, #1a5276 100%);
    }

.stat-value {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--navy);
    letter-spacing: -0.02em;
}

[data-theme="dark"] .stat-value {
    color: white;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.trend-up {
    color: var(--emerald);
}

.trend-down {
    color: var(--rose);
}

/* Pipeline Section */
.pipeline-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
}

[data-theme="dark"] .section-title {
    color: white;
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pipeline-column {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.column-title {
    font-weight: 600;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

[data-theme="dark"] .column-title {
    color: white;
}

.column-count {
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.candidate-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

    .candidate-card:hover {
        border-color: var(--gold);
        box-shadow: var(--shadow-sm);
    }

.candidate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.candidate-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.candidate-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.candidate-name {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.125rem;
    font-size: 0.875rem;
}

[data-theme="dark"] .candidate-name {
    color: white;
}

.candidate-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.candidate-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-new {
    background: rgba(41,128,185,0.1);
    color: var(--sky);
}

.status-screening {
    background: rgba(201,168,76,0.1);
    color: var(--gold);
}

.status-interview {
    background: rgba(26,122,94,0.1);
    color: var(--emerald);
}

.candidate-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.candidate-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Recent Activity */
.activity-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

    .activity-item:last-child {
        border-bottom: none;
    }

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-new {
    background: rgba(26,122,94,0.1);
    color: var(--emerald);
}

.icon-interview {
    background: rgba(41,128,185,0.1);
    color: var(--sky);
}

.icon-offer {
    background: rgba(201,168,76,0.1);
    color: var(--gold);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

[data-theme="dark"] .activity-title {
    color: white;
}

.activity-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== BADGES ===== */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 0.3px;
}

.badge-primary {
    background: rgba(201,168,76,0.15);
    color: var(--gold);
}

.badge-success {
    background: rgba(26,122,94,0.15);
    color: var(--emerald);
}

.badge-warning {
    background: rgba(245,158,11,0.15);
    color: var(--warning);
}

.badge-info {
    background: rgba(41,128,185,0.15);
    color: var(--sky);
}

/* ===== BUTTONS (PREMIUM STYLE) ===== */
.btn {
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--navy);
    color: white;
}

    .btn-primary:hover {
        background: var(--navy-light);
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

.btn-secondary {
    background: var(--emerald);
    color: white;
}

    .btn-secondary:hover {
        background: var(--emerald-light);
        transform: translateY(-1px);
    }

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}

    .btn-gold:hover {
        background: var(--gold-light);
        transform: translateY(-1px);
    }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--navy);
}

    .btn-outline:hover {
        border-color: var(--gold);
        color: var(--gold);
        background: rgba(201,168,76,0.05);
    }

/* ===== ACTION BUTTON STYLES ===== */
.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-view {
    background-color: rgba(41,128,185,0.1) !important;
    border-color: rgba(41,128,185,0.2) !important;
    color: var(--sky) !important;
}

    .btn-view:hover {
        background-color: rgba(41,128,185,0.2) !important;
        color: #1a5276 !important;
        transform: translateY(-1px);
    }

.btn-edit {
    background-color: rgba(201,168,76,0.1) !important;
    border-color: rgba(201,168,76,0.2) !important;
    color: var(--gold) !important;
}

    .btn-edit:hover {
        background-color: rgba(201,168,76,0.2) !important;
        color: #b8860b !important;
        transform: translateY(-1px);
    }

.btn-delete {
    background-color: rgba(192,57,43,0.1) !important;
    border-color: rgba(192,57,43,0.2) !important;
    color: var(--rose) !important;
}

    .btn-delete:hover {
        background-color: rgba(192,57,43,0.2) !important;
        color: #a93226 !important;
        transform: translateY(-1px);
    }

/* ===== FORM CONTROLS ===== */
.form-label-premium {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    display: block;
}

.form-control-premium,
.form-select-premium {
    padding: 0.625rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    width: 100%;
    background: var(--bg-card);
    color: var(--text-primary);
}

    .form-control-premium:focus,
    .form-select-premium:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    }

    .form-control-premium::placeholder {
        color: var(--text-muted);
    }

.is-valid {
    border-color: var(--emerald) !important;
}

.is-invalid {
    border-color: var(--rose) !important;
}

/* ===== ALERT MESSAGES ===== */
.alert {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    animation: slideInDown 0.3s ease-out;
    border-left: 4px solid;
    padding: 1rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(26,122,94,0.1) 0%, rgba(26,122,94,0.05) 100%);
    border-left-color: var(--emerald);
    color: var(--emerald);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(192,57,43,0.1) 0%, rgba(192,57,43,0.05) 100%);
    border-left-color: var(--rose);
    color: var(--rose);
}

.alert-info {
    background: linear-gradient(135deg, rgba(41,128,185,0.1) 0%, rgba(41,128,185,0.05) 100%);
    border-left-color: var(--sky);
    color: var(--sky);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(245,158,11,0.05) 100%);
    border-left-color: var(--warning);
    color: var(--warning);
}

.alert-fixed {
    position: fixed !important;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 9998;
    margin: 0 !important;
    box-shadow: var(--shadow-lg);
}

/* ===== ANIMATIONS ===== */
@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* ===== DARK THEME ADJUSTMENTS ===== */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .pipeline-column,
[data-theme="dark"] .activity-section {
    background: var(--bg-card);
}

[data-theme="dark"] .candidate-card {
    background: rgba(255,255,255,0.03);
}

/* ===== CUSTOM COLOR UTILITIES ===== */
.bg-blue-100 {
    background-color: rgba(41,128,185,0.1) !important;
}

.text-blue-800 {
    color: var(--sky) !important;
}

.bg-teal-100 {
    background-color: rgba(26,122,94,0.1) !important;
}

.text-teal-800 {
    color: var(--emerald) !important;
}

.bg-purple-100 {
    background-color: rgba(201,168,76,0.1) !important;
}

.text-purple-800 {
    color: var(--gold) !important;
}

.bg-green-100 {
    background-color: rgba(26,122,94,0.1) !important;
}

.text-green-800 {
    color: var(--emerald) !important;
}

.bg-red-100 {
    background-color: rgba(192,57,43,0.1) !important;
}

.text-red-800 {
    color: var(--rose) !important;
}

.bg-yellow-100 {
    background-color: rgba(245,158,11,0.1) !important;
}

.text-yellow-800 {
    color: var(--warning) !important;
}

.bg-gray-100 {
    background-color: var(--bg-light) !important;
}

.text-gray-800 {
    color: var(--text-muted) !important;
}

/* ===== JOB CARD ===== */
.job-card {
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 1.25rem;
}

    .job-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
        border-color: var(--gold);
    }

.job-description-preview {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

    .job-description-preview::-webkit-scrollbar {
        width: 6px;
    }

    .job-description-preview::-webkit-scrollbar-track {
        background: rgba(201,168,76,0.1);
        border-radius: 3px;
    }

    .job-description-preview::-webkit-scrollbar-thumb {
        background: var(--gold);
        border-radius: 3px;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pipeline-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        min-width: 200px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .search-box {
        min-width: 100%;
    }

    .welcome-card {
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }
}
/* =========================
   Global Loader
========================= */

#globalLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    #globalLoader.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none; /* Added to prevent interaction when hidden */
    }

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(201, 168, 76, 0.2);
    border-top: 4px solid #c9a84c;
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}

@keyframes loaderSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
