/* Modern Resume Optimizer UI/UX */
:root {
    --primary-color: #0d9488;
    --primary-hover: #0f766e;
    --secondary-color: #1e293b;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --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 -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --transition-fast: none;
    --transition-normal: none;
    --transition-slow: none;
}
* {
    box-sizing: border-box;
}
body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
/* Modern Compact Header Styles */
.main-header {
    background: var(--background-white);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: relative;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}
.main-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}
.main-header .lead {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}
/* Compact Language Selection */
.language-cloud {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    height: fit-content;
    margin: auto 0;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .header-brand {
        justify-content: center;
    }
    .language-cloud {
        position: static;
        transform: none;
        justify-content: center;
    }
}
.flag-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-light);
    background: var(--background-light);
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flag-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}
.flag-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}
/* Process Timeline Styles */
.process-timeline {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}
.timeline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: var(--border-radius-xl);
    padding: 1rem 1rem;
}
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 200px;
    position: relative;
    opacity: 0.6;
    padding: 0.5rem;
}
.timeline-step.active {
    opacity: 1;
}
.timeline-step.completed {
    opacity: 1;
}
.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    border: 4px solid var(--border-light);
    position: relative;
    box-shadow: var(--shadow-sm);
}
.step-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    z-index: -1;
}
.timeline-step.active .step-icon {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}
.timeline-step.active .step-icon::before {
    opacity: 1;
}
.timeline-step.completed .step-icon {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
    box-shadow: var(--shadow-md);
}
.timeline-connector {
    flex: 1;
    height: 4px;
    background: var(--border-light);
    margin: 0 1.5rem;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}
.timeline-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}
.timeline-connector.active::before {
    width: 100%;
}
.step-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}
.step-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}
.timeline-step.active .step-title {
    color: #0d9488;
    font-weight: 700;
}
.timeline-step.completed .step-title {
    color: #10b981;
    font-weight: 700;
}
/* Mobile Timeline Styles */
@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
        padding: 1rem 1rem;
    }
    .timeline-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        min-width: auto;
        width: 100%;
        margin: 0.5rem 0;
    }
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 0;
        margin-right: 1rem;
        flex-shrink: 0;
    }
    .timeline-connector {
        width: 3px;
        height: 30px;
        margin: 0;
        align-self: stretch;
        background: #e2e8f0;
    }
    .timeline-connector:last-of-type {
        display: none;
    }
    .step-content {
        flex: 1;
    }
}
.no-highlight{
    text-decoration: none;
    color: inherit;
}
.nav-link{
    color: #1E293B;
}
/* RTL Support for Arabic */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
[dir="rtl"] .container {
    direction: rtl;
}
[dir="rtl"] .form-label {
    text-align: right;
}
[dir="rtl"] .btn {
    direction: rtl;
}
[dir="rtl"] .nav-tabs .nav-link {
    text-align: right;
}
[dir="rtl"] table {
    direction: rtl;
}
[dir="rtl"] .modal-body {
    text-align: right;
}
[dir="rtl"] .form-control {
    text-align: right;
}
[dir="rtl"] .language-flag {
    margin-left: 0.5rem;
    margin-right: 0;
}
/* Custom File Input Styles */
.custom-file-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.file-browse-btn {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    min-width: 150px;
}
.file-browse-btn:hover {
    border-color: #0D9488;
    background-color: #f8f9ff;
    color: #0D9488;
}
.file-name {
    font-style: italic;
    word-break: break-all;
    max-width: 300px;
}
#overallStatus {
    background: white;
    border-radius: 5px;
    padding: 6px;
}
@media (max-width: 768px) {
    .custom-file-input {
        flex-direction: column;
        align-items: flex-start;
    }
    .file-name {
        margin-top: 0.5rem;
        margin-left: 0 !important;
    }
}
/* Modern Form Styles */
.card {
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    background: var(--background-white);
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-xl);
}
.card-body {
    padding: 2rem;
}
.form-control {
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background: var(--background-white);
    box-shadow: var(--shadow-sm);
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}
.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    letter-spacing: -0.025em;
}
.btn {
    border-radius: var(--border-radius-lg);
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: -0.025em;
    box-shadow: var(--shadow-sm);
}
.btn:hover {
    box-shadow: var(--shadow-md);
}
.btn:active {
    box-shadow: var(--shadow-sm);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(13, 148, 136, 0.39);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #2563eb 100%);
    box-shadow: 0 6px 20px 0 rgba(13, 148, 136, 0.5);
}
.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}
/* Enhanced File Upload Styles */
.file-upload-area {
    border: 2px dashed var(--border-medium);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.1), transparent);
}
.file-upload-area:hover {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, #f0fdfa 0%, #e6fffa 100%);
}
.file-upload-area:hover::before {
    left: 100%;
}
.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Enhanced Tab Styles */
.nav-tabs {
    border: none;
    margin-bottom: 2rem;
    background: var(--background-light);
    padding: 0.5rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    gap: 0.25rem;
}
.nav-tabs .nav-link {
    border: none;
    border-radius: var(--border-radius-md);
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
    background: transparent;
    margin: 0;
}
.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(13, 148, 136, 0.1);
}
.nav-tabs .nav-link.active {
    background: var(--background-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}
/* Loading States and Animations */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
}
.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    max-width: 400px;
    width: 100%;
    padding: 2rem;
}
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}
.loading-progress-container {
    width: 100%;
    max-width: 300px;
}
.loading-progress-container .progress-enhanced {
    height: 12px;
    border-radius: 6px;
    margin-top: 0.5rem;
}
/* Progress Bar */
.progress-enhanced {
    height: 8px;
    border-radius: 4px;
    background: var(--border-light);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.progress-bar-enhanced {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.progress-bar-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
/* Enhanced Alert Styles */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid;
}
.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: var(--warning-color);
    color: #92400e;
}
.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: var(--success-color);
    color: #065f46;
}
.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: var(--accent-color);
    color: #1e40af;
}
/* Enhanced Score Visualizations */
.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.score-circle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-color), var(--accent-color), var(--primary-color));
    z-index: -1;
}

.score-circle:hover {
    box-shadow: var(--shadow-xl);
}
/* Enhanced Table Styles */
.table {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}
.table tbody tr {
}
.table tbody tr:hover {
    background: var(--background-light);
}
.table tbody td {
    padding: 1rem;
    border-color: var(--border-light);
    vertical-align: middle;
}
/* Enhanced Mobile Responsive */
@media (max-width: 768px) {
    .main-header {
        padding: 2rem 0 1.5rem;
    }
    .main-header h1 {
        font-size: 2rem;
    }
    .main-header .lead {
        font-size: 1rem;
    }
    .timeline-step {
        min-width: auto;
        width: 100%;
    }
    .timeline-connector {
        width: 4px;
        height: 3rem;
        margin: 0;
    }
    .timeline-connector::before {
        width: 100%;
        height: 0;
    }
    .timeline-connector.active::before {
        height: 100%;
    }
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .card-body {
        padding: 1.5rem;
    }
    .btn {
        padding: 0.75rem 1.5rem;
        width: 100%;
        justify-content: center;
    }
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    .nav-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    .nav-tabs .nav-item {
        flex: none;
    }
    .score-circle {
        width: 70px;
        height: 70px;
        font-size: 1rem;
    }
}
/* Accessibility Enhancements */
.btn:focus {
    outline: 3px solid rgba(13, 148, 136, 0.5);
    outline-offset: 2px;
}
.form-control:focus {
    outline: none;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .file-upload-icon {
        animation: none;
    }
    .loading-spinner {
        animation: none;
    }
}
/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    .form-control {
        border: 2px solid #000;
    }
}
.header-bg {
    background: #f8fafc;
    color: #1E293B;
    border-bottom: 2px solid #1E293B;
}
.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    min-height: 250px;
}
.feature-card:hover {
}
.feature-icon {
    font-size: 2.5rem;
    color: #1E293B;
    margin-bottom: 1rem;
}
.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}
.score-number {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}
.resume-content {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
}
.cover-letter-content {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    line-height: 1.6;
    font-style: italic;
}
.card {
    border: 1px solid #1E293B;
    border-radius: 10px;
}
.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
    background-color: #1E293B !important;
    color: white;
}
.btn {
    font-weight: 500;
}
.btn-primary {
    background-color: #1E293B;
    border-color: #1E293B;
}
.btn-primary:hover {
    background-color: #1E293B;
    border-color: #1E293B;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.table th {
    border-top: none;
    font-weight: 600;
    background-color: #1E293B;
    color: white;
}
.badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}
/* Loading animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}
/* Enhanced ATS Dashboard Styles */
.job-context-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.context-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.context-card:hover {
}
.context-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.context-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.context-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}
.metrics-dashboard {
    margin-top: 1.5rem;
}
.metric-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}
.metric-card:hover {
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.15);
}
.metric-card.primary {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    border: none;
}
.metric-header {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    opacity: 0.8;
}
.metric-card.primary .metric-header {
    color: rgba(255,255,255,0.9);
}
.score-circle-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    border: 3px solid rgba(255,255,255,0.3);
}
.metric-card:not(.primary) .score-circle-large {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    border: 3px solid #0d9488;
}
.score-circle-medium {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid #0d9488;
}
.metric-status {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}
.metric-detail {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
}
.metric-card.primary .metric-detail {
    color: rgba(255,255,255,0.8);
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 15px;
    }
    .score-circle {
        width: 100px;
        height: 100px;
    }
    .score-number {
        font-size: 1.5rem;
    }
    .resume-content {
        font-size: 0.9rem;
    }
    .job-context-info {
        padding: 1rem;
    }
    .context-card {
        padding: 0.75rem;
    }
    .context-icon {
        font-size: 1.25rem;
    }
    .context-value {
        font-size: 0.8rem;
    }
    .metric-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    .score-circle-large {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    .score-circle-medium {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}
/* File input styling */
.form-control:focus {
    border-color: #1E293B;
    box-shadow: 0 0 0 0.2rem #1E293B;
}
/* Custom scrollbar for resume content */
.resume-content::-webkit-scrollbar {
    width: 8px;
}
.resume-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.resume-content::-webkit-scrollbar-thumb {
    background: #0D9488;
    border-radius: 4px;
}
.resume-content::-webkit-scrollbar-thumb:hover {
    background: #0D9488;
}
/* Diff styling */
.diff-container {
    max-height: 400px;
    overflow-y: auto;
}
.diff-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}
.diff-item:last-child {
    border-bottom: none;
}
.diff-before, .diff-after {
    font-size: 0.9rem;
}
.diff-before .border {
    border-color: #dc3545 !important;
}
.diff-after .border {
    border-color: #0D9488 !important;
}
/* Responsive improvements for diff */
@media (max-width: 768px) {
    .diff-item .row > div {
        margin-bottom: 10px;
    }
}
/* Language Selection Styles */
.language-cloud {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem;
}
.flag-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 3px;
}
.flag-btn:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-color: #1E293B;
}
.flag-btn.active {
    border-color: #1E293B;
    background-color: #e3f2fd;
    box-shadow: 0 4px 12px #1E293B;
}
.flag-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px #1E293B;
}
/* Mobile language dropdown with flags */
@media (max-width: 767px) {
    .language-cloud {
        display: none;
    }
    #language-mobile {
        font-size: 1rem;
        padding: 10px;
    }
    #language-mobile option {
        padding: 8px;
        font-size: 1rem;
    }
}
/* Desktop hide mobile dropdown */
@media (min-width: 768px) {
    #language-mobile {
        display: none !important;
    }
}
/* Additional result page specific styles */
.card-simple {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.keyword-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 2px;
    display: inline-block;
    font-size: 0.75rem;
    border: 1px solid #ced4da;
}
.comparison-table {
    border-radius: 4px;
    overflow: hidden;
}
.btn-export {
    background: #0D9488;
    border: none;
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}
.btn-export:hover {
    background: #1E293B;
    color: white;
}
.section-header {
    text-align: left;
    padding-left: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1E293B;
}
.chart-container {
    position: relative;
    height: 200px;
    margin: 1rem 0;
}
.content-box {
    background: #f8fafc;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
    white-space: pre-wrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    font-size: 0.85rem;
}
.keyword-section {
    background: #f8fafc;
    color: #64748B;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}
/* Keyword Selection Checkbox Styles */
.keyword-checkbox {
    margin-right: 0.5rem;
}
.keyword-checkbox:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    accent-color: var(--success-color);
}
/* Style the table row when checkbox is disabled (found keywords) */
tr:has(.keyword-checkbox:disabled) {
    background-color: #f0f9ff;
    border-left: 3px solid var(--success-color);
}
tr:has(.keyword-checkbox:disabled) td {
    color: var(--text-secondary);
    font-weight: 500;
}
/* Add visual indicator for locked keywords */
.keyword-checkbox:disabled::after {
    content: '🔒';
    position: absolute;
    margin-left: -15px;
    margin-top: -2px;
    font-size: 0.7rem;
    opacity: 0.6;
}
    margin: 15px 0;
}
.table-modern {
    border-radius: 4px;
    overflow: hidden;
    font-size: 0.85rem;
}
/* Skills Score Boxes Grid */
.skills-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.score-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.score-box:hover {
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.15);
    border-color: #0D9488;
}
.score-box.total-score {
    background: linear-gradient(135deg, #0D9488 0%, #14b8a6 100%);
    color: white;
    border-color: #0D9488;
}
.score-box.total-score:hover {
    background: linear-gradient(135deg, #0f766e 0%, #0D9488 100%);
}
.score-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.score-box.total-score .score-label {
    color: rgba(255, 255, 255, 0.9);
}
.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0D9488;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.score-box.total-score .score-value {
    color: white;
}
.score-denominator {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
}
.score-box.total-score .score-denominator {
    color: rgba(255, 255, 255, 0.8);
}
/* Score color coding */
.score-box[data-score="1"], .score-box[data-score="2"] {
    border-color: #ef4444;
}
.score-box[data-score="1"] .score-value, .score-box[data-score="2"] .score-value {
    color: #ef4444;
}
.score-box[data-score="3"], .score-box[data-score="4"] {
    border-color: #f59e0b;
}
.score-box[data-score="3"] .score-value, .score-box[data-score="4"] .score-value {
    color: #f59e0b;
}
.score-box[data-score="5"], .score-box[data-score="6"] {
    border-color: #3b82f6;
}
.score-box[data-score="5"] .score-value, .score-box[data-score="6"] .score-value {
    color: #3b82f6;
}
.score-box[data-score="7"], .score-box[data-score="8"] {
    border-color: #10b981;
}
.score-box[data-score="7"] .score-value, .score-box[data-score="8"] .score-value {
    color: #10b981;
}
.score-box[data-score="9"], .score-box[data-score="10"] {
    border-color: #059669;
}
.score-box[data-score="9"] .score-value, .score-box[data-score="10"] .score-value {
    color: #059669;
}
/* Info Icon Styles */
.info-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid #0D9488;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #0D9488;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}
.info-icon:hover {
    background: #0D9488;
    color: white;
}
.score-box.total-score .info-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}
.score-box.total-score .info-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}
/* Modal Score Display */
.score-display {
    display: inline-block;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    min-width: 120px;
}
.score-display.total {
    background: linear-gradient(135deg, #0D9488 0%, #14b8a6 100%);
    color: white;
    border-color: #0D9488;
}
.score-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0D9488;
}
.score-display.total .score-number {
    color: white;
}
.score-max {
    font-size: 1.2rem;
    color: #94a3b8;
    font-weight: 500;
}
.score-display.total .score-max {
    color: rgba(255, 255, 255, 0.8);
}
.score-explanation {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    text-align: left;
}
/* Score color coding in modal */
.score-display[data-score="1"] .score-number,
.score-display[data-score="2"] .score-number {
    color: #ef4444;
}
.score-display[data-score="3"] .score-number,
.score-display[data-score="4"] .score-number {
    color: #f59e0b;
}
.score-display[data-score="5"] .score-number,
.score-display[data-score="6"] .score-number {
    color: #3b82f6;
}
.score-display[data-score="7"] .score-number,
.score-display[data-score="8"] .score-number {
    color: #10b981;
}
.score-display[data-score="9"] .score-number,
.score-display[data-score="10"] .score-number {
    color: #059669;
}
/* Career Transition Options Styling */
.transition-option {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #0D9488;
}
.transition-option h6 {
    color: #1E293B;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.transition-option p {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.4;
}
.additional-details-form .form-label {
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.5rem;
}
.additional-details-form textarea {
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
}
.additional-details-form textarea:focus {
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    outline: none;
}
.additional-details-form textarea::placeholder {
    color: #94A3B8;
    font-style: italic;
}
/* Mobile responsive */
@media (max-width: 768px) {
    .skills-score-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .score-box {
        padding: 1rem 0.75rem;
        min-height: 100px;
    }
    .score-value {
        font-size: 2rem;
    }
}
.table-modern thead {
    background: #1E293B;
    color: white;
}
.found-yes { 
    color: #0D9488; 
    font-weight: bold; 
}
.found-no { 
    color: #dc3545; 
    font-weight: bold; 
}
/* Text color updates */
.text-muted {
    color: #64748B !important;
}
/* Skills Background Analysis Styles */
.skills-analysis-content {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}
.analysis-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    white-space: pre-line;
}
.analysis-text strong {
    color: #0D9488;
    font-weight: 600;
}
.analysis-text h3,
.analysis-text h4 {
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.analysis-text h3:first-child {
    margin-top: 0;
}
.analysis-text p {
    margin-bottom: 1rem;
}
.analysis-text ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}
.analysis-text li {
    margin-bottom: 0.25rem;
}
@media (max-width: 768px) {
    .skills-analysis-content {
        padding: 1rem;
    }
    .analysis-text {
        font-size: 0.95rem;
    }
}
/* Career Transition Styles */
.career-transition-offer {
    margin-top: 1.5rem;
}
.career-transition-offer .alert {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
    border-color: #f59e0b;
}
.career-transition-offer .alert-heading {
    color: #92400e;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.career-transition-offer p {
    color: #78350f;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.career-transition-offer .btn-primary {
    background: linear-gradient(135deg, #0D9488 0%, #059669 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}
.career-transition-offer .btn-primary:hover {
    background: linear-gradient(135deg, #0f766e 0%, #047857 100%);
}
/* Career Transition Page Styles */
.resume-content,
.cover-letter-content {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}
.content-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    white-space: pre-line;
}
.content-text strong {
    color: #0D9488;
    font-weight: 600;
}
.content-text h3,
.content-text h4 {
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.content-text h3:first-child,
.content-text h4:first-child {
    margin-top: 0;
}
.content-text p {
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    .resume-content,
    .cover-letter-content {
        padding: 1.5rem;
    }
    .content-text {
        font-size: 0.95rem;
    }
    .career-transition-offer .btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }
}
/* Skills Analysis Tabs */
.skills-analysis-tabs {
    margin-top: 1rem;
}
.skills-tabs {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 0;
}
.skills-tabs .nav-item {
    margin-bottom: -2px;
}
.skills-tabs .score-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    background: #f8fafc;
    color: #64748b;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    margin-right: 0.25rem;
}
.skills-tabs .score-tab:hover:not(.score-good):not(.score-moderate):not(.score-bad) {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}
.skills-tabs .score-tab.active:not(.score-good):not(.score-moderate):not(.score-bad) {
    background: #ffffff;
    color: #1e293b;
    border-color: #0D9488;
    box-shadow: 0 -2px 8px rgba(13, 148, 136, 0.1);
}
.tab-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    text-align: center;
}
.tab-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: inherit;
}
/* Score-based tab colors with higher specificity */
.skills-analysis-tabs .skills-tabs .nav-link.score-tab.score-good {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important;
    color: #065f46 !important;
    border-color: #10b981 !important;
}
.skills-analysis-tabs .skills-tabs .nav-link.score-tab.score-good.active,
.skills-analysis-tabs .skills-tabs .nav-link.score-tab.score-good:hover {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    box-shadow: 0 -2px 8px rgba(16, 185, 129, 0.2) !important;
    color: #065f46 !important;
}
.skills-analysis-tabs .skills-tabs .nav-link.score-tab.score-moderate {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    color: #92400e !important;
    border-color: #f59e0b !important;
}
.skills-analysis-tabs .skills-tabs .nav-link.score-tab.score-moderate.active,
.skills-analysis-tabs .skills-tabs .nav-link.score-tab.score-moderate:hover {
    background: #fffbeb !important;
    border-color: #f59e0b !important;
    box-shadow: 0 -2px 8px rgba(245, 158, 11, 0.2) !important;
    color: #92400e !important;
}
.skills-analysis-tabs .skills-tabs .nav-link.score-tab.score-bad {
    background: linear-gradient(135deg, #fecaca, #fca5a5) !important;
    color: #991b1b !important;
    border-color: #ef4444 !important;
}
.skills-analysis-tabs .skills-tabs .nav-link.score-tab.score-bad.active,
.skills-analysis-tabs .skills-tabs .nav-link.score-tab.score-bad:hover {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 -2px 8px rgba(239, 68, 68, 0.2) !important;
    color: #991b1b !important;
}
.skills-tab-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    min-height: 200px;
}
.score-explanation {
    padding: 2rem;
    color: #374151;
    line-height: 1.6;
}
.score-explanation h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}
.score-explanation p {
    margin-bottom: 1rem;
}
.score-explanation ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.score-explanation li {
    margin-bottom: 0.5rem;
}
/* Mobile responsive - show accordion instead of tabs */
@media (max-width: 768px) {
    /* Hide tabs on mobile */
    .skills-analysis-tabs .skills-tabs {
        display: none;
    }
    .skills-analysis-tabs .skills-tab-content {
        display: none;
    }
    /* Show accordion on mobile */
    .skills-accordion {
        display: block;
    }
}
/* Desktop - hide accordion */
@media (min-width: 769px) {
    .skills-accordion {
        display: none;
    }
}
/* Skills Accordion Styles */
.skills-accordion {
    display: none; /* Hidden by default, shown on mobile */
}
.skills-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
}
.skills-accordion .accordion-header {
    margin-bottom: 0;
}
.skills-accordion .accordion-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    font-weight: 600;
    border: none;
    background: #f8fafc;
    color: #374151;
    text-align: left;
    width: 100%;
    position: relative;
}
.skills-accordion .accordion-button:not(.collapsed) {
    background: #ffffff;
    box-shadow: none;
}
.skills-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 148, 136, 0.25);
}
.accordion-score {
    font-size: 1.1rem;
    font-weight: 700;
    margin-left: 0.5rem;
}
.skills-accordion .accordion-body {
    padding: 1.5rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}
/* Score-based accordion colors */
.skills-accordion .accordion-item.score-good .accordion-button {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}
.skills-accordion .accordion-item.score-good .accordion-button:not(.collapsed) {
    background: #ecfdf5;
    color: #065f46;
}
.skills-accordion .accordion-item.score-moderate .accordion-button {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}
.skills-accordion .accordion-item.score-moderate .accordion-button:not(.collapsed) {
    background: #fffbeb;
    color: #92400e;
}
.skills-accordion .accordion-item.score-bad .accordion-button {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    color: #991b1b;
}
.skills-accordion .accordion-item.score-bad .accordion-button:not(.collapsed) {
    background: #fef2f2;
    color: #991b1b;
}
/* Loading Modal Styles */
.text-teal {
    color: #0D9488 !important;
}
.spinner-border.text-teal {
    border-color: #0D9488;
    border-right-color: transparent;
}
/* Ensure modal content is visible */
.modal-content {
    background-color: #ffffff !important;
    z-index: 1055;
}
.modal-backdrop {
    z-index: 1050;
}
.modal-dialog {
    z-index: 1060;
}
/* Rich text editor styles */
.rich-editor-container {
    position: relative;
}
/* Quill editor styling */
.ql-toolbar {
    border: 1px solid #ddd !important;
    border-bottom: none !important;
    border-radius: 8px 8px 0 0 !important;
    background: white !important;
}
.ql-container {
    border: 1px solid #ddd !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    background: white !important;
    min-height: 300px !important;
}
/* Fix doubled toolbar issue - hide any duplicate toolbars */
.ql-toolbar + .ql-toolbar {
    display: none !important;
}
/* Ensure only the first toolbar in each editor container is visible */
.rich-editor-container .ql-toolbar:not(:first-of-type) {
    display: none !important;
}
/* Ensure proper editor display */
#resumeEditor .ql-editor,
#coverLetterEditor .ql-editor,
#transitionResumeEditor .ql-editor,
#transitionCoverLetterEditor .ql-editor {
    min-height: 280px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 15px;
}
/* Quill Editor Image Styles */
.ql-editor img {
    display: block !important;
    max-width: 150px !important;
    max-height: 150px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin: 0 auto 20px auto !important;
    border: 2px solid var(--border-light) !important;
    box-shadow: var(--shadow-sm) !important;
}
.ql-editor img[src*="user_photo"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* Resume and Cover Letter Editor specific styles */
#resumeEditor img,
#coverLetterEditor img {
    display: block !important;
    max-width: 150px !important;
    max-height: 150px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin: 0 auto 20px auto !important;
    border: 2px solid var(--border-light) !important;
    box-shadow: var(--shadow-sm) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#generateTransitionCvBtn {
    background-color: orange;
}