/* CareerPilot Resume Builder theme stabilizer v1.0 */

/* LIGHT */
html[data-theme="light"] body,
body:not(.dark-mode) {
    background:#f5f7fb !important;
    color:#111827 !important;
}

html[data-theme="light"] .resume-nav,
body:not(.dark-mode) .resume-nav,
html[data-theme="light"] .resume-editor-panel,
html[data-theme="light"] .resume-preview-panel,
html[data-theme="light"] .resume-intelligence-panel,
html[data-theme="light"] .resume-entry-card,
html[data-theme="light"] .resume-photo-editor,
html[data-theme="light"] .resume-suggestions-card,
body:not(.dark-mode) .resume-editor-panel,
body:not(.dark-mode) .resume-preview-panel,
body:not(.dark-mode) .resume-intelligence-panel,
body:not(.dark-mode) .resume-entry-card,
body:not(.dark-mode) .resume-photo-editor,
body:not(.dark-mode) .resume-suggestions-card {
    background:#ffffff !important;
    color:#111827 !important;
    border-color:#dce4ef !important;
}

html[data-theme="light"] .resume-preview-panel,
body:not(.dark-mode) .resume-preview-panel {
    background:#eef3f9 !important;
}

html[data-theme="light"] .resume-form-group input,
html[data-theme="light"] .resume-form-group textarea,
html[data-theme="light"] .resume-form-group select,
body:not(.dark-mode) .resume-form-group input,
body:not(.dark-mode) .resume-form-group textarea,
body:not(.dark-mode) .resume-form-group select {
    background:#ffffff !important;
    color:#111827 !important;
    border-color:#dce4ef !important;
}

/* DARK */
html[data-theme="dark"] body,
body.dark-mode {
    background:#0b1220 !important;
    color:#f8fafc !important;
}

html[data-theme="dark"] .resume-nav,
html[data-theme="dark"] .resume-editor-panel,
html[data-theme="dark"] .resume-preview-panel,
html[data-theme="dark"] .resume-intelligence-panel,
html[data-theme="dark"] .resume-entry-card,
html[data-theme="dark"] .resume-photo-editor,
html[data-theme="dark"] .resume-suggestions-card,
body.dark-mode .resume-nav,
body.dark-mode .resume-editor-panel,
body.dark-mode .resume-preview-panel,
body.dark-mode .resume-intelligence-panel,
body.dark-mode .resume-entry-card,
body.dark-mode .resume-photo-editor,
body.dark-mode .resume-suggestions-card {
    background:#111a2b !important;
    color:#f8fafc !important;
    border-color:#2b3950 !important;
}

html[data-theme="dark"] .resume-form-group input,
html[data-theme="dark"] .resume-form-group textarea,
html[data-theme="dark"] .resume-form-group select,
body.dark-mode .resume-form-group input,
body.dark-mode .resume-form-group textarea,
body.dark-mode .resume-form-group select {
    background:#0f172a !important;
    color:#f8fafc !important;
    border-color:#334155 !important;
}

html[data-theme="dark"] .resume-builder-header h1,
html[data-theme="dark"] .resume-editor-heading h2,
html[data-theme="dark"] .resume-form-section-heading h3,
html[data-theme="dark"] .resume-form-group label,
html[data-theme="dark"] .resume-preview-toolbar h2,
html[data-theme="dark"] .resume-intelligence-header h2,
html[data-theme="dark"] .resume-score-row,
html[data-theme="dark"] .resume-score-category,
html[data-theme="dark"] .resume-suggestions-card h3,
body.dark-mode .resume-builder-header h1,
body.dark-mode .resume-editor-heading h2,
body.dark-mode .resume-form-section-heading h3,
body.dark-mode .resume-form-group label,
body.dark-mode .resume-preview-toolbar h2,
body.dark-mode .resume-intelligence-header h2,
body.dark-mode .resume-score-row,
body.dark-mode .resume-score-category,
body.dark-mode .resume-suggestions-card h3 {
    color:#f8fafc !important;
}

html[data-theme="dark"] .resume-builder-header > div > p:not(.resume-label),
html[data-theme="dark"] .resume-editor-heading p,
html[data-theme="dark"] .resume-form-section-heading p,
html[data-theme="dark"] .resume-intelligence-header > p:last-child,
html[data-theme="dark"] .resume-score-note,
html[data-theme="dark"] .resume-auto-save-status,
body.dark-mode .resume-builder-header > div > p:not(.resume-label),
body.dark-mode .resume-editor-heading p,
body.dark-mode .resume-form-section-heading p,
body.dark-mode .resume-intelligence-header > p:last-child,
body.dark-mode .resume-score-note,
body.dark-mode .resume-auto-save-status {
    color:#94a3b8 !important;
}

html[data-theme="dark"] .resume-score-ring-inner,
body.dark-mode .resume-score-ring-inner {
    background:#111a2b !important;
    color:#f8fafc !important;
}

/* Always keep exported CV paper white. */
.resume-preview-page,
html[data-theme="dark"] .resume-preview-page,
body.dark-mode .resume-preview-page {
    background:#ffffff !important;
    color:#111827 !important;
}

.resume-preview-page h1,
.resume-preview-page h2,
.resume-preview-page h3,
.resume-preview-page p,
.resume-preview-page span,
.resume-preview-page strong {
    color:inherit;
}
