/* ============================================================================
   AI Recruitment & Interview Platform - Premium UI
   Inspired by: Apple, Linear, Stripe Dashboard, Hubtown
   ============================================================================ */

:root {
    /* Brand Colors */
    --brand-primary: #2563EB;
    --brand-secondary: #1E40AF;
    --brand-accent: #3B82F6;

    /* Light Theme */
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F5F9;
    --bg-hover: #E2E8F0;
    --bg-active: #DBEAFE;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --border-hover: #CBD5E1;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.10);
    --glass-bg: rgba(255,255,255,0.70);
    --glass-border: rgba(255,255,255,0.50);
    --glass-blur: blur(20px);

    /* Semantic Colors */
    --success: #22C55E;
    --success-bg: #F0FDF4;
    --warning: #F59E0B;
    --warning-bg: #FFFBEB;
    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --info: #3B82F6;
    --info-bg: #EFF6FF;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --sidebar-width: 260px;
    --topbar-height: 64px;
}

[data-theme="dark"] {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --bg-hover: #334155;
    --bg-active: #1E3A5F;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    --border-color: #334155;
    --border-hover: #475569;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.20);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.30);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.40);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.50);
    --glass-bg: rgba(30,41,59,0.70);
    --glass-border: rgba(148,163,184,0.10);
    --glass-blur: blur(20px);
}

/* ============================================================================
   Base Styles
   ============================================================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--transition-base), color var(--transition-base);
}

a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--brand-secondary); }

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; }

/* ============================================================================
   Glassmorphism
   ============================================================================ */

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

/* ============================================================================
   Layout
   ============================================================================ */

.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1000;
    transition: transform var(--transition-base);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-area { flex: 1; padding: var(--space-xl); }

/* ============================================================================
   Sidebar
   ============================================================================ */

.sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.sidebar-logo i { color: var(--brand-primary); font-size: 24px; }

.sidebar-toggle {
    background: none; border: none; color: var(--text-secondary); font-size: 20px; cursor: pointer;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: var(--space-md); }

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2px;
    transition: all var(--transition-fast);
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--brand-primary); color: white; }
.nav-item i { font-size: 18px; width: 20px; text-align: center; }

.nav-section {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: var(--space-lg) var(--space-md) var(--space-sm);
}

/* ============================================================================
   Topbar
   ============================================================================ */

.topbar {
    height: var(--topbar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    position: sticky; top: 0; z-index: 100;
}

.topbar-toggle { background: none; border: none; font-size: 22px; color: var(--text-primary); cursor: pointer; }

.topbar-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}
.topbar-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.topbar-search input { padding-left: 36px; }

.topbar-actions { display: flex; align-items: center; gap: var(--space-md); }

.theme-toggle {
    background: none; border: none; font-size: 18px; cursor: pointer;
    color: var(--text-secondary); padding: var(--space-sm);
    border-radius: var(--radius-md); transition: all var(--transition-fast);
}
.theme-toggle:hover { background: var(--bg-hover); }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }

.topbar-icon {
    position: relative;
    color: var(--text-secondary);
    font-size: 18px;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.topbar-icon:hover { background: var(--bg-hover); color: var(--text-primary); }
.badge-dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
}

.topbar-user {
    display: flex; align-items: center; gap: var(--space-sm);
    background: none; border: none; cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}
.topbar-user:hover { background: var(--bg-hover); }

.user-avatar {
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
}

.user-name { font-weight: 500; }

/* ============================================================================
   Cards & Stats
   ============================================================================ */

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-lg); }

.card-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: var(--space-sm); }
.card-header h3 i { color: var(--brand-primary); }

.card-body { padding: var(--space-lg); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    display: flex; align-items: center; gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.stat-blue { background: #DBEAFE; color: #2563EB; }
.stat-green { background: #DCFCE7; color: #16A34A; }
.stat-purple { background: #E9D5FF; color: #9333EA; }
.stat-orange { background: #FED7AA; color: #EA580C; }

[data-theme="dark"] .stat-blue { background: rgba(37,99,235,0.15); }
[data-theme="dark"] .stat-green { background: rgba(22,163,74,0.15); }
[data-theme="dark"] .stat-purple { background: rgba(147,51,234,0.15); }
[data-theme="dark"] .stat-orange { background: rgba(234,88,12,0.15); }

.stat-value { font-size: 28px; font-weight: 700; line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* ============================================================================
   Page Header
   ============================================================================ */

.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--space-xl);
}
.page-title { font-size: 28px; font-weight: 700; }
.page-subtitle { color: var(--text-secondary); margin-top: 4px; }
.page-actions { display: flex; gap: var(--space-sm); }

/* ============================================================================
   Forms
   ============================================================================ */

.form-control, .form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    transition: all var(--transition-fast);
    width: 100%;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    outline: none;
}
.form-label { font-weight: 500; margin-bottom: 6px; color: var(--text-primary); }

.input-wrap {
    position: relative;
    display: flex; align-items: center;
}
.input-wrap > i {
    position: absolute; left: 12px;
    color: var(--text-muted);
    pointer-events: none;
}
.input-wrap .form-control { padding-left: 38px; }
.input-wrap .password-toggle {
    position: absolute; right: 8px;
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    padding: 4px 8px;
}
.input-wrap .password-toggle:hover { color: var(--text-primary); }

.form-group { margin-bottom: var(--space-md); }
.form-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}
.btn-primary:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(37,99,235,0.30);
}

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

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}
.btn-outline-secondary:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-warning { background: var(--warning); color: white; border-color: var(--warning); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-icon { padding: 6px 10px; background: transparent; border: none; color: var(--text-secondary); }
.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-animate { transition: all var(--transition-base); }
.btn-animate:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-animate:active { transform: translateY(0); }

/* ============================================================================
   Tables
   ============================================================================ */

.table { color: var(--text-primary); margin-bottom: 0; }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border-color); padding: 12px 16px; }
.table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border-color); }
.table-hover tbody tr { transition: background var(--transition-fast); }
.table-hover tbody tr:hover { background: var(--bg-tertiary); }

/* ============================================================================
   Badges
   ============================================================================ */

.badge { font-weight: 500; padding: 4px 10px; border-radius: var(--radius-full); font-size: 12px; }

/* ============================================================================
   Empty States
   ============================================================================ */

.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: var(--space-md); opacity: 0.4; }
.empty-state h4 { margin-bottom: var(--space-sm); color: var(--text-secondary); }
.empty-state p { margin-bottom: var(--space-md); }

/* ============================================================================
   Activity Timeline
   ============================================================================ */

.activity-timeline { position: relative; }
.activity-item {
    display: flex; gap: var(--space-md);
    padding-bottom: var(--space-lg);
    position: relative;
}
.activity-item::before {
    content: '';
    position: absolute;
    left: 7px; top: 16px; bottom: 0;
    width: 2px;
    background: var(--border-color);
}
.activity-item:last-child::before { display: none; }
.activity-dot {
    width: 16px; height: 16px;
    border-radius: var(--radius-full);
    background: var(--brand-primary);
    flex-shrink: 0;
    margin-top: 2px;
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 0 2px var(--brand-primary);
}
.activity-content p { margin-bottom: 2px; font-size: 13px; }
.activity-content small { color: var(--text-muted); font-size: 12px; }

/* ============================================================================
   Auth Pages
   ============================================================================ */

.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
    .auth-container { grid-template-columns: 1fr; }
    .auth-bg { display: none; }
}

.auth-card {
    max-width: 460px;
    margin: auto;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    width: 100%;
}

.auth-header { text-align: center; margin-bottom: var(--space-xl); }
.auth-logo {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    font-size: 22px; font-weight: 700; color: var(--text-primary);
    margin-bottom: var(--space-xl);
}
.auth-logo i { color: var(--brand-primary); font-size: 28px; }
.auth-header h1 { font-size: 26px; margin-bottom: var(--space-sm); }
.auth-header p { color: var(--text-secondary); }

.auth-form { display: flex; flex-direction: column; gap: var(--space-md); }
.auth-options { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.link { color: var(--brand-primary); font-weight: 500; }

.auth-divider {
    text-align: center; margin: var(--space-lg) 0;
    position: relative; color: var(--text-muted);
}
.auth-divider::before, .auth-divider::after {
    content: ''; position: absolute; top: 50%; width: 40%; height: 1px;
    background: var(--border-color);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-footer { text-align: center; margin-top: var(--space-lg); color: var(--text-secondary); }

.auth-bg {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-2xl);
    color: white;
}
.auth-bg-content { max-width: 480px; }
.auth-bg-content h2 { font-size: 36px; margin-bottom: var(--space-md); }
.auth-bg-content p { font-size: 16px; opacity: 0.85; margin-bottom: var(--space-xl); }
.auth-features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.auth-feature {
    display: flex; align-items: center; gap: var(--space-sm);
    font-size: 14px; opacity: 0.90;
}

/* ============================================================================
   Landing Page
   ============================================================================ */

.landing-hero {
    background: linear-gradient(135deg, #0F172A, #1E3A5F, #2563EB);
    min-height: 100vh;
    color: white;
    position: relative;
    overflow: hidden;
}
.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 60%);
    animation: float 20s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.landing-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-lg) var(--space-2xl);
    position: relative; z-index: 10;
}
.landing-logo { display: flex; align-items: center; gap: var(--space-sm); font-size: 22px; font-weight: 700; color: white; }
.landing-nav-links { display: flex; gap: var(--space-sm); }

.hero-content {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
    position: relative; z-index: 10;
}
.hero-title { font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: var(--space-lg); }
.hero-subtitle { font-size: 18px; opacity: 0.85; margin-bottom: var(--space-xl); }
.hero-actions { display: flex; gap: var(--space-md); justify-content: center; }

.landing-features { padding: var(--space-2xl) 0; background: var(--bg-primary); }
.section-title { text-align: center; font-size: 32px; margin-bottom: var(--space-2xl); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-lg); }
.feature-card { padding: var(--space-xl); border-radius: var(--radius-lg); transition: all var(--transition-base); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.feature-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: var(--space-md);
}
.feature-card h3 { font-size: 18px; margin-bottom: var(--space-sm); }
.feature-card p { color: var(--text-secondary); }

.landing-cta { padding: var(--space-2xl) 0; background: var(--bg-tertiary); }
.landing-cta h2 { font-size: 32px; margin-bottom: var(--space-md); }
.landing-cta p { font-size: 16px; color: var(--text-secondary); margin-bottom: var(--space-xl); }

/* ============================================================================
   Interview Room
   ============================================================================ */

.video-body { background: #0F172A; overflow: hidden; }
.interview-room-container { height: 100vh; display: flex; flex-direction: column; }
.interview-room-header {
    padding: var(--space-md) var(--space-lg);
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.interview-room-header h2 { font-size: 18px; color: var(--text-primary); }
.interview-room-header p { font-size: 13px; color: var(--text-secondary); }
.interview-room-actions { display: flex; gap: var(--space-sm); }
.jitsi-container { flex: 1; width: 100%; }

.recording-active { animation: pulse-red 1.5s infinite; }
@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================================================
   Dashboard Grid
   ============================================================================ */

.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-lg); }
.dashboard-col { display: flex; flex-direction: column; gap: var(--space-lg); }
@media (max-width: 992px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   Chart Bars
   ============================================================================ */

.chart-container { display: flex; align-items: flex-end; gap: var(--space-md); height: 200px; padding: var(--space-md) 0; }
.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--brand-accent), var(--brand-primary));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
    min-height: 20px;
    transition: all var(--transition-base);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.chart-bar:hover { opacity: 0.85; }
.chart-value { position: absolute; top: -24px; font-size: 12px; font-weight: 600; color: var(--text-primary); }
.chart-label { position: absolute; bottom: -24px; font-size: 11px; color: var(--text-muted); }

/* ============================================================================
   Interview Items
   ============================================================================ */

.interview-item { display: flex; align-items: center; gap: var(--space-md); }
.interview-date {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.date-day { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.date-month { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.interview-info { flex: 1; }
.interview-info h5 { font-size: 14px; margin-bottom: 2px; }
.interview-info p { font-size: 13px; color: var(--text-secondary); margin-bottom: 2px; }
.interview-info small { color: var(--text-muted); }

/* ============================================================================
   List Items
   ============================================================================ */

.list-item-animate { transition: all var(--transition-fast); }
.list-item-animate:hover { transform: translateX(4px); }

.row-animate { animation: fadeInUp 300ms ease-out; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   Pipeline Stages
   ============================================================================ */

.pipeline-stages { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.pipeline-stage {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    font-size: 13px; font-weight: 500;
    transition: all var(--transition-fast);
}
.pipeline-stage.active { background: var(--stage-color, var(--brand-primary)); color: white; }
.stage-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--stage-color, var(--brand-primary)); }
.pipeline-stage.active .stage-dot { background: white; }

/* ============================================================================
   Skill Tags
   ============================================================================ */

.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    font-size: 12px; font-weight: 500;
    color: var(--text-secondary);
}

/* ============================================================================
   Score Badge
   ============================================================================ */

.score-badge {
    width: 48px; height: 48px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    color: white;
}

/* ============================================================================
   Candidate Avatar
   ============================================================================ */

.candidate-avatar-lg {
    width: 80px; height: 80px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700;
    margin: 0 auto;
}

/* ============================================================================
   Filter Bar
   ============================================================================ */

.filter-bar { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ============================================================================
   Pagination
   ============================================================================ */

.pagination-wrap { display: flex; gap: var(--space-xs); justify-content: center; margin-top: var(--space-lg); }

/* ============================================================================
   Password Strength
   ============================================================================ */

.password-strength { height: 4px; border-radius: var(--radius-full); margin-top: 6px; transition: all var(--transition-base); background: var(--border-color); }
.password-strength.weak { background: var(--danger); width: 33%; }
.password-strength.medium { background: var(--warning); width: 66%; }
.password-strength.strong { background: var(--success); width: 100%; }

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
}

@media (max-width: 768px) {
    .content-area { padding: var(--space-md); }
    .page-title { font-size: 22px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 36px; }
    .topbar-search { display: none; }
}

/* ============================================================================
   Scrollbar
   ============================================================================ */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ============================================================================
   Report
   ============================================================================ */

.report-body { background: white; color: #0F172A; padding: 40px; }
