:root {
    --primary-gradient: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.main-content {
    flex: 1;
}

/* Hero */
.hero-section {
    background: var(--primary-gradient);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Cards */
.card {
    border: none;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-2px);
}

.stat-card {
    border-left: 4px solid #2563eb;
}

.stat-card.success { border-left-color: #198754; }
.stat-card.warning { border-left-color: #ffc107; }
.stat-card.danger { border-left-color: #dc3545; }
.stat-card.info { border-left-color: #0dcaf0; }

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Wizard */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bs-border-color);
    z-index: 0;
}

.wizard-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.wizard-step .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-body-bg);
    border: 3px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.wizard-step.active .step-circle,
.wizard-step.completed .step-circle {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.wizard-step.completed .step-circle {
    background: #198754;
    border-color: #198754;
}

.wizard-step .step-label {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.wizard-step.active .step-label {
    color: #2563eb;
    font-weight: 600;
}

.wizard-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Skills matrix */
.skills-matrix th,
.skills-matrix td {
    text-align: center;
    vertical-align: middle;
}

.skills-matrix input[type="radio"] {
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
}

/* Dashboard */
.sidebar-card {
    position: sticky;
    top: 80px;
}

.status-timeline .timeline-item {
    padding-left: 1.5rem;
    border-left: 2px solid var(--bs-border-color);
    margin-bottom: 1rem;
    position: relative;
}

.status-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2563eb;
}

/* Analytics */
.chart-container {
    position: relative;
    height: 300px;
}

.insight-card {
    border-left: 4px solid #2563eb;
    background: var(--bs-tertiary-bg);
}

/* Tables */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

/* Loading */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

/* Print */
@media print {
    .navbar, .footer, .no-print, #themeToggle {
        display: none !important;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Auth pages */
.auth-wrapper {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

/* Word counter */
.word-counter {
    font-size: 0.875rem;
    font-weight: 500;
}

.word-counter.valid { color: #198754; }
.word-counter.invalid { color: #dc3545; }

/* Score badge */
.score-badge {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.score-highly { background: #d1e7dd; color: #0f5132; }
.score-qualified { background: #cff4fc; color: #055160; }
.score-review { background: #fff3cd; color: #664d03; }
.score-risk { background: #f8d7da; color: #842029; }

[data-bs-theme="dark"] .score-highly { background: #0f5132; color: #d1e7dd; }
[data-bs-theme="dark"] .score-qualified { background: #055160; color: #cff4fc; }
[data-bs-theme="dark"] .score-review { background: #664d03; color: #fff3cd; }
[data-bs-theme="dark"] .score-risk { background: #842029; color: #f8d7da; }

/* Interview summary print */
@media print {
    .navbar, .no-print, #themeToggle, footer, .d-print-none { display: none !important; }
    .main-content { padding: 0 !important; }
    .interview-summary-card { border: none !important; box-shadow: none !important; }
    body.print-page { background: #fff !important; }
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 576px) {
    .wizard-step .step-label { display: none; }
    .stat-card .stat-value { font-size: 1.5rem; }
    .hero-section { padding: 2.5rem 0; }
}
