/* /courses/assets/css/cv-analysis.css */
.cv-analysis-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem 0;
}

.cv-upload-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.upload-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-header h1 {
    color: #2d3748;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.upload-header p {
    color: #718096;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Wizard Stepper ──────────────────────────────────── */
.wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0aec0;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.wizard-step.active {
    color: #4299e1;
}

.wizard-step.completed {
    color: #48bb78;
}

.wizard-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    background: #e2e8f0;
    color: #718096;
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-number {
    background: #4299e1;
    color: white;
}

.wizard-step.completed .wizard-step-number {
    background: #48bb78;
    color: white;
}

.wizard-step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 1rem;
    max-width: 80px;
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

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

/* ─── Upload Section ──────────────────────────────────── */
.upload-section {
    margin-bottom: 1rem;
}

.upload-section h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f7fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #4299e1;
    background: #ebf8ff;
}

.upload-icon {
    font-size: 3rem;
    color: #a0aec0;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.upload-note {
    font-size: 0.875rem;
    color: #718096;
}

.file-info {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.file-details {
    display: flex;
    justify-content: space-between;
    color: #2f855a;
    font-size: 0.875rem;
}

/* ─── JD Input Section ────────────────────────────────── */
.jd-input-section h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.jd-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.jd-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.jd-tab {
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: #718096;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jd-tab:hover {
    color: #4299e1;
}

.jd-tab.active {
    color: #4299e1;
    border-bottom-color: #4299e1;
}

.jd-tab-content {
    display: none;
}

.jd-tab-content.active {
    display: block;
}

.jd-tab-content textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 180px;
    transition: border-color 0.3s ease;
}

.jd-tab-content textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.jd-text-count {
    text-align: right;
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 0.25rem;
}

.jd-url-input-group {
    display: flex;
    gap: 0.75rem;
}

.jd-url-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.jd-url-input-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.jd-url-status {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jd-url-status.status-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.jd-url-status.status-warning {
    background: #feebc8;
    color: #744210;
    border: 1px solid #f6e05e;
}

.jd-url-status.status-info {
    background: #bee3f8;
    color: #2a4365;
    border: 1px solid #90cdf4;
}

.jd-scraped-preview {
    margin-top: 1rem;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    overflow: hidden;
}

.scraped-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f0fff4;
    color: #22543d;
    font-size: 0.875rem;
    font-weight: 500;
}

.scraped-text {
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.6;
    white-space: pre-wrap;
    background: #fafafa;
}

/* ─── Job Details ─────────────────────────────────────── */
.job-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.job-details h4 {
    color: #2d3748;
    margin-bottom: 1rem;
}

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

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* ─── Mode Selection Grid ─────────────────────────────── */
.mode-selection h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.mode-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

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

.mode-card {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mode-card:hover:not(.mode-disabled) {
    border-color: #4299e1;
    background: #ebf8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.15);
}

.mode-card.selected {
    border-color: #4299e1;
    background: #ebf8ff;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.2);
}

.mode-card.mode-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

.mode-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.mode-icon i {
    font-size: 1.25rem;
    color: white;
}

.mode-card h4 {
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.mode-card p {
    color: #718096;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.mode-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #48bb78;
    color: white;
}

.mode-badge.mode-requires-jd {
    background: #ed8936;
}

/* ─── Cover Letter Tone Selection ─────────────────────── */
.cover-letter-options {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.cover-letter-options h4 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.tone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.tone-option {
    cursor: pointer;
}

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

.tone-card {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tone-card strong {
    display: block;
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.tone-card span {
    color: #718096;
    font-size: 0.8rem;
}

.tone-option input[type="radio"]:checked + .tone-card {
    border-color: #4299e1;
    background: #ebf8ff;
}

.tone-option:hover .tone-card {
    border-color: #90cdf4;
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4299e1;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #3182ce;
    transform: translateY(-1px);
}

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

.btn-outline {
    background: transparent;
    color: #4299e1;
    border: 1px solid #4299e1;
}

.btn-outline:hover {
    background: #4299e1;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ─── Progress Container ──────────────────────────────── */
.progress-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.progress-header h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.progress-header p {
    color: #718096;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #3182ce);
    transition: width 0.5s ease;
    width: 0%;
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #a0aec0;
    transition: color 0.3s ease;
}

.step.active {
    color: #4299e1;
}

.step i {
    font-size: 1.5rem;
}

.step span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ─── Results Header & Scores ─────────────────────────── */
.analysis-results {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.results-header {
    background: linear-gradient(135deg, #2563EB 0%, #2563EB 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.results-header h1 {
    margin-bottom: 1rem;
}

.analysis-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    opacity: 0.9;
}

.analysis-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.score-overview {
    padding: 2rem;
    background: #f8f9fa;
}

.score-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2d3748;
}

.score-label {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.5rem;
}

/* ─── Content Tabs ────────────────────────────────────── */
.analysis-content {
    padding: 2rem;
}

.content-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    gap: 0;
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    color: #718096;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.tab-btn.active,
.tab-btn:hover {
    color: #4299e1;
    border-bottom-color: #4299e1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ─── Overview Tab ────────────────────────────────────── */
.overview-sections {
    display: grid;
    gap: 1.5rem;
}

.section-analysis {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #4299e1;
}

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

.section-header h3 {
    color: #2d3748;
    margin: 0;
}

.section-score {
    background: #4299e1;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.section-content p {
    color: #4a5568;
    margin-bottom: 1rem;
}

.suggestions-list {
    list-style: none;
    padding: 0;
}

.suggestions-list li {
    padding: 0.5rem 0;
    color: #2f855a;
    position: relative;
    padding-left: 1.5rem;
}

.suggestions-list li:before {
    content: "\2192";
    position: absolute;
    left: 0;
    color: #4299e1;
    font-weight: bold;
}

/* ─── Match Results Tab ───────────────────────────────── */
.match-container {
    max-width: 800px;
    margin: 0 auto;
}

.match-score-hero {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #ebf8ff, #e6fffa);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.match-score-circle {
    margin-bottom: 1rem;
}

.match-score-value {
    font-size: 3.5rem;
    font-weight: bold;
    color: #2d3748;
    line-height: 1;
}

.match-score-label {
    font-size: 0.95rem;
    color: #718096;
    margin-top: 0.25rem;
}

.match-summary {
    color: #4a5568;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.match-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
}

.match-section h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-found {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
}

.match-found h4 i {
    color: #48bb78;
}

.match-missing {
    background: #fffbeb;
    border: 1px solid #fef3c7;
}

.match-missing h4 i {
    color: #ed8936;
}

.match-gaps {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
}

.match-gaps h4 i {
    color: #4299e1;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.skill-matched {
    background: #c6f6d5;
    color: #22543d;
}

.skill-missing {
    background: #feebc8;
    color: #744210;
}

.gap-suggestions {
    display: grid;
    gap: 0.75rem;
}

.gap-card {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #bee3f8;
}

.gap-skill {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.gap-suggestion {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

.gap-example {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f0f9ff;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #2a4365;
}

/* ─── Cover Letter Tab ────────────────────────────────── */
.cover-letter-container {
    max-width: 800px;
    margin: 0 auto;
}

.cover-letter-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.cover-letter-lang-toggle {
    display: flex;
    gap: 0.5rem;
}

.cover-letter-actions {
    display: flex;
    gap: 0.5rem;
}

.cover-letter-content {
    background: #fafafa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    min-height: 300px;
}

.cover-letter-text {
    display: none;
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.8;
    white-space: pre-wrap;
}

.cover-letter-text.active {
    display: block;
}

.cover-letter-tone-info {
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: #718096;
}

/* ─── Improvements Tab ────────────────────────────────── */
.improvements-container {
    max-width: 800px;
    margin: 0 auto;
}

.improvements-list {
    display: grid;
    gap: 2rem;
}

.improvement-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.improvement-category h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.improvement-items {
    display: grid;
    gap: 1rem;
}

.improvement-item {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.improvement-item:hover {
    border-color: #4299e1;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.1);
}

.improvement-content {
    margin-bottom: 1rem;
}

.improvement-content strong {
    color: #2d3748;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.25rem;
}

.improvement-content p {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
}

.improvement-actions {
    text-align: right;
}

.no-improvements {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 2rem;
}

/* ─── Export Tab ──────────────────────────────────────── */
.export-container {
    max-width: 800px;
    margin: 0 auto;
}

.export-options {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.export-format h4,
.export-preview h4 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.format-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.format-buttons .btn {
    justify-content: flex-start;
}

.preview-container {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-height: 300px;
    padding: 1rem;
    overflow: auto;
}

/* ─── Analysis Actions & History ──────────────────────── */
.analysis-actions {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analysis-history {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.analysis-history h2 {
    color: #2d3748;
    margin-bottom: 1.5rem;
}

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

.history-item {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: #4299e1;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-type {
    background: #4299e1;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.history-date {
    color: #718096;
    font-size: 0.875rem;
}

.history-scores {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.history-scores .score {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.history-actions {
    text-align: right;
}

/* ─── Alerts ──────────────────────────────────────────── */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-warning {
    background: #feebc8;
    color: #744210;
    border: 1px solid #f6e05e;
}

.alert-info {
    background: #bee3f8;
    color: #2a4365;
    border: 1px solid #90cdf4;
}

/* ─── Animations ──────────────────────────────────────── */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .cv-analysis-main {
        padding: 1rem 0;
    }

    .wizard-stepper {
        padding: 0 0.5rem;
    }

    .wizard-step span {
        display: none;
    }

    .wizard-step-line {
        max-width: 40px;
    }

    .jd-tabs {
        overflow-x: auto;
    }

    .jd-url-input-group {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .mode-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tone-grid {
        grid-template-columns: 1fr;
    }

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

    .wizard-nav-right {
        width: 100%;
        justify-content: flex-end;
    }

    .analysis-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .score-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .content-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    .export-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .analysis-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

    .cover-letter-toolbar {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .match-score-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .upload-header h1 {
        font-size: 1.75rem;
    }

    .mode-grid {
        grid-template-columns: 1fr;
    }

    .file-upload-area {
        padding: 2rem 1rem;
    }

    .upload-icon {
        font-size: 2rem;
    }

    .score-circle {
        width: 100px;
        height: 100px;
    }

    .score-value {
        font-size: 1.5rem;
    }

    .cv-upload-section,
    .analysis-results,
    .analysis-history {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .cover-letter-content {
        padding: 1rem;
    }
}
