/* TalentForge Styles */

:root {
    /* Bhavnacorp brand colors */
    --primary: #10256c;
    --primary-dark: #0c183e;
    --secondary: #64748b;
    --success: #068902;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 8px;
    --accent: #068902;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 32px;
    width: auto;
}

.nav-brand a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: #eff6ff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Page Header */
.page-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.page-header .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.back-link:hover {
    color: var(--primary);
}

.header-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

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

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
    overflow-x: auto;
}

.card-header.collapsible {
    cursor: pointer;
}

.card-body.collapsed {
    display: none;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.dashboard-grid .card-header {
    padding: 0.75rem 1rem;
}

.dashboard-grid .card-header h2 {
    font-size: 0.9rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.table-compact th,
.table-compact td {
    padding: 0.5rem 0.75rem;
}

.table-striped tbody tr:nth-child(even) {
    background: var(--bg);
}

/* Dashboard compact tables */
.card-body-compact {
    padding: 0.75rem;
}

.table-dashboard {
    font-size: 0.8rem;
}

.table-dashboard th,
.table-dashboard td {
    padding: 0.5rem 0.75rem;
}

.table-dashboard th {
    font-size: 0.7rem;
}

.table-dashboard .cell-truncate {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-dashboard .cell-truncate a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-dashboard .cell-subtitle {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-dashboard .cell-date {
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Badges */
.badge,
.tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 9999px;
    background: var(--bg);
    color: var(--text-muted);
}

.badge-primary {
    background: #dbeafe;
    color: var(--primary);
}

.badge-archived {
    background: #fef3c7;
    color: #92400e;
    margin-left: 0.5rem;
}

.archived-row {
    opacity: 0.6;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.toggle-label input[type="checkbox"] {
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    min-width: 250px;
}

.search-box .form-control {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.tag {
    margin-right: 0.25rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
}

.status-new { background: #dbeafe; color: #1d4ed8; }
.status-screening { background: #fef3c7; color: #d97706; }
.status-interview { background: #e0e7ff; color: #4f46e5; }
.status-offered { background: #d1fae5; color: #059669; }
.status-rejected { background: #fee2e2; color: #dc2626; }
.status-hired { background: #d1fae5; color: #059669; }
.status-active { background: #d1fae5; color: #059669; }
.status-paused { background: #fef3c7; color: #d97706; }
.status-closed { background: #f3f4f6; color: #6b7280; }
.status-filled { background: #dbeafe; color: #1d4ed8; }
.status-processing { background: #fef3c7; color: #d97706; }
.status-assessed { background: #d1fae5; color: #059669; }

/* CV Drop Zone */
.cv-drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-drop-zone:hover {
    border-color: var(--primary);
    background: #f0f9ff;
}

.cv-drop-zone.drag-over {
    border-color: var(--primary);
    background: #dbeafe;
    border-style: solid;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.drop-zone-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.drop-zone-text {
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.drop-zone-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.drop-zone-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.drop-zone-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.drop-zone-loading p {
    margin: 0;
    color: #6b7280;
}

.drop-zone-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.drop-zone-success .success-icon {
    width: 48px;
    height: 48px;
    background: #d1fae5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.drop-zone-success p {
    margin: 0;
    color: #059669;
    font-weight: 500;
}

.drop-zone-current {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem !important;
    font-style: italic;
}

/* Status Display (read-only) */
.status-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
}

.status-display.status-new {
    background: #f3f4f6;
    color: #6b7280;
}

.status-display.status-processing {
    background: #fef3c7;
    color: #d97706;
}

.status-display.status-assessed {
    background: #d1fae5;
    color: #059669;
}

.status-icon {
    font-size: 1rem;
}

/* Auto-filled field indicator */
.form-control.auto-filled {
    background-color: #f0fdf4;
    border-color: #86efac;
}

/* Score Badges */
.score-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
}

.score-low { background: #fee2e2; color: #dc2626; }
.score-moderate { background: #fef3c7; color: #d97706; }
.score-moderatestrong { background: #d1fae5; color: #059669; }
.score-strong { background: #d1fae5; color: #059669; }

/* Risk Badges */
.risk-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius);
}

.risk-low { background: #d1fae5; color: #059669; }
.risk-medium { background: #fef3c7; color: #d97706; }
.risk-high { background: #fee2e2; color: #dc2626; }

/* Confidence Badge */
.confidence-badge {
    font-family: monospace;
    font-size: 0.875rem;
}

/* Assessment Summary */
.assessment-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.score-display {
    padding: 1rem;
    border-radius: var(--radius);
}

.score-display .score-value {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.score-display .score-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.score-display.score-low { background: #fee2e2; color: #dc2626; }
.score-display.score-moderate { background: #fef3c7; color: #d97706; }
.score-display.score-moderatestrong { background: #d1fae5; color: #059669; }
.score-display.score-strong { background: #d1fae5; color: #059669; }

.recommendation-display {
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
}

.recommendation-display.recommendation-proceed-to-interview { background: #d1fae5; color: #059669; }
.recommendation-display.recommendation-proceed-to-l1 { background: #d1fae5; color: #059669; }
.recommendation-display.recommendation-proceed { background: #d1fae5; color: #059669; }
.recommendation-display.recommendation-proceed-with-caution { background: #fef3c7; color: #d97706; }
.recommendation-display.recommendation-do-not-proceed { background: #fee2e2; color: #dc2626; }

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.invalid {
    border-color: var(--danger);
}

.form-control.invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
    display: block;
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.code-textarea {
    font-family: monospace;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* Danger Button */
.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Generate Status */
.generate-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.generate-status.success {
    background: #d1fae5;
    color: #059669;
}

.generate-status.error {
    background: #fee2e2;
    color: #dc2626;
}

.hidden {
    display: none;
}

/* Lists */
.item-list {
    list-style: none;
}

.item-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-list li:last-child {
    border-bottom: none;
}

.item-list .meta {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.blueprint-list,
.red-flags-list {
    padding-left: 1.5rem;
}

.blueprint-list li,
.red-flags-list li {
    margin-bottom: 1rem;
}

.blueprint-list li p,
.red-flags-list li p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.focus-areas {
    list-style: none;
}

.focus-areas li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.focus-areas li p {
    margin: 0;
    display: inline;
}

.focus-areas li strong {
    color: var(--text);
}

.focus-areas .priority {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Info List */
.info-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
}

.info-list dt {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Preview blocks */
.cv-preview,
.jd-preview,
.markdown-preview,
.content-preview {
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.8rem;
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius);
    max-height: 400px;
    overflow-y: auto;
}

.executive-summary {
    font-size: 1rem;
    line-height: 1.8;
}

.executive-summary p {
    margin-bottom: 0.5rem;
}

/* Markdown content in tables */
.table td p {
    margin: 0;
}

.table td strong {
    color: var(--primary-dark);
}

.table td p:last-child {
    margin-bottom: 0;
}

/* Rendered Markdown Content */
.markdown-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
}

.markdown-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin: 1.5rem 0 1rem 0;
}

.markdown-content h1:first-child {
    margin-top: 0;
}

.markdown-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    margin: 1.5rem 0 0.75rem 0;
}

.markdown-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.25rem 0 0.5rem 0;
}

.markdown-content p {
    margin: 0.75rem 0;
}

.markdown-content strong {
    color: var(--primary-dark);
}

.markdown-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* Markdown tables */
.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.markdown-content table th,
.markdown-content table td {
    border: 1px solid var(--border);
    padding: 0.6rem 0.8rem;
    text-align: left;
}

.markdown-content table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text);
}

.markdown-content table tr:nth-child(even) {
    background: var(--bg);
}

.markdown-content table tr:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

/* Table alignment from markdown */
.markdown-content table th[align="center"],
.markdown-content table td[align="center"] {
    text-align: center;
}

.markdown-content table th[align="right"],
.markdown-content table td[align="right"] {
    text-align: right;
}

/* Bold and emoji in tables */
.markdown-content table strong {
    color: var(--primary-dark);
}

.markdown-content table code {
    background: var(--bg);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Markdown lists */
.markdown-content ul,
.markdown-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin: 0.3rem 0;
}

/* Code blocks */
.markdown-content pre {
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.85rem;
}

.markdown-content code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

/* Blockquotes */
.markdown-content blockquote {
    border-left: 3px solid var(--primary);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: var(--bg);
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Quick Actions */
.quick-actions {
    margin-top: 1rem;
}

.quick-actions h2 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .dashboard-grid,
    .detail-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .assessment-summary {
        grid-template-columns: 1fr;
    }
}

/* Authentication Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.auth-card h1 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.auth-card .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-form {
    text-align: left;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .btn-block {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth-note {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Nav user section */
.nav-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Badge variants */
.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cta-content h2 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.cta-content p {
    opacity: 0.9;
    margin: 0;
    font-size: 0.85rem;
}

.cta-button {
    flex-shrink: 0;
    background: white;
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.cta-button:hover {
    background: #f0f0f0;
}

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

.btn-success:hover {
    background: #057000;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Assessment Wizard Styles */
.wizard-container {
    max-width: 900px;
    margin: 0 auto;
}

.wizard-header {
    margin-bottom: 2rem;
}

.wizard-header h1 {
    margin-bottom: 1.5rem;
}

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1rem 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s;
}

.wizard-step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.wizard-step.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.wizard-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.wizard-step.completed .step-label {
    color: var(--success);
}

.wizard-step-connector {
    width: 60px;
    height: 2px;
    background: var(--border);
    flex-shrink: 0;
}

.wizard-step-connector.completed {
    background: var(--success);
}

.wizard-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.wizard-step-content h2 {
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.wizard-footer {
    display: flex;
    justify-content: flex-end;
}

.wizard-nav {
    display: flex;
    gap: 1rem;
}

/* Candidate Selection */
.candidate-selection {
    margin-top: 1rem;
}

/* Search and Filter Row */
.search-filter-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.search-box-large {
    flex: 1;
}

.search-box-large .form-control {
    padding: 0.625rem 1rem;
}

.position-filter {
    width: 200px;
    flex-shrink: 0;
}

/* Compact Table-like Candidate List */
.candidate-table-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 350px;
    overflow-y: auto;
}

.candidate-row {
    display: grid;
    grid-template-columns: auto 1fr 1.2fr 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
    background: var(--card-bg);
}

.candidate-row:last-child {
    border-bottom: none;
}

.candidate-row:hover {
    background: #f8faff;
}

.candidate-row.selected,
.candidate-row:has(input:checked) {
    background: #eff6ff;
}

.candidate-row input[type="radio"] {
    margin: 0;
}

.candidate-row .candidate-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.candidate-row .candidate-contact {
    color: var(--text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.candidate-row .candidate-position-cell {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Legacy card styles (kept for compatibility) */
.candidate-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.candidate-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
}

.candidate-card:hover {
    border-color: var(--primary);
    background: #f8faff;
}

.candidate-card.selected,
.candidate-card:has(input:checked) {
    border-color: var(--primary);
    background: #eff6ff;
}

.candidate-card input[type="radio"] {
    margin-top: 0.25rem;
}

.candidate-info {
    flex: 1;
}

.candidate-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.candidate-position,
.candidate-client {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Assessment Type Selection */
.assessment-type-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.type-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
}

.type-card:hover {
    border-color: var(--primary);
}

.type-card.selected,
.type-card:has(input:checked) {
    border-color: var(--primary);
    background: #eff6ff;
}

.type-card input[type="radio"] {
    margin-top: 0.5rem;
}

.type-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.type-info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.type-info p {
    color: var(--text-muted);
    margin: 0;
}

/* Info message within type card */
.type-info .info-message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: #1e40af;
}

.type-info .info-message svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
    stroke: #3b82f6;
}

.type-info .info-message span {
    line-height: 1.4;
}

/* Summary Card (compact) */
.summary-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card h4 {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.summary-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.summary-details.inline {
    align-items: center;
}

.summary-card.compact {
    padding: 0.75rem 1rem;
}

/* Centered Summary Card */
.summary-card-centered {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.summary-card-centered .summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.summary-card-centered .summary-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.summary-card-centered .summary-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Disabled type card */
.type-card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.type-card-disabled:hover {
    border-color: var(--border);
    background: var(--card-bg);
}

/* Coming Soon Badge */
.badge-coming-soon {
    display: inline-block;
    background: var(--secondary);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Cheat Sheet Selection */
.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.cheat-sheet-selection {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cheat-sheet-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
}

.cheat-sheet-card:hover {
    border-color: var(--primary);
}

.cheat-sheet-card.selected,
.cheat-sheet-card:has(input:checked) {
    border-color: var(--primary);
    background: #eff6ff;
}

.cheat-sheet-card.primary {
    border-color: var(--success);
}

.cheat-sheet-card input[type="radio"] {
    margin-top: 0.25rem;
}

.cs-info {
    flex: 1;
}

.cs-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cs-header .version {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.cs-mission {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.badge.primary {
    background: var(--success);
    color: white;
}

.other-options {
    margin-top: 1rem;
}

.other-options summary {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.other-options summary:hover {
    color: var(--primary);
}

.other-options .cheat-sheet-selection {
    margin-top: 1rem;
}

/* Document Uploads */
.document-uploads {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-uploads .form-group {
    margin-bottom: 0;
}

.document-uploads small {
    display: block;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Review Section */
.review-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-section h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.review-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1rem;
}

.review-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.review-row:last-child {
    border-bottom: none;
}

.review-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.review-value {
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.text-warning {
    color: var(--warning);
}

/* Alert Info */
.alert-info {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 450px;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.toast-success .toast-icon {
    background: #d1fae5;
    color: var(--success);
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: var(--danger);
}

.toast-info .toast-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text);
}

/* Toast animation out */
.toast.toast-out {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Progress Toast */
.toast-progress {
    border-left: 3px solid var(--primary);
}

.toast-progress .toast-icon {
    background: #dbeafe;
    color: var(--primary);
}

.toast-icon-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-percent {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.25rem;
}

.progress-message {
    display: block;
    font-size: 0.8rem;
}

/* Responsive Wizard */
@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
    }

    .wizard-steps {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .wizard-step-connector {
        display: none;
    }

    .wizard-step {
        flex: 1;
        min-width: 80px;
    }

    .type-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .review-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .review-value {
        text-align: left;
        max-width: 100%;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        min-width: auto;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Duplicate card styles */
.duplicate-info {
    margin: 1rem 0;
}

.duplicate-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.duplicate-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.duplicate-details {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.duplicate-details div {
    margin-bottom: 0.25rem;
}

.duplicate-details strong {
    color: var(--text);
}

/* Merge notification banner */
.merge-banner {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.merge-banner-icon {
    font-size: 1.5rem;
}

.merge-banner-text {
    flex: 1;
}

.merge-banner-text strong {
    display: block;
    color: #b45309;
}

.merge-banner-text span {
    font-size: 0.9rem;
    color: #92400e;
}

/* Environment indicator badge */
.env-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.env-test {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #f59e0b;
}

.env-development {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #3b82f6;
}

/* LLM Profile indicator badge */
.profile-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    margin-left: 0.35rem;
    vertical-align: middle;
    cursor: help;
}

.profile-free {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #10b981;
}

.profile-paid {
    background: #fce7f3;
    color: #be185d;
    border: 1px solid #ec4899;
}

/* Admin sub-navigation */
.admin-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.admin-nav-link {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-nav-link:hover {
    background: #f3f4f6;
    color: #374151;
}

.admin-nav-link.active {
    background: #3b82f6;
    color: white;
}
