/* Bench Talent Cloud - Professional Recruitment CRM Interface Styles */

:root {
    /* Bench Brand Colors */
    --bench-navy: #1a2b4a;
    --bench-blue: #2563eb;
    --bench-blue-light: #3b82f6;
    --bench-gradient: linear-gradient(135deg, #1a2b4a 0%, #2563eb 100%);
    
    /* Primary color scheme */
    --primary-color: #1a2b4a;
    --primary-hover: #2c4a7c;
    --secondary-color: #4a5568;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    
    /* Background colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #1a2b4a;
    
    /* Text colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-white: #ffffff;
    
    /* Border colors */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-dark: #94a3b8;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: var(--bench-gradient);
    color: var(--text-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: relative;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.logo-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.logo-icon {
    height: 32px;
    width: auto;
    max-width: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes navy logo white for dark header */
    transition: filter 0.2s ease;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.5px;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Section Styles */
.form-section,
.search-section,
.results-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Form Styles */
.job-form {
    padding: 2rem;
}

.form-section-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.form-section-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-group h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Skills Section */
.skills-container {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.skills-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.skills-list {
    max-height: 300px;
    overflow-y: auto;
}

.skill-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

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

.skill-row input,
.skill-row select {
    padding: 0.5rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.remove-skill-btn {
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.2s;
}

.remove-skill-btn:hover {
    background: #c53030;
}

.add-skill-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin: 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

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

/* ========== Candidate Evaluation Rules ========== */
.rules-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rule-card {
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rule-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
}

.rule-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rule-icon {
    font-size: 1.25rem;
}

.rule-name {
    font-size: 1rem;
}

.rule-importance select {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

/* Importance level color coding */
.rule-importance select[data-importance="required"] {
    border-color: var(--error-color);
    background-color: rgba(229, 62, 62, 0.1);
    color: var(--error-color);
}

.rule-importance select[data-importance="important"] {
    border-color: var(--warning-color);
    background-color: rgba(214, 158, 46, 0.1);
    color: #b7791f;
}

.rule-importance select[data-importance="nice_to_have"] {
    border-color: var(--success-color);
    background-color: rgba(56, 161, 105, 0.1);
    color: var(--success-color);
}

.rule-description {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.rule-job-data {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background: rgba(49, 130, 206, 0.05);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rule-job-data:empty {
    display: none;
}

.job-data-label {
    font-weight: 600;
    color: var(--accent-color);
}

.job-data-value {
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.rule-context {
    padding: 1rem;
}

.rule-context label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.rule-context textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rule-context textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.rule-context textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Toggle button for rules section */
.btn-icon-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.btn-icon-toggle:hover {
    color: var(--accent-color);
}

/* Collapsed state */
.rules-container.collapsed {
    display: none;
}

/* Source Selection */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.source-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.source-option:hover {
    border-color: var(--accent-color);
    background-color: var(--bg-secondary);
}

.source-option.premium-source {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
}

.source-option.premium-source:hover {
    border-color: #f59e0b;
    background: rgba(251, 191, 36, 0.1);
}

.premium-controls {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fff9f0 0%, #ffeedd 100%);
    border: 1px solid #f39c12;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.1);
}

.cost-indicator {
    color: #d35400;
    font-weight: 600;
    font-size: 0.85em;
}

.help-text {
    color: #7f8c8d;
    font-size: 0.8em;
    margin-top: 5px;
    display: block;
}

/* Job Boards Source Styles */
.source-option.job-boards-source {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.source-option.job-boards-source:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.job-boards-controls {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: #3b82f6 !important;
}

.job-boards-controls .info-badge {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 8px;
}

.job-boards-controls .job-boards-info {
    margin-bottom: 15px;
}

.job-boards-controls .job-boards-info p {
    margin: 0;
    color: #1e40af;
    font-size: 0.9em;
    line-height: 1.4;
}

.job-boards-controls .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.job-boards-controls .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.job-boards-controls .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

@media (max-width: 768px) {
    .job-boards-controls .form-row {
        grid-template-columns: 1fr;
    }
}

/* Landing Page Source Styles (MVP-TICKET-044) */
.source-option.landing-page-source {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.source-option.landing-page-source:hover {
    border-color: #059669;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.landing-page-controls {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border-color: #10b981 !important;
}

.landing-page-controls .info-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 8px;
}

.landing-page-controls .landing-page-info {
    margin-bottom: 15px;
}

.landing-page-controls .landing-page-info p {
    margin: 0;
    color: #065f46;
    font-size: 0.9em;
    line-height: 1.4;
}

.landing-page-controls .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Mode Selection Cards */
.mode-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.mode-option {
    cursor: pointer;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-option .mode-card {
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    background: white;
    transition: all 0.2s ease;
}

.mode-option .mode-card strong {
    display: block;
    margin-bottom: 4px;
    color: #1f2937;
}

.mode-option .mode-card small {
    color: #6b7280;
    font-size: 0.85em;
    line-height: 1.3;
}

.mode-option input[type="radio"]:checked + .mode-card {
    border-color: #10b981;
    background: #ecfdf5;
}

.mode-option input[type="radio"]:checked + .mode-card strong {
    color: #065f46;
}

/* Focus Areas Grid */
.focus-areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.focus-areas-grid .checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    cursor: pointer;
}

.focus-areas-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #10b981;
}

/* Narrative Header with AI Button */
.narrative-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.narrative-header label {
    margin-bottom: 0 !important;
}

.btn-ai {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ai:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
}

.btn-ai:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Slug validation */
.input-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.slug-error {
    display: block;
    margin-top: 4px;
    font-size: 0.85em;
    color: #dc2626;
}

@media (max-width: 768px) {
    .landing-page-controls .form-row {
        grid-template-columns: 1fr;
    }
    
    .mode-selection {
        grid-template-columns: 1fr;
    }
    
    .focus-areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Active Sources Sections (Job Board Postings, Landing Pages) */
.active-sources-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.active-sources-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.active-sources-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: var(--text-primary);
}

.active-sources-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-items-message {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    margin: 0;
}

/* Active Source Item Card */
.active-source-item {
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    padding: 15px;
    border: 1px solid var(--border-color);
}

.active-source-item .source-url {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--primary-color);
    word-break: break-all;
    margin-bottom: 10px;
}

.active-source-item .source-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.9em;
}

.active-source-item .source-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.active-source-item .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.active-source-item .status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.active-source-item .status-badge.closed {
    background: #fecaca;
    color: #991b1b;
}

.active-source-item .mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    background: #e0e7ff;
    color: #3730a3;
}

.active-source-item .source-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.active-source-item .source-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.active-source-item .source-actions .btn {
    padding: 6px 12px;
    font-size: 0.85em;
}

.active-source-item .source-actions .btn-preview {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.active-source-item .source-actions .btn-preview:hover {
    background: #e5e7eb;
}

.active-source-item .source-actions .btn-edit {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.active-source-item .source-actions .btn-edit:hover {
    background: #bfdbfe;
}

.active-source-item .source-actions .btn-copy {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.active-source-item .source-actions .btn-copy:hover {
    background: #d1fae5;
}

.active-source-item .source-actions .btn-close {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.active-source-item .source-actions .btn-close:hover {
    background: #fecaca;
}

/* Job Quality Assessment Styles */
.job-quality-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 15px;
}

.quality-warning-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quality-warning-icon {
    font-size: 1.5em;
}

.quality-warning-text {
    flex: 1;
}

.quality-warning-text strong {
    color: #92400e;
    display: block;
    margin-bottom: 2px;
}

.quality-warning-text p {
    margin: 0;
    color: #78350f;
    font-size: 0.85em;
}

.job-quality-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #065f46;
}

.quality-success-icon {
    font-size: 1.2em;
}

/* Location Pills Input */
.location-pills-group {
    flex: 1.5;
}

.location-pills-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: white;
    min-height: 42px;
    cursor: text;
}

.location-pills-container:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.location-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border: 1px solid #a5b4fc;
    border-radius: 16px;
    font-size: 0.85em;
    color: #3730a3;
    font-weight: 500;
}

.location-pill.remote {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #6ee7b7;
    color: #065f46;
}

.location-pill-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.location-pill-remove:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.2);
}

.location-pills-container input[type="text"] {
    flex: 1;
    min-width: 150px;
    border: none;
    outline: none;
    font-size: 0.95em;
    background: transparent;
    padding: 4px 0;
}

.location-pills-container input[type="text"]::placeholder {
    color: var(--text-muted);
}

/* Quality Badge in Header */
.header-badges {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quality-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quality-badge.quality-excellent {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #10b981;
}

.quality-badge.quality-good {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.quality-badge.quality-needs-improvement {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.quality-badge.quality-insufficient {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #ef4444;
}

.quality-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Quality Detail Panel */
.quality-detail-panel {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 15px;
    box-shadow: var(--shadow-md);
}

.quality-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.quality-score-large {
    font-size: 2em;
    font-weight: 700;
}

.quality-checks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quality-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}

.quality-check-item.passed {
    background: #f0fdf4;
}

.quality-check-item.failed {
    background: #fef2f2;
}

.quality-check-icon {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

.quality-check-content {
    flex: 1;
}

.quality-check-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.quality-check-message {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.quality-check-suggestions {
    margin-top: 5px;
    padding-left: 15px;
    font-size: 0.85em;
    color: var(--text-muted);
}

.quality-check-suggestions li {
    margin-bottom: 2px;
}

.quality-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.source-option input[type="checkbox"] {
    margin-top: 0.125rem;
}

.source-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.source-label strong {
    font-weight: 600;
    color: var(--text-primary);
}

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

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

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

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

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

.btn-adjudicate {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.btn-adjudicate:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
    border: 1px solid var(--error-color);
}

.btn-danger:hover {
    background-color: #c53030;
    border-color: #c53030;
}

.btn-email {
    background-color: #6366f1;
    color: white;
    border: 1px solid #6366f1;
}

.btn-email:hover {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.btn-test {
    background-color: var(--warning-color);
    color: white;
    border: 1px solid var(--warning-color);
    font-weight: 500;
}

.btn-test:hover {
    background-color: #b7791f;
    border-color: #b7791f;
}

.btn-reprocess {
    background-color: #805ad5;
    color: white;
    border: 1px solid #805ad5;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    min-width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.btn-reprocess:hover {
    background-color: #6b46c1;
    border-color: #6b46c1;
}

.bulk-reprocess-btn {
    background-color: #805ad5;
    color: white;
    border: 1px solid #805ad5;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
}

.bulk-reprocess-btn:hover {
    background-color: #6b46c1;
    border-color: #6b46c1;
    transform: translateY(-1px);
}

/* Reprocessed candidate visual indicators */
.candidate-card.reprocessed {
    background-color: #f0fff4 !important;
    border: 2px solid #38a169 !important;
}

.btn-reprocess:disabled {
    opacity: 1 !important;
    cursor: default !important;
}

.btn-reprocess.processed {
    background-color: #38a169 !important;
    border-color: #38a169 !important;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

/* Search Progress */
.search-progress {
    padding: 2rem;
}

.source-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
}

.source-progress.completed {
    border-left-color: var(--success-color);
}

.source-progress.failed {
    border-left-color: var(--error-color);
}

/* Results Section */
.results-section {
    margin-top: 2rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
}

.filters-row {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-group input,
.filter-group select {
    padding: 0.5rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    min-width: 150px;
}


/* Candidates Grid */
.candidates-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.candidate-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.candidate-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.candidate-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.source-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Source-specific badge colors */
.source-badge.source-imported {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.source-badge.source-self_registration {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.source-badge.source-pdl {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.candidate-details {
    margin-bottom: 1.5rem;
}

.candidate-details p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.candidate-location {
    color: var(--text-secondary);
}

.candidate-skills {
    color: var(--text-primary);
}

.candidate-skills .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.profile-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

/* Email Display Styles */
.candidate-email {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.email-info {
    margin-bottom: 0.25rem !important;
}

.email-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin-right: 0.5rem;
}

.email-link:hover {
    text-decoration: underline;
}

.email-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.email-status.valid {
    background: #f0fff4;
    color: var(--success-color);
    border: 1px solid #9ae6b4;
}

.email-status.risky {
    background: #fffbeb;
    color: var(--warning-color);
    border: 1px solid #f6e05e;
}

.email-status.invalid {
    background: #fed7d7;
    color: var(--error-color);
    border: 1px solid #feb2b2;
}

.email-status.pending {
    background: #ebf8ff;
    color: var(--accent-color);
    border: 1px solid #90cdf4;
}

.email-status.unknown {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.email-score {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.email-source {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0 !important;
    font-style: italic;
}

.profile-link:hover {
    text-decoration: underline;
}

.candidate-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.candidate-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    flex: 1;
    min-width: 120px;
}

/* Spinner Animation */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-medium);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover {
    background: var(--bg-secondary);
}

.pagination button.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .sources-grid {
        grid-template-columns: 1fr;
    }
    
    .candidates-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .spinner {
    display: inline-block !important;
}

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

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Job Selector Styles */
.job-selector {
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

.job-selector-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    width: 100%;
    justify-content: center;
}

.job-selector label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.job-selector select {
    min-width: 200px;
    max-width: 300px;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: white;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.job-selector select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.job-selector .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.job-selector .btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-dark);
}

.job-selector .btn-primary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.job-selector .btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.job-selector .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: auto;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-actions .btn,
.user-actions a.btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Debug Panel Styles */
.debug-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 400px;
    max-height: 60vh;
    background: var(--bg-dark);
    color: var(--text-white);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--primary-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.debug-header h4 {
    margin: 0;
    font-size: 0.875rem;
}

.debug-content {
    padding: 0.75rem;
    max-height: 50vh;
    overflow-y: auto;
}

.debug-section {
    margin-bottom: 1rem;
}

.debug-section h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.75rem;
    color: var(--accent-color);
}

.debug-logs {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 0.7rem;
}

.debug-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--warning-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.75rem;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

/* ===== FULCRUM INTEGRATION STYLES ===== */

.integration-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fulcrum-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1rem;
}

.archetype-actions {
    display: flex;
    align-items: end;
}

.archetype-actions .btn {
    margin-top: 0.5rem;
}

.fulcrum-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: background-color 0.3s ease;
}

.status-dot.connected {
    background: var(--success-color);
    box-shadow: 0 0 4px rgba(56, 161, 105, 0.4);
}

.status-dot.error {
    background: var(--error-color);
    box-shadow: 0 0 4px rgba(229, 62, 62, 0.4);
}

.status-dot.connecting {
    background: var(--warning-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fulcrum-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.integration-info {
    color: var(--text-secondary);
    font-style: italic;
}

.fulcrum-container .form-row {
    margin-bottom: 1rem;
}

.fulcrum-container .form-row:last-child {
    margin-bottom: 0;
}

/* Fulcrum customer dropdown styling */
#fulcrumCustomer:disabled,
#archetypeId:disabled,
#talentCloudName:disabled {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Load button states */
#loadArchetypeBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#loadArchetypeBtn.loading {
    position: relative;
    color: transparent;
}

#loadArchetypeBtn.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-white);
    animation: pulse 1.5s infinite;
}

/* Multi-select candidate interface (for results section) */
.candidate-card {
    position: relative;
}

.candidate-select {
    position: absolute;
    top: 1rem;
    right: 1rem;
    transform: scale(1.2);
    cursor: pointer;
}

.bulk-actions {
    display: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: space-between;
}

.bulk-actions.active {
    display: flex;
}

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

.bulk-actions-right {
    display: flex;
    gap: 0.5rem;
}

.selected-count {
    font-weight: 600;
    color: var(--primary-color);
}

.bulk-validate-btn,
.bulk-send-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bulk-validate-btn:hover,
.bulk-send-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

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

.bulk-send-btn:hover {
    background: #2f855a;
}

/* Fulcrum delivery status indicators */
.delivery-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delivery-status.pending {
    background: #fed7d7;
    color: #c53030;
}

.delivery-status.sent {
    background: #c6f6d5;
    color: #276749;
}

.delivery-status.failed {
    background: #fed7d7;
    color: #c53030;
}

.delivery-status.confirmed {
    background: #bee3f8;
    color: #2b6cb0;
}

.debug-toggle:hover {
    background: #b7791f;
}

/* ===== NOTIFICATION SYSTEM ===== */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.notification {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    margin-bottom: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-error {
    border-left-color: var(--error-color);
}

.notification-warning {
    border-left-color: var(--warning-color);
}

.notification-info {
    border-left-color: var(--accent-color);
}

.notification-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.notification-message {
    flex: 1;
    color: var(--text-primary);
    white-space: pre-line;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

/* ============================================================================
   REVIEW CANDIDATE STYLING (MVP-TICKET-029)
   ============================================================================ */

/* Candidate Notes Styling */
.candidate-notes {
    margin-top: 12px;
}

.notes-section summary {
    cursor: pointer;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-weight: 500;
    color: #495057;
}

.notes-section summary:hover {
    background: #e9ecef;
}

.notes-content {
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #ffffff;
}

.candidate-note {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.candidate-note.ai_assessment {
    background: #f8f9ff;
    border-left-color: #6f42c1;
}

.candidate-note.manual {
    background: #f8f9fa;
    border-left-color: #28a745;
}

.candidate-note:last-child {
    margin-bottom: 0;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #6c757d;
}

.note-type {
    font-weight: 600;
}

.note-date {
    font-size: 0.85em;
}

.note-content {
    line-height: 1.5;
    color: #495057;
}

.note-content strong {
    color: #212529;
}

/* Review candidate card styling */
.candidate-card.review-candidate {
    border-left: 4px solid var(--warning-color);
    background: linear-gradient(135deg, #fffbeb 0%, #fef5e7 100%);
    position: relative;
}

.candidate-card.review-candidate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--warning-color), #f6ad55);
}

/* Review status badge */
.status-badge.review-status {
    background: linear-gradient(135deg, var(--warning-color), #f6ad55);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.review-status .icon-eye {
    font-size: 14px;
}

/* Duplicate alert styling */
.duplicate-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.duplicate-alert .duplicate-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.duplicate-alert .duplicate-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.duplicate-alert .duplicate-line1 {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.duplicate-alert .duplicate-line2 {
    font-size: 11px;
    opacity: 0.95;
    word-wrap: break-word;
}

.duplicate-alert .duplicate-line3 {
    font-size: 10px;
    opacity: 0.8;
    font-style: italic;
}

/* Duplicate sent to Fulcrum - high priority (red) */
.duplicate-alert.duplicate-sent {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
}

/* Duplicate pending Fulcrum send (orange) */
.duplicate-alert.duplicate-pending {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    border-left: 4px solid #ea580c;
    color: #7c2d12;
}

/* Duplicate exists but not sent (yellow) */
.duplicate-alert.duplicate-exists {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid #d97706;
    color: #78350f;
}

/* Review reasons styling */
.review-reasons {
    margin: 8px 0;
    padding: 8px;
    background: rgba(237, 137, 54, 0.1);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--warning-color);
}

.review-reasons strong {
    color: var(--text-primary);
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
}

.reasons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.reason-tag {
    background: var(--warning-color);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* Adjudication info styling */
.adjudication-info {
    margin: 8px 0;
    font-size: 12px;
}

.adjudication-info details {
    background: rgba(49, 130, 206, 0.05);
    border: 1px solid rgba(49, 130, 206, 0.2);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.adjudication-info summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--accent-color);
    padding: 4px 0;
}

.adjudication-info summary:hover {
    color: var(--primary-hover);
}

.adjudication-details {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(49, 130, 206, 0.1);
}

.adjudication-details p {
    margin: 4px 0;
    color: var(--text-secondary);
}

/* AI Reasoning Section - Prominent Display */
.ai-reasoning {
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fbff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
    position: relative;
    overflow: hidden;
}

.ai-reasoning.decision-pass {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fffb 100%);
    border-color: #bbf7d0;
}

.ai-reasoning.decision-fail {
    background: linear-gradient(135deg, #fef2f2 0%, #fffbfb 100%);
    border-color: #fecaca;
}

.ai-reasoning.decision-review {
    background: linear-gradient(135deg, #fffbeb 0%, #fffef8 100%);
    border-color: #fde68a;
}

.reasoning-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-icon {
    font-size: 20px;
    filter: grayscale(0.2);
}

.decision-badge {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.decision-badge.decision-pass {
    background: #10b981;
    color: white;
}

.decision-badge.decision-fail {
    background: #ef4444;
    color: white;
}

.decision-badge.decision-review {
    background: #f59e0b;
    color: white;
}

.reasoning-text {
    color: #1f2937;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    white-space: pre-wrap;
}

/* Detailed Assessment Section */
.adjudication-details-section {
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.adjudication-details-section summary {
    padding: 12px 16px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.adjudication-details-section summary:hover {
    background: #f3f4f6;
}

.scores-preview {
    font-size: 13px;
    color: #6b7280;
    font-weight: normal;
}

.adjudication-details {
    padding: 20px;
    background: white;
}

/* Score Visualization */
.scores-section {
    margin-bottom: 24px;
}

.scores-section h4 {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.score-label {
    flex: 0 0 140px;
    font-size: 13px;
    color: #6b7280;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.score-value {
    flex: 0 0 50px;
    text-align: right;
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
}

/* Confidence Scores on Candidate Card */
.candidate-card .confidence-scores {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.candidate-card .confidence-scores h4 {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.candidate-card .confidence-scores .score-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.candidate-card .confidence-scores .score-row:last-child {
    margin-bottom: 0;
}

.candidate-card .confidence-scores .score-label {
    flex: 0 0 120px;
    font-size: 12px;
    color: #6b7280;
}

.candidate-card .confidence-scores .score-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.candidate-card .confidence-scores .score-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 3px;
}

.candidate-card .confidence-scores .score-value {
    flex: 0 0 40px;
    text-align: right;
    font-weight: 600;
    font-size: 12px;
    color: #1f2937;
}

/* Failed Rules Section */
.failing-rules-section {
    margin-bottom: 24px;
}

.failing-rules-section h4 {
    margin: 0 0 12px 0;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.failing-rules-list {
    margin: 0;
    padding-left: 20px;
}

.failing-rules-list li {
    color: #7f1d1d;
    margin-bottom: 6px;
    font-size: 13px;
}

/* Reasons Section */
.reasons-section {
    margin-bottom: 24px;
}

.reasons-section h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reasons-list {
    margin: 0;
    padding-left: 20px;
}

.reasons-list li {
    color: #4b5563;
    margin-bottom: 6px;
    font-size: 13px;
}

/* Normalized Data Section */
.normalized-data-section {
    background: #f9fafb;
    padding: 16px;
    border-radius: 6px;
}

.normalized-data-section h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.normalized-data p {
    margin: 6px 0;
    font-size: 13px;
    color: #4b5563;
}

.normalized-data strong {
    color: #374151;
    font-weight: 600;
}

/* Review candidate action buttons */
.btn-promote {
    background: linear-gradient(135deg, var(--success-color), #48bb78);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-promote:hover {
    background: linear-gradient(135deg, #2f855a, var(--success-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-enrich {
    background: linear-gradient(135deg, var(--accent-color), #4299e1);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-enrich:hover {
    background: linear-gradient(135deg, #2b77cb, var(--accent-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-reject {
    background: linear-gradient(135deg, var(--error-color), #f56565);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-reject:hover {
    background: linear-gradient(135deg, #c53030, var(--error-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Review candidate actions container */
.candidate-card.review-candidate .candidate-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(237, 137, 54, 0.2);
}

/* Icon styling for action buttons */
.btn-promote .icon-check,
.btn-enrich .icon-mail,
.btn-reject .icon-x {
    font-size: 14px;
}

/* Responsive adjustments for review candidates */
@media (max-width: 768px) {
    .candidate-card.review-candidate .candidate-actions {
        flex-direction: column;
    }
    
    .btn-promote,
    .btn-enrich,
    .btn-reject {
        width: 100%;
        justify-content: center;
    }
    
    .review-reasons {
        margin: 6px 0;
        padding: 6px;
    }
    
    .reasons-list {
        gap: 3px;
    }
    
    .reason-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* Animation for review candidate state changes */
.candidate-card.review-candidate {
    animation: reviewHighlight 0.5s ease-in-out;
}

@keyframes reviewHighlight {
    0% {
        transform: scale(1);
        box-shadow: var(--shadow-sm);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(237, 137, 54, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--shadow-sm);
    }
}

/* Status indicator for different candidate types */
.candidate-card[data-status="primary"] {
    border-left: 4px solid var(--success-color);
}

.candidate-card[data-status="review"] {
    border-left: 4px solid var(--warning-color);
}

.candidate-card[data-status="rejected"] {
    border-left: 4px solid var(--error-color);
    opacity: 0.7;
}

/* Enhanced hover effects for review candidates */
.candidate-card.review-candidate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.2);
    background: linear-gradient(135deg, #fffbeb 0%, #fed7aa 100%);
}

/* Review reasons box */
.review-reasons {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
    font-size: 13px;
    overflow: hidden;
}

.review-reasons h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #92400e;
}

.review-reasons p {
    margin: 4px 0;
    color: #78350f;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Loading state for action buttons */
.btn-promote:disabled,
.btn-enrich:disabled,
.btn-reject:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-promote:disabled:hover,
.btn-enrich:disabled:hover,
.btn-reject:disabled:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
}
/* Async Search Progress Styles */
.overall-search-progress {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.overall-search-progress h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.progress-bar {
    background: #e9ecef;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    height: 100%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.progress-stats {
    font-size: 14px;
    color: #6c757d;
}

.search-status-loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #6c757d;
}

.search-details {
    display: grid;
    gap: 10px;
}

.error-text {
    color: #dc3545;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* ========================================
   UNIFIED JOB SETUP SECTION (TICKET-042)
   ======================================== */

.unified-job-setup {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.job-setup-row {
    margin-bottom: 1rem;
}

.job-setup-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
}

.option-icon {
    font-size: 1.25rem;
}

.option-label {
    font-weight: 600;
    color: var(--text-primary);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.option-content select {
    flex: 1;
    max-width: 400px;
}

/* OR Divider */
.setup-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
}

.setup-divider::before,
.setup-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-medium), transparent);
}

.divider-text {
    padding: 0 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Fulcrum Setup Grid */
#fulcrumSetupGrid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fulcrum-row-1,
.fulcrum-row-2,
.fulcrum-row-mode {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.fulcrum-row-1 {
    grid-template-columns: 1fr 180px;
}

.fulcrum-row-2 {
    grid-template-columns: 1fr 1fr auto;
}

.sourcing-mode-toggle {
    display: flex;
    gap: 0;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    overflow: hidden;
}

.sourcing-mode-toggle .mode-btn {
    flex: 1;
    padding: 6px 12px;
    border: none;
    background: #f7fafc;
    color: #4a5568;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sourcing-mode-toggle .mode-btn:first-child {
    border-right: 1px solid #cbd5e0;
}

.sourcing-mode-toggle .mode-btn.active {
    background: #2d3748;
    color: #fff;
    font-weight: 600;
}

.sourcing-mode-toggle .mode-btn:hover:not(.active) {
    background: #edf2f7;
}

#fulcrumSetupGrid .form-group {
    margin-bottom: 0;
}

#fulcrumSetupGrid .form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

#fulcrumSetupGrid select {
    width: 100%;
}

#fulcrumSetupGrid .load-action {
    display: flex;
    flex-direction: column;
}

#fulcrumSetupGrid .load-action .btn {
    white-space: nowrap;
    margin-top: auto;
}

@media (max-width: 768px) {
    .fulcrum-row-1,
    .fulcrum-row-2 {
        grid-template-columns: 1fr;
    }
}

/* Fulcrum Status Bar */
.fulcrum-status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.fulcrum-status-bar .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
}

.fulcrum-status-bar .status-dot.loading {
    background: var(--warning-color);
    animation: pulse 1s infinite;
}

.fulcrum-status-bar .status-dot.error {
    background: var(--error-color);
}

/* ========================================
   IMPORT CANDIDATES SECTION (TICKET-042)
   ======================================== */

.import-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.import-container {
    margin-top: 1rem;
}

/* Drag & Drop Zone */
.import-dropzone {
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    transition: all 0.2s ease;
    cursor: pointer;
}

.import-dropzone:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #ebf8ff 0%, #ffffff 100%);
}

.import-dropzone.dragover {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    transform: scale(1.01);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.dropzone-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.dropzone-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dropzone-subtext {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.btn-file {
    cursor: pointer;
}

/* Import Queue */
.import-queue {
    margin-top: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.queue-title {
    font-weight: 600;
    color: var(--text-primary);
}

.queue-progress {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.queue-list {
    max-height: 300px;
    overflow-y: auto;
}

.queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

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

.queue-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.queue-item-icon {
    font-size: 1.25rem;
}

.queue-item-name {
    font-weight: 500;
    color: var(--text-primary);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.queue-item-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.queue-item-status.queued {
    color: var(--text-muted);
}

.queue-item-status.processing {
    color: var(--warning-color);
}

.queue-item-status.completed {
    color: var(--success-color);
}

.queue-item-status.failed {
    color: var(--error-color);
}

.queue-item-result {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
}

.queue-item-result.pass {
    background: #dcfce7;
    color: #166534;
}

.queue-item-result.review {
    background: #fef3c7;
    color: #92400e;
}

.queue-item-result.fail {
    background: #fee2e2;
    color: #991b1b;
}

.queue-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-tertiary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Spinner for processing */
.queue-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-light);
    border-top-color: var(--warning-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ====================================================================
   LinkedIn URL Import Section (MVP-TICKET-045)
   ==================================================================== */

.linkedin-import-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.linkedin-import-section h3 {
    color: #0369a1;
    border-bottom-color: #0ea5e9;
}

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

.linkedin-url-input {
    width: 100%;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    background: white;
    border: 1px solid #7dd3fc;
    min-height: 120px;
}

.linkedin-url-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.linkedin-import-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.linkedin-import-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid #e0f2fe;
}

.linkedin-import-progress .progress-bar {
    height: 8px;
    background: #e0f2fe;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.linkedin-import-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9 0%, #0369a1 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.linkedin-import-progress .progress-stats {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.linkedin-import-results {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.linkedin-import-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.linkedin-import-result.success {
    border-left: 3px solid var(--success-color);
}

.linkedin-import-result.failed {
    border-left: 3px solid var(--error-color);
    background: #fef2f2;
}

.linkedin-import-result.duplicate {
    border-left: 3px solid var(--warning-color);
    background: #fffbeb;
}

.linkedin-import-result .result-name {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 150px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.linkedin-import-result .result-url {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex: 1;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.linkedin-import-result .result-status {
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 120px;
    text-align: right;
}

.linkedin-import-result.partial {
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
}

.linkedin-import-result .result-status.partial {
    color: #f59e0b;
}

.linkedin-invalid-lines {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.linkedin-invalid-lines h5 {
    margin: 0 0 0.5rem 0;
    color: #b45309;
}

.linkedin-invalid-lines ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: #78350f;
}

.linkedin-invalid-lines small {
    color: var(--text-secondary);
}

.linkedin-import-result .result-status.success {
    color: var(--success-color);
}

.linkedin-import-result .result-status.failed {
    color: var(--error-color);
}

.linkedin-import-result .result-status.duplicate {
    color: var(--warning-color);
}

.linkedin-import-summary {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.linkedin-import-summary.has-errors {
    background: #fef3c7;
    border-color: #fcd34d;
}

.linkedin-import-summary h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.linkedin-import-summary p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* LinkedIn Controls Section (dynamic config when LinkedIn is selected) */
.linkedin-controls {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #0ea5e9;
}

.linkedin-import-subsection {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #7dd3fc;
}

.linkedin-import-subsection .subsection-header {
    margin-bottom: 0.75rem;
}

.linkedin-import-subsection .subsection-header strong {
    color: #0369a1;
    font-size: 0.95rem;
}

.linkedin-import-subsection .subsection-header small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.linkedin-import-subsection .linkedin-url-input {
    font-size: 0.8rem;
}

.linkedin-import-subsection .linkedin-import-actions {
    margin-top: 0.75rem;
}

.linkedin-import-subsection .linkedin-import-actions .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}
