/* ============================================
   Auralytik Talent - Central Design System
   ============================================ */

/* Color Palette */
:root {
    --primary-color: #4A90E2;
    --primary-light: #E3F2FD;
    --primary-dark: #2171C9;
    --secondary-color: #5C6BC0;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    --info-color: #2196F3;

    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #999;

    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-lighter: #FAFBFC;
    --border-color: #E0E0E0;
    --border-light: #F0F0F0;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);

    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

/* ============================================
   Card Styles
   ============================================ */

.talent-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}

.talent-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.talent-card-header {
    background: var(--bg-lighter);
    border-bottom: 1px solid var(--border-light);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.talent-card-header h5,
.talent-card-header .card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.talent-card-header i {
    color: var(--primary-color);
    font-size: 18px;
}

.talent-card-content {
    padding: var(--spacing-lg);
}

/* Card with fixed height for grid layouts */
.talent-card-fixed {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.talent-card-fixed .talent-card-content {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
}

/* Scrollbar styling */
.talent-card-content::-webkit-scrollbar {
    width: 6px;
}

.talent-card-content::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.talent-card-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.talent-card-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   Badge Styles
   ============================================ */

.talent-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.talent-badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.talent-badge-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.talent-badge-warning {
    background: #FFF3E0;
    color: #E65100;
}

.talent-badge-danger {
    background: #FFEBEE;
    color: #C62828;
}

.talent-badge-info {
    background: #E3F2FD;
    color: #1565C0;
}

.talent-badge-secondary {
    background: var(--bg-light);
    color: var(--text-secondary);
}

/* ============================================
   Button Styles
   ============================================ */

.talent-btn {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.talent-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.talent-btn-primary {
    background: var(--primary-color);
    color: white;
}

.talent-btn-primary:hover {
    background: var(--primary-dark);
}

.talent-btn-success {
    background: var(--success-color);
    color: white;
}

.talent-btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* ============================================
   Table Styles
   ============================================ */

.talent-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.talent-table td {
    padding: var(--spacing-sm) var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

.talent-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 35%;
}

.talent-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Progress Bar Styles
   ============================================ */

.talent-progress {
    height: 32px;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
}

.talent-progress-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: width 0.3s ease;
}

.talent-progress-bar-success {
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 100%);
}

.talent-progress-bar-primary {
    background: linear-gradient(90deg, #4A90E2 0%, #64B5F6 100%);
}

.talent-progress-bar-warning {
    background: linear-gradient(90deg, #FF9800 0%, #FFB74D 100%);
}

.talent-progress-bar-danger {
    background: linear-gradient(90deg, #F44336 0%, #E57373 100%);
}

/* ============================================
   Section Headers
   ============================================ */

.talent-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-light);
}

.talent-section-header h4,
.talent-section-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   Page Header
   ============================================ */

.talent-page-header {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-xl);
}

.talent-page-header h2 {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.talent-page-header .subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   Grid Layouts
   ============================================ */

.talent-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.talent-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.talent-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ============================================
   Skill Tags
   ============================================ */

.talent-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.talent-skill-tag {
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
}

.talent-skill-tag-secondary {
    background: var(--bg-light);
    color: var(--text-secondary);
}

/* ============================================
   Timeline
   ============================================ */

.talent-timeline {
    position: relative;
}

.talent-timeline-item {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.talent-timeline-item:last-child {
    border-bottom: none;
}

.talent-timeline-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   Stats Cards
   ============================================ */

.talent-stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.2s ease;
}

.talent-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.talent-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: var(--spacing-sm) 0;
}

.talent-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Alerts
   ============================================ */

.talent-alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid;
    margin-bottom: var(--spacing-md);
}

.talent-alert-info {
    background: #E3F2FD;
    border-color: #2196F3;
    color: #1565C0;
}

.talent-alert-success {
    background: #E8F5E9;
    border-color: #4CAF50;
    color: #2E7D32;
}

.talent-alert-warning {
    background: #FFF3E0;
    border-color: #FF9800;
    color: #E65100;
}

.talent-alert-danger {
    background: #FFEBEE;
    border-color: #F44336;
    color: #C62828;
}

/* ============================================
   Responsive Design
   ============================================ */

@@media (max-width: 992px) {
    .talent-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@@media (max-width: 768px) {
    .talent-grid-3,
    .talent-grid-2 {
        grid-template-columns: 1fr;
    }

    .talent-card-fixed .talent-card-content {
        max-height: none;
    }

    .talent-page-header {
        padding: var(--spacing-md);
    }

    .talent-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
}

/* ============================================
   Syncfusion Component Overrides
   ============================================ */

/* Override Syncfusion Card with lighter design */
.e-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    margin-bottom: var(--spacing-lg);
}

.e-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.e-card .e-card-header {
    background: var(--bg-lighter);
    border-bottom: 1px solid var(--border-light);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.e-card .e-card-header .e-card-header-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.e-card .e-card-header i {
    color: var(--primary-color);
    margin-right: var(--spacing-sm);
}

.e-card .e-card-content {
    padding: var(--spacing-lg);
}

/* Card height management for grid layouts */
.row > [class*='col-'] {
    margin-bottom: var(--spacing-lg);
}

.d-flex > .e-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.e-card .e-card-content {
    flex-grow: 1;
}

/* Fixed height card content */
.card-content-fixed {
    min-height: 250px;
    max-height: 350px;
    overflow-y: auto;
}

.card-content-scrollable {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar styling for card content */
.card-content-fixed::-webkit-scrollbar,
.card-content-scrollable::-webkit-scrollbar {
    width: 6px;
}

.card-content-fixed::-webkit-scrollbar-track,
.card-content-scrollable::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.card-content-fixed::-webkit-scrollbar-thumb,
.card-content-scrollable::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.card-content-fixed::-webkit-scrollbar-thumb:hover,
.card-content-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Table styling in cards */
.e-card .table-borderless td {
    padding: var(--spacing-sm) var(--spacing-xs);
    vertical-align: top;
    border-bottom: 1px solid var(--border-light);
}

.e-card .table-borderless tr:last-child td {
    border-bottom: none;
}

.e-card .table-borderless td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 35%;
}

/* Timeline styling */
.timeline-item {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* AI Analysis styling */
.ai-analysis {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    line-height: 1.6;
}

/* Text justify for better readability */
.text-justify {
    text-align: justify;
    line-height: 1.6;
}

/* ============================================
   Utility Classes
   ============================================ */

.talent-text-center {
    text-align: center;
}

.talent-mb-lg {
    margin-bottom: var(--spacing-lg);
}

.talent-mt-lg {
    margin-top: var(--spacing-lg);
}

.talent-p-lg {
    padding: var(--spacing-lg);
}

.talent-flex {
    display: flex;
}

.talent-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.talent-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.talent-gap-sm {
    gap: var(--spacing-sm);
}

.talent-gap-md {
    gap: var(--spacing-md);
}

@@media (max-width: 768px) {
    .card-content-fixed {
        min-height: auto;
        max-height: none;
    }
}

/* ============================================
   Dashboard Specific Styles
   ============================================ */

.dashboard-container {
    padding: var(--spacing-lg);
    background-color: var(--bg-lighter);
    min-height: 100vh;
}

.dashboard-header {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.metric-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-trend {
    font-size: 0.8rem;
    margin-top: var(--spacing-xs);
}

.trend-up { color: var(--success-color); }
.trend-down { color: var(--danger-color); }

.section-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
}

.section-card > h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    padding: var(--spacing-lg);
    background: var(--bg-lighter);
    border-bottom: 1px solid var(--border-light);
}

.section-card > .candidate-info,
.section-card > .prep-section {
    padding: var(--spacing-lg);
}

.candidate-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.candidate-info .candidate-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.candidate-info h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
}

.candidate-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.candidate-info small {
    font-size: 13px;
    color: var(--text-muted);
}

.section-header {
    background: var(--bg-lighter);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.notification-item {
    padding: var(--spacing-md) var(--spacing-lg);
    border-left: 4px solid transparent;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: var(--bg-lighter);
}

.notification-item.priority-high {
    border-left-color: var(--danger-color);
}

.notification-item.priority-medium {
    border-left-color: var(--warning-color);
}

.notification-item.priority-low {
    border-left-color: var(--success-color);
}

.job-status-active { color: var(--success-color); font-weight: 600; }
.job-status-paused { color: var(--warning-color); font-weight: 600; }
.job-status-filled { color: var(--text-secondary); font-weight: 600; }

.candidate-stage-sourcing { color: var(--info-color); }
.candidate-stage-screening { color: var(--warning-color); }
.candidate-stage-interviewing { color: #fd7e14; }
.candidate-stage-offer { color: var(--success-color); }
.candidate-stage-hired { color: #6f42c1; }

/* ============================================
   Job Profile Detail Page Styles
   ============================================ */

/* Action Toolbar */
.action-toolbar {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* Workflow State Progression */
.state-progression {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
    justify-content: center;
}

.state-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.state-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
}

.state-circle.completed {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.state-circle.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
}

.state-circle.pending {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.state-arrow {
    color: var(--border-color);
    font-size: 20px;
    margin: 0 var(--spacing-xs);
}

.state-item span {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Info Cards */
.info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.info-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-light);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-value {
    color: var(--text-primary);
    font-size: 14px;
    text-align: right;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-draft {
    background: #E0E0E0;
    color: #616161;
}

.status-badge.status-review {
    background: #E3F2FD;
    color: #1565C0;
}

.status-badge.status-approved {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-badge.status-published {
    background: #C8E6C9;
    color: #1B5E20;
}

.status-badge.status-closed {
    background: #F5F5F5;
    color: #757575;
}

/* Edit Form */
.edit-form {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.form-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--border-light);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    display: block;
}

/* Activity Log */
.activity-log {
    max-height: 300px;
    overflow-y: auto;
}

.activity-log .mb-3 {
    padding-bottom: var(--spacing-sm);
}

.activity-log .border-bottom {
    border-bottom: 1px solid var(--border-light) !important;
}

.activity-log .border-bottom:last-child {
    border-bottom: none !important;
}

/* Responsive adjustments for Job Profile Detail */
@@media (max-width: 992px) {
    .action-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .state-progression {
        order: 1;
        margin-bottom: var(--spacing-md);
    }
}

@@media (max-width: 768px) {
    .state-progression {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }

    .state-item span {
        font-size: 10px;
    }

    .state-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .state-arrow {
        display: none;
    }

    .info-row {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .info-value {
        text-align: left;
    }
}

/* ============================================
   AI Job Description Generator Styles
   ============================================ */

.ai-generator-dialog .e-dlg-content {
    padding: 0 !important;
    overflow-y: auto;
}

.ai-generator-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(85vh - 120px); /* Adjust for dialog header/footer */
}

.generation-stage {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-content {
    flex: 1;
    padding: var(--spacing-lg);
    overflow-y: auto;
    background: var(--bg-lighter);
}

.ai-footer {
    background: var(--bg-white);
    border-top: 2px solid var(--border-light);
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -22px;
    top: 12px;
    color: var(--border-color);
    font-size: 20px;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.progress-circle.pending {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.progress-circle.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
    animation: pulse 2s infinite;
}

.progress-circle.completed {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

@@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(74, 144, 226, 0.1);
    }
}

.progress-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

/* Compact styling for modal context */
.ai-generator-container .dashboard-header {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.ai-generator-container .dashboard-header h4 {
    font-size: 18px;
    margin-bottom: var(--spacing-xs);
}

.ai-generator-container .dashboard-header p {
    font-size: 14px;
    margin: 0;
}

.ai-generator-container .info-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.ai-generator-container .info-card h6 {
    font-size: 14px;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
    min-height: 300px;
}

.loading-spinner h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: var(--spacing-lg);
}

.loading-spinner .text-muted {
    max-width: 400px;
    text-align: center;
}

/* Preview Container */
.preview-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    min-height: 500px;
}

.preview-pane,
.refinement-pane {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.preview-pane h5,
.refinement-pane h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-light);
}

.generated-content {
    max-height: calc(85vh - 400px);
    min-height: 400px;
    overflow-y: auto;
    padding-right: var(--spacing-sm);
    line-height: 1.7;
}

.generated-content h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
}

.generated-content h3:first-child {
    margin-top: 0;
}

.generated-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.generated-content ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.generated-content li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.generated-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Refinement Pane */
.refinement-pane {
    display: flex;
    flex-direction: column;
}

.refinement-examples {
    background: var(--bg-lighter);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.refinement-examples h6 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.refinement-examples ul {
    margin: 0;
    padding-left: var(--spacing-lg);
    font-size: 13px;
}

.refinement-examples li {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.help-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 14px;
}

.help-info .e-icons {
    color: var(--info-color);
}

/* Scrollbar styling for generated content */
.generated-content::-webkit-scrollbar,
.ai-content::-webkit-scrollbar {
    width: 8px;
}

.generated-content::-webkit-scrollbar-track,
.ai-content::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.generated-content::-webkit-scrollbar-thumb,
.ai-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.generated-content::-webkit-scrollbar-thumb:hover,
.ai-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive adjustments for AI Generator */
@@media (max-width: 992px) {
    .preview-container {
        grid-template-columns: 1fr;
    }

    .progress-indicator {
        flex-wrap: wrap;
    }

    .progress-step:not(:last-child)::after {
        display: none;
    }
}

@@media (max-width: 768px) {
    .ai-content {
        padding: var(--spacing-md);
    }

    .ai-footer {
        padding: var(--spacing-md);
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .help-info {
        font-size: 12px;
    }

    .progress-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .progress-label {
        font-size: 11px;
    }
}

/* ============================================
   Job Profile Create Form Styles
   ============================================ */

.create-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-light);
}

.section-icon-inline {
    font-size: 20px;
    color: var(--primary-color);
}

.section-title-row h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.form-section {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-light);
}

.form-section:last-child {
    border-bottom: none;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    display: block;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
    font-weight: 600;
}

.help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
    font-style: italic;
}

.form-actions-footer {
    background: var(--bg-lighter);
    border-top: 2px solid var(--border-light);
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Form field spacing */
.form-section .row {
    margin-bottom: var(--spacing-md);
}

.form-section .row:last-child {
    margin-bottom: 0;
}

/* Improve Syncfusion input styling */
.e-input-group,
.e-textbox,
.e-dropdownlist,
.e-numerictextbox,
.e-datepicker {
    border-radius: var(--border-radius-sm) !important;
}

.e-input-group.e-control-wrapper .e-input,
.e-textbox.e-control,
.e-dropdownlist.e-control,
.e-numerictextbox.e-control .e-input {
    border-color: var(--border-color) !important;
    font-size: 14px;
}

.e-input-group:focus-within,
.e-input-group.e-input-focus,
.e-textbox:focus,
.e-dropdownlist:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1) !important;
}

/* Rich text editor */
.e-richtexteditor {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-sm) !important;
}

/* Disabled field styling */
.e-disabled {
    background-color: var(--bg-light) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-section {
        padding: var(--spacing-md);
    }

    .form-actions-footer {
        padding: var(--spacing-md);
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions-footer > div {
        width: 100%;
    }

    .form-actions-footer .d-flex {
        justify-content: space-between;
    }
}

/* ============================================
   Candidate Card Styles
   ============================================ */

.candidate-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    height: 100%;
}

.candidate-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Candidate Avatar */
.candidate-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

/* Score Badge */
.score-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.score-badge.score-high {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
}

.score-badge.score-medium {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
}

.score-badge.score-low {
    background: linear-gradient(135deg, #F44336, #E57373);
    color: white;
}

/* Status Badges for Candidates */
.status-badge.status-new {
    background: #E3F2FD;
    color: #1565C0;
}

.status-badge.status-screening {
    background: #FFF3E0;
    color: #E65100;
}

.status-badge.status-interviewing {
    background: #F3E5F5;
    color: #6A1B9A;
}

.status-badge.status-offered {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-badge.status-hired {
    background: #C8E6C9;
    color: #1B5E20;
}

.status-badge.status-rejected {
    background: #FFEBEE;
    color: #C62828;
}

.status-badge.status-scheduled {
    background: #E1F5FE;
    color: #01579B;
}

.status-badge.status-completed {
    background: #C8E6C9;
    color: #1B5E20;
}

.status-badge.status-cancelled {
    background: #F5F5F5;
    color: #757575;
}

.status-badge.status-reviewed {
    background: #F3E5F5;
    color: #7B1FA2;
}

/* Skill Tags */
.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 6px;
    white-space: nowrap;
}

/* Interview Info Section */
.interview-info {
    background: var(--bg-lighter);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-top: auto;
}

.interview-info .status-badge {
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
}

/* Filter Section */
.filter-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

/* Action Buttons in Cards */
.candidate-card .action-buttons {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: stretch;
}

.candidate-card .action-buttons .e-btn {
    flex: 1 1 auto;
    min-width: 100px;
    white-space: nowrap;
}

.candidate-card .action-buttons .e-btn.e-small {
    padding: 6px 12px;
    height: auto;
}

/* Ensure cards in grid have equal height */
.row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.row > [class*='col-'] > .candidate-card {
    flex: 1;
}

/* Responsive adjustments for candidate cards */
@media (max-width: 1200px) {
    .candidate-card {
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    .candidate-card {
        min-height: auto;
    }

    .candidate-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .score-badge {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .candidate-card .action-buttons .e-btn {
        flex: 1 1 100%;
    }
}

/* ============================================
   Interview Scheduler Specific Styles
   ============================================ */

.prep-section {
    padding: var(--spacing-lg);
}

.prep-section .alert {
    margin-bottom: var(--spacing-md);
}

.participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    min-height: 40px;
    padding: var(--spacing-sm);
    background: var(--bg-lighter);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
}

.participant-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
}

.participant-chip .remove-btn {
    cursor: pointer;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.participant-chip .remove-btn:hover {
    opacity: 1;
}

.action-buttons {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.question-distribution {
    background: var(--bg-lighter);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
}

.suggested-focus {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.suggested-focus .badge {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
}

.suggested-focus .badge:hover {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Responsive adjustments for interview scheduler */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .e-btn {
        width: 100%;
    }
}

/* ============================================
   Interview Type Selection Cards
   ============================================ */

.interview-type-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: var(--spacing-md);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.interview-type-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.interview-type-card.selected {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(92, 107, 192, 0.05));
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1), var(--shadow-sm);
}

.interview-type-card strong {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    display: block;
}

.interview-type-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.interview-type-card.selected strong {
    color: var(--primary-color);
}

/* Responsive adjustments for interview type cards */
@media (max-width: 768px) {
    .interview-type-card {
        min-height: 90px;
        padding: var(--spacing-md);
    }

    .interview-type-card strong {
        font-size: 15px;
    }

    .interview-type-card p {
        font-size: 12px;
    }
}

/* ============================================
   Candidate Form Styles
   ============================================ */

.create-form {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

/* CV Upload Area */
.cv-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-lighter);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cv-upload-area:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.cv-upload-area.has-file {
    border-color: var(--success-color);
    background: #E8F5E9;
}

.cv-upload-area.processing {
    border-color: var(--warning-color);
    background: #FFF3E0;
    cursor: wait;
}

.upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* Extracted Data Preview */
.extracted-data-preview {
    background: var(--bg-lighter);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.extracted-field {
    display: flex;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.extracted-field:last-child {
    border-bottom: none;
}

.field-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 150px;
    margin-right: var(--spacing-md);
}

.field-value {
    color: var(--text-primary);
    flex: 1;
}

/* Extracted Sections */
.extracted-section {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-light);
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

/* Experience Items */
.experience-item,
.education-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.experience-header,
.education-header {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.experience-dates,
.education-dates {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.experience-description,
.education-description {
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
    line-height: 1.5;
}

.experience-list {
    margin-top: var(--spacing-sm);
}

.experience-list ul {
    margin: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
}

.experience-list li {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.education-institution {
    color: var(--text-secondary);
    font-weight: 500;
}

.education-grade {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

/* Skills Container */
.skills-input-container {
    position: relative;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-tag.technical {
    background: #E3F2FD;
    color: #1565C0;
}

.skill-tag.soft {
    background: #F3E5F5;
    color: #6A1B9A;
}

.skill-tag.certification {
    background: #FFF3E0;
    color: #E65100;
}

.skill-tag.language {
    background: #E8F5E9;
    color: #2E7D32;
}

.remove-tag {
    border: none;
    background: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.remove-tag:hover {
    opacity: 1;
}

/* Certification List */
.cert-list {
    margin: 0;
    padding-left: var(--spacing-lg);
}

.cert-list li {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* Processing Overlay */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.processing-content {
    text-align: center;
    max-width: 500px;
    padding: var(--spacing-xl);
}

.processing-animation {
    margin-bottom: var(--spacing-lg);
}

.processing-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.processing-message {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Spinner Ring Animation */
.spinner-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid var(--primary-color);
    border-radius: 50%;
    animation: spinner-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--primary-color) transparent transparent transparent;
}

.spinner-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.spinner-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.spinner-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes spinner-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Experience/Education Entry Cards */
.experience-entry,
.education-entry {
    background: var(--bg-lighter);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
}

/* Responsive Adjustments for Candidate Form */
@media (max-width: 768px) {
    .create-form {
        padding: var(--spacing-md);
    }

    .cv-upload-area {
        padding: var(--spacing-lg);
        min-height: 150px;
    }

    .upload-icon {
        font-size: 36px;
    }

    .extracted-field {
        flex-direction: column;
    }

    .field-label {
        min-width: auto;
        margin-bottom: var(--spacing-xs);
    }

    .skill-tag {
        font-size: 12px;
        padding: 5px 10px;
    }
}
