:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #EEF2FF;

    --sidebar: #172033;

    --bg: #F5F7FB;
    --card: #FFFFFF;

    --text: #182230;
    --text-secondary: #596579;
    --text-muted: #8993A4;

    --border: #E4E8EF;

    --success: #16A34A;
    --danger: #DC2626;

    --shadow: 0 8px 30px rgba(23, 32, 51, 0.07);
}
/* =========================================================
   RESUMECRAFT BUILDER
   builder.css
   ========================================================= */

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f5f7fb;
    color: #172033;
    line-height: 1.5;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.builder-topbar {
    height: 68px;
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e7eaf0;

    display: flex;
    align-items: center;

    padding: 0 28px;

    position: sticky;
    top: 0;
    z-index: 100;
}

.builder-logo {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #182033;
}

.builder-logo span {
    color: #6c4ce8;
}


/* =========================================================
   MAIN BUILDER LAYOUT
   ========================================================= */

.builder-layout {
    min-height: calc(100vh - 68px);

    display: grid;

    grid-template-columns:
        270px
        minmax(500px, 1fr)
        480px;
}


/* =========================================================
   LEFT SIDEBAR
   ========================================================= */

.builder-sidebar {
    background: #ffffff;

    border-right: 1px solid #e5e8ee;

    display: flex;
    flex-direction: column;

    min-height: calc(100vh - 68px);

    position: sticky;
    top: 68px;

    height: calc(100vh - 68px);
}


/* =========================================================
   SIDEBAR INTRO
   ========================================================= */

.sidebar-intro {
    padding: 30px 24px 20px;
}

.sidebar-intro span {
    display: block;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.2px;

    color: #6c4ce8;

    margin-bottom: 6px;
}

.sidebar-intro h2 {
    font-size: 21px;
    font-weight: 750;

    color: #182033;
}


/* =========================================================
   BUILDER STEPS
   ========================================================= */

.builder-steps {
    padding: 0 14px;

    display: flex;
    flex-direction: column;

    gap: 5px;
}


/* STEP BUTTON */

.builder-step {
    width: 100%;

    border: 0;
    background: transparent;

    border-radius: 12px;

    padding: 12px 10px;

    display: flex;
    align-items: center;

    text-align: left;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.builder-step:hover {
    background: #f5f3ff;
}

.builder-step.active {
    background: #f0edff;
}

.builder-step.locked {
    opacity: 0.72;
}


/* STEP CIRCLE */

.step-circle {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border-radius: 50%;

    background: #eef0f5;

    color: #697386;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 800;
}

.builder-step.active .step-circle {
    background: #6c4ce8;
    color: #ffffff;

    box-shadow:
        0 4px 10px rgba(108, 76, 232, 0.22);
}


/* STEP CONTENT */

.step-content {
    margin-left: 12px;

    display: flex;
    flex-direction: column;

    min-width: 0;
}

.step-content strong {
    font-size: 14px;
    font-weight: 700;

    color: #252d3d;
}

.builder-step.active .step-content strong {
    color: #5d3ed1;
}

.step-content small {
    font-size: 11px;

    color: #8b94a5;

    margin-top: 2px;
}


/* =========================================================
   SIDEBAR COMPLETION
   ========================================================= */

.sidebar-completion {
    margin: auto 18px 18px;

    padding: 17px;

    border-radius: 13px;

    background: #f7f8fb;

    border: 1px solid #e8ebf1;
}

.completion-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;
}

.completion-heading strong {
    font-size: 12px;
    color: #374151;
}

.completion-heading span {
    font-size: 12px;
    font-weight: 800;

    color: #6c4ce8;
}

.completion-track {
    width: 100%;
    height: 7px;

    border-radius: 20px;

    background: #e4e7ed;

    overflow: hidden;
}

.completion-fill {
    width: 0%;
    height: 100%;

    background: #6c4ce8;

    border-radius: inherit;

    transition: width 0.35s ease;
}

.sidebar-completion p {
    margin-top: 9px;

    font-size: 11px;
    line-height: 1.5;

    color: #8992a3;
}


/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */

.sidebar-footer {
    padding: 16px 22px 22px;

    display: flex;
    gap: 15px;

    border-top: 1px solid #edf0f4;
}

.sidebar-footer a {
    font-size: 11px;

    color: #8b94a5;

    transition: color 0.2s ease;
}

.sidebar-footer a:hover {
    color: #6c4ce8;
}


/* =========================================================
   CENTER EDITOR
   ========================================================= */

.builder-editor {
    background: #f7f8fb;

    min-width: 0;

    overflow-y: auto;
}

.editor-inner {
    width: 100%;
    max-width: 780px;

    margin: 0 auto;

    padding: 48px 42px 80px;
}


/* =========================================================
   BUILDER SECTION
   ========================================================= */

.builder-section {
    display: none;
}

.builder-section.active {
    display: block;

    animation: sectionFade 0.25s ease;
}

@keyframes sectionFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.section-heading {
    margin-bottom: 30px;
}

.section-label,
.step-label {
    display: inline-block;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.1px;

    color: #6c4ce8;

    margin-bottom: 9px;
}

.section-heading h1,
.builder-section > h1 {
    font-size: 30px;

    line-height: 1.2;

    letter-spacing: -0.7px;

    color: #172033;

    font-weight: 800;

    margin-bottom: 10px;
}

.section-heading p,
.editor-subtitle {
    font-size: 14px;

    color: #737d8e;

    max-width: 620px;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.form-card,
.optional-card,
.section-card {
    background: #ffffff;

    border: 1px solid #e4e7ed;

    border-radius: 14px;

    box-shadow:
        0 2px 8px rgba(20, 30, 50, 0.03);

    padding: 25px;

    margin-bottom: 18px;
}


/* FORM CARD HEADER */

.form-card-header {
    margin-bottom: 22px;
}

.form-card-header h2,
.section-card h2 {
    font-size: 17px;

    font-weight: 750;

    color: #20283a;
}

.form-card-header p {
    margin-top: 4px;

    font-size: 12px;

    color: #929aaa;
}


/* =========================================================
   PROFILE PHOTO
   ========================================================= */

.compact-photo {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 14px;

    margin-bottom: 23px;

    border: 1px solid #e8ebf0;

    background: #fafbfc;

    border-radius: 11px;
}

.compact-photo-preview {
    width: 64px;
    height: 64px;

    border-radius: 10px;

    background: #eeeaff;

    border: 1px solid #ddd7fa;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    flex-shrink: 0;
}

.compact-photo-preview span {
    font-size: 26px;
}

.compact-photo-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: none;
}

.compact-photo-info {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.compact-photo-info strong {
    font-size: 13px;

    color: #293144;
}

.compact-photo-info span {
    font-size: 11px;

    color: #929aaa;
}

.compact-upload-button {
    display: inline-flex;

    width: fit-content;

    margin-top: 5px;

    padding: 7px 12px;

    border-radius: 7px;

    background: #ffffff;

    border: 1px solid #d9dce5;

    color: #5f42cf;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s ease;
}

.compact-upload-button:hover {
    border-color: #6c4ce8;

    background: #f5f2ff;
}


/* =========================================================
   FORM GRID
   ========================================================= */

.form-grid {
    display: grid;

    gap: 18px;
}

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

.full-width {
    grid-column: 1 / -1;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
    min-width: 0;
}

.form-group label {
    display: block;

    font-size: 12px;

    font-weight: 700;

    color: #384154;

    margin-bottom: 7px;
}


/* =========================================================
   INPUTS
   ========================================================= */

.form-group input,
.form-group select,
.form-group textarea,
.section-card input,
.section-card select,
.section-card textarea,
#professionalSummary,
#skillInput {
    width: 100%;

    border: 1px solid #dfe3ea;

    border-radius: 8px;

    background: #ffffff;

    color: #20283a;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input,
.form-group select,
.section-card input,
.section-card select,
#skillInput {
    height: 44px;

    padding: 0 13px;

    font-size: 13px;
}

.form-group textarea,
.section-card textarea,
#professionalSummary {
    padding: 12px 13px;

    font-size: 13px;

    resize: vertical;

    line-height: 1.55;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
#professionalSummary::placeholder,
#skillInput::placeholder {
    color: #b0b6c1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.section-card input:focus,
.section-card select:focus,
.section-card textarea:focus,
#professionalSummary:focus,
#skillInput:focus {
    border-color: #8a72ed;

    box-shadow:
        0 0 0 3px rgba(108, 76, 232, 0.10);

    background: #ffffff;
}


/* =========================================================
   ERROR
   ========================================================= */

.field-error {
    display: block;

    min-height: 16px;

    margin-top: 4px;

    font-size: 10px;

    color: #dc3545;
}


/* =========================================================
   OPTIONAL CARD
   ========================================================= */

.optional-card {
    display: flex;
    flex-direction: column;

    gap: 15px;
}

.optional-card h3 {
    font-size: 14px;

    color: #283144;
}

.optional-card p {
    margin-top: 3px;

    font-size: 11px;

    color: #929aaa;
}

.optional-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}

.optional-info-button {
    height: 37px;

    padding: 0 12px;

    border: 1px solid #dfe2e9;

    background: #ffffff;

    color: #4d5668;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 650;

    transition: all 0.2s ease;
}

.optional-info-button span {
    margin-left: 7px;

    color: #6c4ce8;

    font-size: 15px;
}

.optional-info-button:hover {
    border-color: #a796ed;

    color: #5c40cf;

    background: #f8f6ff;
}

.optional-fields {
    display: grid;

    gap: 12px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.editor-navigation,
.section-actions {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 24px;
}

.secondary-action,
.back-section-btn {
    border: 1px solid #dfe2e8;

    background: #ffffff;

    color: #596274;

    height: 44px;

    padding: 0 17px;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 700;

    transition: all 0.2s ease;
}

.secondary-action:hover,
.back-section-btn:hover {
    border-color: #c8cdd7;

    background: #f9fafb;

    color: #30394b;
}

.continue-section-btn {
    height: 44px;

    border: none;

    padding: 0 20px;

    border-radius: 8px;

    background: #6c4ce8;

    color: #ffffff;

    font-size: 12px;

    font-weight: 750;

    box-shadow:
        0 5px 12px rgba(108, 76, 232, 0.18);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.continue-section-btn:hover {
    background: #5c3ed2;

    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(108, 76, 232, 0.22);
}


/* =========================================================
   EXPERIENCE
   ========================================================= */

.builder-section > h1 {
    margin-bottom: 9px;
}

#experienceList {
    margin-top: 28px;
}

.experience-item {
    position: relative;
}

.card-heading-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.card-heading-row h2 {
    font-size: 17px;

    color: #252e40;
}

.form-row {
    display: grid;

    gap: 16px;

    margin-bottom: 2px;
}

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

.add-entry-btn,
.add-entry-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    height: 43px;

    padding: 0 17px;

    border-radius: 8px;

    border: 1px dashed #b9acef;

    background: #faf9ff;

    color: #6245d4;

    font-size: 12px;

    font-weight: 750;

    transition: all 0.2s ease;
}

.add-entry-btn:hover,
.add-entry-button:hover {
    background: #f1edff;

    border-color: #8e79e5;
}

.remove-entry-btn {
    border: 0;

    background: transparent;

    color: #dc3545;

    font-size: 11px;

    font-weight: 700;

    padding: 6px 8px;

    border-radius: 6px;
}

.remove-entry-btn:hover {
    background: #fff1f2;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.checkbox-group {
    margin: 4px 0 17px;
}

.checkbox-group label {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    font-weight: 600;

    color: #596274;

    cursor: pointer;
}

.checkbox-group input {
    width: 16px;

    height: 16px;

    accent-color: #6c4ce8;
}


/* =========================================================
   EDUCATION
   ========================================================= */

#educationEntries {
    margin-top: 28px;
}

.education-card {
    margin-bottom: 14px;
}

.entry-header {
    display: flex;

    justify-content: space-between;

    margin-bottom: 22px;
}

.entry-header h2 {
    margin-bottom: 3px;
}

.entry-subtitle {
    font-size: 11px;

    color: #969eac;
}

.marks-options {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 2px;
}

.marks-options label {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 12px;

    font-weight: 600;

    color: #596274;

    cursor: pointer;
}

.marks-options input {
    width: 15px;

    height: 15px;

    accent-color: #6c4ce8;
}

.percentage-field,
.cgpa-field {
    margin-top: 4px;
}


/* =========================================================
   SKILLS
   ========================================================= */

.skill-input-row {
    display: grid;

    grid-template-columns: 1fr auto;

    gap: 10px;

    margin-top: 17px;
}

#addSkillButton {
    height: 44px;

    padding: 0 17px;

    border: none;

    border-radius: 8px;

    background: #6c4ce8;

    color: #ffffff;

    font-size: 12px;

    font-weight: 750;

    transition: background 0.2s ease;
}

#addSkillButton:hover {
    background: #5c3ed2;
}

.skills-list {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 17px;
}

.skill-tag {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 7px 10px;

    border-radius: 7px;

    background: #f1eeff;

    color: #5941c3;

    border: 1px solid #ddd6fa;

    font-size: 11px;

    font-weight: 700;
}

.skill-tag button {
    width: 17px;
    height: 17px;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: #755de0;

    font-size: 13px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-tag button:hover {
    background: #ddd6fa;
}


/* =========================================================
   SUMMARY
   ========================================================= */

#professionalSummary {
    min-height: 190px;

    margin-top: 17px;
}

.character-count {
    text-align: right;

    margin-top: 7px;

    font-size: 10px;

    color: #929aaa;
}


/* =========================================================
   FINALIZE
   ========================================================= */

.finalize-card {
    margin-top: 30px;

    padding: 45px 30px;

    background: #ffffff;

    border: 1px solid #e4e7ed;

    border-radius: 15px;

    text-align: center;

    box-shadow:
        0 4px 14px rgba(20, 30, 50, 0.04);
}

.finalize-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 17px;

    border-radius: 50%;

    background: #eeeaff;

    color: #6848df;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;
    font-weight: 800;
}

.finalize-card h2 {
    font-size: 20px;

    color: #222b3c;

    margin-bottom: 7px;
}

.finalize-card p {
    font-size: 12px;

    color: #929aaa;

    margin-bottom: 22px;
}

.download-button {
    height: 46px;

    padding: 0 23px;

    border: none;

    border-radius: 8px;

    background: #6c4ce8;

    color: #ffffff;

    font-size: 12px;

    font-weight: 750;

    box-shadow:
        0 5px 14px rgba(108, 76, 232, 0.20);

    transition: all 0.2s ease;
}

.download-button:hover {
    background: #5c3ed2;

    transform: translateY(-1px);
}


/* =========================================================
   RIGHT PREVIEW
   ========================================================= */

.builder-preview {
    background: #e9ebf0;

    border-left: 1px solid #dfe2e8;

    display: flex;

    flex-direction: column;

    min-width: 0;

    position: sticky;

    top: 68px;

    height: calc(100vh - 68px);
}


/* =========================================================
   PREVIEW HEADER
   ========================================================= */

.preview-header {
    min-height: 73px;

    padding: 16px 22px;

    background: #ffffff;

    border-bottom: 1px solid #dfe2e8;

    display: flex;

    align-items: center;
    justify-content: space-between;
}

.preview-header span {
    display: block;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #6c4ce8;

    margin-bottom: 2px;
}

.preview-header h2 {
    font-size: 16px;

    color: #222b3b;
}


/* =========================================================
   PREVIEW AREA
   ========================================================= */

.preview-area {
    flex: 1;

    overflow-y: auto;

    padding: 28px 25px 35px;

    display: flex;

    justify-content: center;

    align-items: flex-start;
}


/* =========================================================
   RESUME PAGE
   ========================================================= */

.resume-page {
    width: 100%;

    max-width: 390px;

    min-height: 555px;

    background: #ffffff;

    box-shadow:
        0 8px 30px rgba(30, 40, 60, 0.13);

    padding: 30px 30px 35px;

    color: #222222;
}


/* =========================================================
   RESUME HEADER
   ========================================================= */

.resume-header {
    display: flex;

    align-items: center;

    gap: 16px;
}

.resume-photo {
    width: 72px;
    height: 72px;

    flex: 0 0 72px;

    border-radius: 50%;

    overflow: hidden;

    background: #f0f1f4;

    display: flex;
    align-items: center;
    justify-content: center;
}

.resume-photo span {
    font-size: 25px;
}

.resume-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: none;
}

.resume-heading {
    min-width: 0;
}

.resume-heading h1 {
    font-size: 24px;

    line-height: 1.15;

    font-weight: 800;

    color: #182033;

    word-break: break-word;
}

.resume-heading h2 {
    font-size: 12px;

    font-weight: 600;

    color: #6c4ce8;

    margin-top: 4px;

    word-break: break-word;
}

.resume-contact {
    display: flex;

    flex-wrap: wrap;

    gap: 4px 9px;

    margin-top: 8px;
}

.resume-contact span {
    font-size: 8px;

    color: #777f8d;

    word-break: break-word;
}


/* =========================================================
   RESUME DIVIDER
   ========================================================= */

.resume-divider {
    height: 2px;

    background: #6c4ce8;

    margin: 18px 0;
}


/* =========================================================
   RESUME SECTIONS
   ========================================================= */

.resume-section {
    margin-bottom: 18px;
}

.resume-section h3 {
    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #6c4ce8;

    margin-bottom: 8px;
}

.resume-section p {
    font-size: 9px;

    line-height: 1.55;

    color: #505766;
}


/* =========================================================
   EXPERIENCE PREVIEW
   ========================================================= */

.preview-experience-item {
    margin-bottom: 12px;
}

.preview-experience-item:last-child {
    margin-bottom: 0;
}

.preview-job-title {
    font-size: 11px;

    font-weight: 800;

    color: #252c3a;
}

.preview-company {
    font-size: 9px;

    font-weight: 650;

    color: #6c4ce8;

    margin-top: 2px;
}

.preview-meta {
    font-size: 8px;

    color: #8c93a0;

    margin-top: 2px;
}

.preview-description {
    margin-top: 5px;

    white-space: pre-line;
}


/* =========================================================
   EDUCATION PREVIEW
   ========================================================= */

.preview-education-item {
    margin-bottom: 12px;
}

.preview-education-item:last-child {
    margin-bottom: 0;
}

.preview-degree {
    font-size: 11px;

    font-weight: 800;

    color: #252c3a;
}

.preview-school {
    font-size: 9px;

    color: #6c4ce8;

    margin-top: 2px;
}

.preview-education-meta {
    font-size: 8px;

    color: #8c93a0;

    margin-top: 2px;
}

.preview-education-description {
    font-size: 8px;

    line-height: 1.5;

    color: #626a78;

    margin-top: 4px;
}


/* =========================================================
   PREVIEW SKILLS
   ========================================================= */

.preview-skills {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;
}

.preview-skills span {
    padding: 4px 7px;

    border-radius: 4px;

    background: #f0edff;

    border: 1px solid #dfd8fa;

    color: #5840c0;

    font-size: 8px;

    font-weight: 700;
}


/* =========================================================
   PREVIEW FOOTER
   ========================================================= */

.preview-footer {
    min-height: 48px;

    background: #ffffff;

    border-top: 1px solid #dfe2e8;

    padding: 0 20px;

    display: flex;

    align-items: center;
    justify-content: space-between;
}

.preview-footer span {
    font-size: 10px;

    color: #7d8695;
}

.preview-footer a {
    font-size: 10px;

    font-weight: 700;

    color: #6446d3;
}

.preview-footer a:hover {
    color: #4f34bd;
}


/* =========================================================
   TOAST
   ========================================================= */

.toast {
    position: fixed;

    left: 50%;

    bottom: 25px;

    transform: translate(-50%, 20px);

    padding: 11px 18px;

    border-radius: 8px;

    background: #202738;

    color: #ffffff;

    font-size: 12px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15);

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    z-index: 9999;
}

.toast.show {
    opacity: 1;

    transform: translate(-50%, 0);
}


/* =========================================================
   SCROLLBARS
   ========================================================= */

.builder-editor::-webkit-scrollbar,
.preview-area::-webkit-scrollbar,
.builder-sidebar::-webkit-scrollbar {
    width: 7px;
}

.builder-editor::-webkit-scrollbar-track,
.preview-area::-webkit-scrollbar-track,
.builder-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.builder-editor::-webkit-scrollbar-thumb,
.preview-area::-webkit-scrollbar-thumb,
.builder-sidebar::-webkit-scrollbar-thumb {
    background: #cfd3dc;

    border-radius: 20px;
}

.builder-editor::-webkit-scrollbar-thumb:hover,
.preview-area::-webkit-scrollbar-thumb:hover,
.builder-sidebar::-webkit-scrollbar-thumb:hover {
    background: #b8bec9;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .builder-layout {
        grid-template-columns:
            230px
            minmax(450px, 1fr)
            390px;
    }

    .editor-inner {
        padding: 40px 28px 70px;
    }

    .preview-area {
        padding: 22px 18px 30px;
    }

    .resume-page {
        max-width: 360px;
    }
}


/* =========================================================
   RESPONSIVE — SMALL TABLET
   ========================================================= */

@media (max-width: 980px) {

    .builder-layout {
        grid-template-columns:
            220px
            1fr;
    }

    .builder-preview {
        display: none;
    }

    .builder-sidebar {
        position: sticky;
    }

    .editor-inner {
        max-width: 850px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .builder-topbar {
        height: 60px;

        padding: 0 18px;
    }

    .builder-layout {
        display: block;

        min-height: calc(100vh - 60px);
    }


    

    .builder-sidebar {
        position: static;

        height: auto;

        min-height: auto;

        border-right: none;

        border-bottom: 1px solid #e5e8ee;
    }

    .sidebar-intro {
        padding: 20px 18px 12px;
    }

    .sidebar-intro h2 {
        font-size: 18px;
    }

    .builder-steps {
        display: grid;

        grid-template-columns: repeat(3, 1fr);

        padding: 0 12px 14px;

        gap: 5px;
    }

    .builder-step {
        padding: 9px 6px;

        justify-content: center;
    }

    .step-content {
        display: none;
    }

    .step-circle {
        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }

    .sidebar-completion,
    .sidebar-footer {
        display: none;
    }

    .editor-inner {
        padding: 30px 16px 55px;
    }

    .section-heading h1,
    .builder-section > h1 {
        font-size: 25px;
    }

    .form-card,
    .optional-card,
    .section-card {
        padding: 18px;
    }

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

    .full-width {
        grid-column: auto;
    }

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

    #addSkillButton {
        width: 100%;
    }

    .editor-navigation,
    .section-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .secondary-action,
    .back-section-btn,
    .continue-section-btn {
        width: 100%;
    }

    .compact-photo {
        align-items: flex-start;
    }

    .preview-footer {
        display: none;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

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

    .section-heading h1,
    .builder-section > h1 {
        font-size: 23px;
    }

    .compact-photo-preview {
        width: 56px;
        height: 56px;
    }
}


/* =========================================================
   RESUMECRAFT PROFESSIONAL UI OVERRIDES
   Keep the existing builder functionality, but give the
   editor a cleaner SaaS-style layout.
========================================================= */
/* =========================================================
   RESUMECRAFT PROFESSIONAL UI
   FINAL DESIGN OVERRIDES
   ========================================================= */

:root {
    --rc-primary: #0f766e;
    --rc-primary-dark: #115e59;
    --rc-primary-light: #f0fdfa;
    --rc-primary-soft: #ecfdf5;

    --rc-bg: #f5f7fa;
    --rc-card: #ffffff;

    --rc-text: #172033;
    --rc-text-secondary: #475467;
    --rc-text-muted: #667085;

    --rc-border: #e4e7ec;
    --rc-border-dark: #d0d5dd;

    --rc-danger: #dc2626;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.builder-topbar {
    height: 64px;
    padding: 0 24px;

    background: rgba(255, 255, 255, 0.98);

    border-bottom: 1px solid var(--rc-border);

    box-shadow:
        0 1px 3px rgba(16, 24, 40, 0.04);

    z-index: 100;
}

.builder-logo {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.6px;

    color: var(--rc-text);
}

.builder-logo span {
    color: var(--rc-primary);
}


/* =========================================================
   TOP ACTIONS
   ========================================================= */

.builder-top-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 9px;
}

.builder-save-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 7px 10px;

    border-radius: 8px;

    color: var(--rc-text-secondary);

    font-size: 12px;

    background: #f8fafc;

    border: 1px solid #eaecf0;
}

.builder-top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;

    padding: 0 12px;

    border-radius: 8px;

    border: 1px solid var(--rc-border-dark);

    background: #ffffff;

    color: #344054;

    font-size: 12px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.builder-top-link:hover {
    background: #f8fafc;
    border-color: #98a2b3;
}

.builder-top-link.primary {
    background: var(--rc-primary);
    border-color: var(--rc-primary);

    color: #ffffff;
}

.builder-top-link.primary:hover {
    background: var(--rc-primary-dark);
    border-color: var(--rc-primary-dark);
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.builder-layout {
    grid-template-columns:
        238px
        minmax(560px, 1fr)
        500px;

    min-height: calc(100vh - 64px);
}


/* =========================================================
   LEFT SIDEBAR
   ========================================================= */

.builder-sidebar {
    top: 64px;

    height: calc(100vh - 64px);

    min-height: calc(100vh - 64px);

    background: #ffffff;

    border-right: 1px solid var(--rc-border);
}

.sidebar-intro {
    padding: 24px 20px 16px;
}

.sidebar-intro span {
    color: var(--rc-primary);

    font-size: 10px;
    font-weight: 800;
}

.sidebar-intro h2 {
    font-size: 19px;

    color: var(--rc-text);
}


/* =========================================================
   STEPS
   ========================================================= */

.builder-steps {
    padding: 0 12px;

    gap: 3px;
}

.builder-step {
    border-radius: 10px;

    padding: 10px 9px;
}

.builder-step:hover {
    background: #f8fafc;
}

.builder-step.active {
    background: var(--rc-primary-soft);
}

.builder-step.active .step-circle {
    background: var(--rc-primary);

    color: #ffffff;

    box-shadow: none;
}

.builder-step.active .step-content strong {
    color: var(--rc-primary-dark);
}

.step-circle {
    width: 34px;
    height: 34px;

    flex-basis: 34px;

    font-size: 10px;
}

.step-content strong {
    font-size: 13px;
}

.step-content small {
    font-size: 10px;
}


/* =========================================================
   COMPLETION
   ========================================================= */

.sidebar-completion {
    margin: auto 14px 14px;

    padding: 14px;

    border-radius: 11px;

    background: #f8fafc;

    border: 1px solid var(--rc-border);
}

.completion-fill {
    background: var(--rc-primary);
}


/* =========================================================
   EDITOR
   ========================================================= */

.builder-editor {
    background: var(--rc-bg);
}

.editor-inner {
    max-width: 820px;

    padding: 36px 34px 70px;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {
    margin-bottom: 22px;
}

.section-label,
.step-label {
    color: var(--rc-primary);

    font-size: 10px;
}

.section-heading h1,
.builder-section > h1 {
    font-size: 28px;

    letter-spacing: -0.7px;

    color: var(--rc-text);
}

.section-heading p,
.editor-subtitle {
    font-size: 13px;

    color: var(--rc-text-muted);
}


/* =========================================================
   FORM CARDS
   ========================================================= */

.form-card,
.optional-card,
.section-card {
    padding: 22px;

    border-radius: 12px;

    background: var(--rc-card);

    border: 1px solid var(--rc-border);

    box-shadow:
        0 1px 4px rgba(16, 24, 40, 0.03);
}

.form-card-header h2,
.section-card h2 {
    font-size: 16px;
}


/* =========================================================
   FORM LABELS
   ========================================================= */

.form-group label {
    font-size: 11px;

    color: #344054;
}


/* =========================================================
   INPUTS
   ========================================================= */

.form-group input,
.form-group select,
.form-group textarea,
.section-card input,
.section-card select,
.section-card textarea,
#professionalSummary,
#skillInput {
    border-color: var(--rc-border-dark);

    border-radius: 8px;

    color: var(--rc-text);

    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.section-card input:focus,
.section-card select:focus,
.section-card textarea:focus,
#professionalSummary:focus,
#skillInput:focus {
    border-color: var(--rc-primary);

    box-shadow:
        0 0 0 3px rgba(15, 118, 110, 0.10);
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.checkbox-group {
    margin: 8px 0 17px;
}

.checkbox-group label {
    width: fit-content;

    padding: 9px 11px;

    border: 1px solid var(--rc-border-dark);

    border-radius: 8px;

    background: #ffffff;

    color: var(--rc-text-secondary);
}

.checkbox-group label:hover {
    border-color: #98a2b3;

    background: #f8fafc;
}

.checkbox-group input {
    width: 16px !important;
    height: 16px !important;

    min-height: 16px !important;

    accent-color: var(--rc-primary);
}


/* =========================================================
   EDUCATION MARKS
   ========================================================= */

.marks-options {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 4px;
}

.marks-options label {
    margin: 0;

    padding: 8px 11px;

    border: 1px solid var(--rc-border-dark);

    border-radius: 8px;

    background: #ffffff;
}

.marks-options label:has(input:checked) {
    border-color: var(--rc-primary);

    background: var(--rc-primary-soft);

    color: var(--rc-primary-dark);
}

.marks-options input {
    width: 15px !important;
    height: 15px !important;

    min-height: 15px !important;

    accent-color: var(--rc-primary);
}


/* =========================================================
   ADD ENTRY BUTTONS
   ========================================================= */

.add-entry-btn,
.add-entry-button {
    border-radius: 8px;

    border-color: #b2ddda;

    background: #f0fdfa;

    color: var(--rc-primary-dark);
}

.add-entry-btn:hover,
.add-entry-button:hover {
    background: #ccfbf1;

    border-color: #80cbc4;
}


/* =========================================================
   PRIMARY BUTTONS
   ========================================================= */

.continue-section-btn,
.primary-action,
#addSkillButton,
.download-button {
    background: var(--rc-primary);

    border-color: var(--rc-primary);

    color: #ffffff;
}

.continue-section-btn:hover,
.primary-action:hover,
#addSkillButton:hover,
.download-button:hover {
    background: var(--rc-primary-dark);

    border-color: var(--rc-primary-dark);
}


/* =========================================================
   SKILLS
   ========================================================= */

.skill-tag {
    background: var(--rc-primary-soft);

    border-color: #b2ddda;

    color: var(--rc-primary-dark);
}

.skill-tag button {
    color: var(--rc-primary-dark);
}

.skill-tag button:hover {
    background: #ccfbf1;
}


/* =========================================================
   RIGHT PREVIEW
   ========================================================= */

.builder-preview {
    top: 64px;

    height: calc(100vh - 64px);

    background: #eef2f4;

    border-left: 1px solid #dfe3e8;
}


/* =========================================================
   PREVIEW HEADER
   ========================================================= */

.preview-header {
    min-height: 68px;

    padding: 13px 18px;
}

.preview-header span {
    color: var(--rc-primary);
}

.preview-header h2 {
    font-size: 15px;
}


/* =========================================================
   PREVIEW AREA
   ========================================================= */

.preview-area {
    padding: 24px 20px 32px;
}


/* =========================================================
   RESUME PREVIEW
   ========================================================= */

.resume-divider {
    background: var(--rc-primary);
}

.resume-heading h2 {
    color: var(--rc-primary);
}

.resume-section h3 {
    color: var(--rc-primary);
}

.preview-company,
.preview-school {
    color: var(--rc-primary);
}

.preview-skills span {
    background: var(--rc-primary-soft);

    border-color: #b2ddda;

    color: var(--rc-primary-dark);
}


/* =========================================================
   PREVIEW FOOTER
   ========================================================= */

.preview-footer {
    min-height: 44px;

    padding: 0 16px;
}

.preview-footer a {
    color: var(--rc-primary-dark);
}


/* =========================================================
   RESPONSIVE — LAPTOP
   ========================================================= */

@media (max-width: 1280px) {

    .builder-layout {
        grid-template-columns:
            220px
            minmax(500px, 1fr)
            430px;
    }

}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1080px) {

    .builder-layout {
        grid-template-columns:
            220px
            1fr;
    }

    .builder-preview {
        display: none;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 720px) {

    .builder-topbar {
        height: 60px;

        padding: 0 14px;
    }

    .builder-top-actions {
        gap: 5px;
    }

    .builder-save-status {
        display: none;
    }

    .builder-top-link {
        min-height: 34px;

        padding: 0 9px;

        font-size: 11px;
    }

    .builder-layout {
        display: block;

        min-height: calc(100vh - 60px);
    }

    .builder-sidebar {
        position: static;

        height: auto;

        min-height: auto;
    }

    .editor-inner {
        padding: 28px 14px 55px;
    }

}
