/* ===== CSS VARIABLES (PRIMARY SOURCE) ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --dark-gray: #374151;
    --light: #f9fafb;
    --light-gray: #f3f4f6;
    --border: #e5e7eb;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

[data-theme="dark"] {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --secondary: #10b981;
    --light: #111827;
    --light-gray: #1f2937;
    --dark: #f9fafb;
    --dark-gray: #9ca3af;
    --border: #374151;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-gray);
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== TEXT COLOR OVERRIDES (CRITICAL FIX) ===== */
.text-primary {
    color: var(--primary) !important;
}

.text-dark {
    color: var(--dark) !important;
    text-shadow: 0 0 0.2px currentColor;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
}

    h1.text-primary, h2.text-primary, h3.text-primary,
    h4.text-primary, h5.text-primary, h6.text-primary {
        color: var(--primary) !important;
    }

    h1.text-dark, h2.text-dark, h3.text-dark,
    h4.text-dark, h5.text-dark, h6.text-dark {
        color: var(--dark) !important;
    }

/* ===== MAIN LAYOUT CONTAINER ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: var(--light);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

@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 var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-content {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dark-gray);
    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: var(--dark-gray);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    gap: 12px;
    -webkit-font-smoothing: antialiased;
}

    .nav-link:hover {
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary);
    }

    .nav-link.active {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.1) 100%);
        color: var(--primary);
        font-weight: 500;
        position: relative;
    }

        .nav-link.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 60%;
            background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
            border-radius: 0 3px 3px 0;
        }

[data-theme="dark"] .nav-link {
    color: #9ca3af;
}

    [data-theme="dark"] .nav-link:hover,
    [data-theme="dark"] .nav-link.active {
        background: rgba(129, 140, 248, 0.1);
        color: var(--primary);
    }

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-text {
    font-size: 0.95rem;
    flex: 1;
}

.nav-badge {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    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 var(--border);
    background: rgba(99, 102, 241, 0.02);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.05);
    transition: all 0.3s ease;
}

    .user-profile:hover {
        background: rgba(99, 102, 241, 0.1);
    }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.user-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border: 2px solid var(--light);
    border-radius: 50%;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.125rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.user-menu {
    margin-left: auto;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--dark-gray);
    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(99, 102, 241, 0.1);
        color: var(--primary);
    }

/* ===== 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 ===== */
.main-header {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(249, 250, 251, 0.95);
}

[data-theme="dark"] .main-header {
    background: rgba(17, 24, 39, 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(--dark-gray);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .menu-toggle-btn:hover {
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary);
    }

@media (max-width: 992px) {
    .menu-toggle-btn {
        display: flex;
    }
}

.header-title h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    min-width: 280px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--light);
    color: var(--dark);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

    .search-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-gray);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--light);
    border: 1px solid var(--border);
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

    .action-btn:hover {
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary);
        border-color: var(--primary);
    }

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--light);
}

/* ===== CONTENT AREA ===== */
.content-area {
    flex: 1;
    padding: 2rem;
    background: var(--light-gray);
}

@media (max-width: 768px) {
    .content-area {
        padding: 1rem;
    }
}

/* ===== DASHBOARD COMPONENTS ===== */
.welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

    .welcome-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    }

.welcome-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.welcome-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

    .stat-icon.jobs {
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    }

    .stat-icon.candidates {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .stat-icon.interviews {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

    .stat-icon.hiring-rate {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    }

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.trend-up {
    color: var(--secondary);
}

.trend-down {
    color: var(--danger);
}

/* 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: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pipeline-column {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.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(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.column-count {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.candidate-card {
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

    .candidate-card:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow);
    }

.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: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.candidate-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.125rem;
}

.candidate-role {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.candidate-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-new {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.status-screening {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-interview {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.candidate-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin-top: 0.75rem;
}

.candidate-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Recent Activity */
.activity-section {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.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(16, 185, 129, 0.1);
    color: var(--secondary);
}

.icon-interview {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.icon-offer {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.activity-description {
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== UTILITIES ===== */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.75rem;
    -webkit-font-smoothing: antialiased;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.btn {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    -webkit-font-smoothing: antialiased;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dark);
}

    .btn-outline:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: rgba(99, 102, 241, 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;
}

/* VIEW BUTTON - BLUE */
.btn-view {
    background-color: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
}

    .btn-view:hover {
        background-color: rgba(59, 130, 246, 0.2) !important;
        border-color: rgba(59, 130, 246, 0.3) !important;
        color: #1d4ed8 !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);
    }

/* EDIT BUTTON - YELLOW/ORANGE */
.btn-edit {
    background-color: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
}

    .btn-edit:hover {
        background-color: rgba(245, 158, 11, 0.2) !important;
        border-color: rgba(245, 158, 11, 0.3) !important;
        color: #d97706 !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(245, 158, 11, 0.15);
    }

/* DELETE BUTTON - RED */
.btn-delete {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}

    .btn-delete:hover {
        background-color: rgba(239, 68, 68, 0.2) !important;
        border-color: rgba(239, 68, 68, 0.3) !important;
        color: #dc2626 !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.15);
    }

/* Dark theme adjustments */
[data-theme="dark"] .btn-view {
    background-color: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}

[data-theme="dark"] .btn-edit {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}

[data-theme="dark"] .btn-delete {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}
/* ===== FORM VALIDATION ===== */
.is-valid {
    border-color: #10b981 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid {
    border-color: #ef4444 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.has-error .form-label {
    color: #ef4444;
}

/* ===== 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;
    -webkit-font-smoothing: antialiased;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-left-color: var(--secondary);
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-left-color: var(--danger);
    color: #991b1b;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-left-color: var(--info);
    color: #1e40af;
}

.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: #92400e;
}

.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;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== DARK THEME ADJUSTMENTS ===== */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .pipeline-column,
[data-theme="dark"] .activity-section,
[data-theme="dark"] .card {
    background: var(--light);
}

[data-theme="dark"] .candidate-card {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #a7f3d0;
}

[data-theme="dark"] .alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #fecaca;
}

[data-theme="dark"] .alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #bfdbfe;
}

[data-theme="dark"] .alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #fde68a;
}

/* ===== CUSTOM COLOR UTILITIES ===== */
.bg-blue-100 {
    background-color: #dbeafe !important;
}

.text-blue-800 {
    color: #1e40af !important;
}

.bg-teal-100 {
    background-color: #ccfbf1 !important;
}

.text-teal-800 {
    color: #115e59 !important;
}

.bg-purple-100 {
    background-color: #f3e8ff !important;
}

.text-purple-800 {
    color: #6b21a8 !important;
}

.bg-green-100 {
    background-color: #d1fae5 !important;
}

.text-green-800 {
    color: #065f46 !important;
}

.bg-red-100 {
    background-color: #fee2e2 !important;
}

.text-red-800 {
    color: #991b1b !important;
}

.bg-yellow-100 {
    background-color: #fef3c7 !important;
}

.text-yellow-800 {
    color: #92400e !important;
}

.bg-gray-100 {
    background-color: #f3f4f6 !important;
}

.text-gray-800 {
    color: #374151 !important;
}

/* ===== SPECIAL COMPONENTS ===== */
.job-card {
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

    .job-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    }

.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(99, 102, 241, 0.1);
        border-radius: 3px;
    }

    .job-description-preview::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
    }

/* ===== EDIT VENDOR COMPONENT (SPECIFIC FIX) ===== */
.edit-vendor-component {
    color: var(--primary);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.1);
    display: inline-flex;
    align-items: center;
}

    .edit-vendor-component .vendor-name {
        color: var(--dark) !important;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.9);
        padding: 0.25rem 0.75rem;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        margin-left: 0.5rem;
        text-shadow: 0 0 0.5px currentColor;
    }

[data-theme="dark"] .edit-vendor-component .vendor-name {
    background: rgba(0, 0, 0, 0.2);
    border-color: var(--border);
}

/* ===== 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;
    }
}
