/* =========================================================
   GLOBAL
   ========================================================= */

:root {
    --bg: #f5f8ff;
    --surface: #ffffff;
    --surface-soft: #f8faff;
    --card: #ffffff;
    --muted: #667085;
    --input-bg: #f8faff;

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;

    --text: #172033;
    --text-soft: #667085;
    --border: #dbe3f0;

    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;

    --shadow: 0 20px 50px rgba(37, 99, 235, 0.10);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

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

button {
    cursor: pointer;
}

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


/* =========================================================
   DARK MODE
   ========================================================= */

html.dark-mode {
    --bg: #07111f;
    --surface: #0d1b2d;
    --surface-soft: #12243a;
    --card: #0d1b2d;
    --muted: #9caec4;
    --input-bg: #101a2e;

    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-light: #17345a;

    --text: #f1f5f9;
    --text-soft: #9caec4;
    --border: #243852;

    --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

html.dark-mode body {
    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.13),
            transparent 30%
        ),
        var(--bg);
}


/* =========================================================
   THEME BUTTON
   ========================================================= */

.theme-toggle,
.theme-btn {
    position: fixed;
    top: 18px;
    right: 28px;
    z-index: 1000;

    border: 1px solid var(--border);
    background: var(--surface);

    color: var(--text);

    padding: 10px 17px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;

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

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.theme-toggle:hover,
.theme-btn:hover {
    transform: translateY(-2px);
}


/* =========================================================
   TOP HEADER
   ========================================================= */

.top-header {
    position: relative;
    z-index: 10;

    width: 100%;
    padding: 14px 32px;

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

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

    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
}

html.dark-mode .top-header {
    background: rgba(7, 17, 31, 0.82);
}

.top-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-brand-icon {
    width: 42px;
    height: 42px;

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

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #60a5fa
    );

    color: white;

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

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.25);
}

.top-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.top-brand-text strong {
    font-size: 24px;
    font-weight: 750;
}

.top-brand-text span {
    font-size: 14px;
    color: var(--text-soft);
}


/* =========================================================
   SETUP PAGE
   ========================================================= */

.setup-page {
    position: relative;
    min-height: calc(100vh - 87px);

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 70px 20px 35px;

    overflow: hidden;
}


/* =========================================================
   DECORATIVE BACKGROUND
   ========================================================= */

.decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
    z-index: 0;
}

.decor-one {
    width: 420px;
    height: 420px;

    top: -150px;
    left: -150px;

    background: rgba(37, 99, 235, 0.08);
}

.decor-two {
    width: 350px;
    height: 350px;

    right: -120px;
    bottom: -120px;

    background: rgba(96, 165, 250, 0.08);
}


/* =========================================================
   SETUP INTRO
   ========================================================= */

.setup-intro {
    position: relative;
    z-index: 1;

    text-align: center;

    max-width: 720px;
    margin-bottom: 34px;
}

.brand-badge {
    width: 58px;
    height: 58px;

    margin: 0 auto 18px;

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

    border-radius: 16px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #60a5fa
    );

    color: white;

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

    box-shadow:
        0 12px 30px rgba(37, 99, 235, 0.28);
}

.setup-intro h1 {
    margin: 0;

    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.1;

    letter-spacing: -1.8px;
    font-weight: 800;
}

.setup-intro h1 span {
    background: linear-gradient(
        90deg,
        #2563eb,
        #60a5fa
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.setup-intro h2 {
    margin: 13px 0 8px;

    font-size: 21px;
    font-weight: 650;

    color: var(--text);
}

.setup-intro p {
    margin: 0;

    color: var(--text-soft);
    font-size: 15px;
}


/* =========================================================
   SETUP CARD
   ========================================================= */

.setup-card {
    position: relative;
    z-index: 2;

    width: min(760px, 100%);

    padding: 32px;

    background: var(--surface);

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

    border-radius: 22px;

    box-shadow: var(--shadow);

    transition:
        background 0.3s ease,
        border 0.3s ease;
}

.setup-card-header {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 28px;
}

.setup-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

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

    border-radius: 14px;

    background: var(--primary-light);

    font-size: 22px;
}

.setup-card-header h3 {
    margin: 0 0 4px;

    font-size: 20px;
    font-weight: 750;
}

.setup-card-header p {
    margin: 0;

    color: var(--text-soft);
    font-size: 13px;
}


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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 22px 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 650;

    color: var(--text);
}


/* =========================================================
   INPUT WITH ICON
   ========================================================= */

.input-with-icon {
    position: relative;

    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;

    z-index: 2;

    width: 22px;

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

    color: var(--primary);

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

    pointer-events: none;
}

.number-icon {
    font-size: 17px;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;

    min-height: 48px;

    padding: 0 15px 0 43px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface-soft);

    color: var(--text);

    outline: none;

    font-size: 14px;

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

.input-with-icon input::placeholder {
    color: var(--text-soft);
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10);

    background: var(--surface);
}

.input-with-icon select {
    appearance: auto;
}


/* =========================================================
   GENERATE BUTTON
   ========================================================= */

.generate-btn {
    width: 100%;

    min-height: 54px;

    margin-top: 28px;

    border: none;
    border-radius: 13px;

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

    gap: 10px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );

    color: white;

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

    box-shadow:
        0 12px 25px rgba(37, 99, 235, 0.22);

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

.generate-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 30px rgba(37, 99, 235, 0.30);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-icon {
    font-size: 16px;
}

.generate-arrow {
    margin-left: 4px;

    font-size: 19px;

    transition: transform 0.2s ease;
}

.generate-btn:hover .generate-arrow {
    transform: translateX(4px);
}

.generate-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}


/* =========================================================
   STATUS
   ========================================================= */

.status {
    min-height: 22px;

    margin-top: 14px;

    text-align: center;

    font-size: 13px;
    color: var(--text-soft);
}

.tab-warning-banner {
    display: none;

    margin-top: 12px;
    margin-bottom: 8px;
    padding: 10px 14px;

    border-radius: 12px;
    border: 1px solid rgba(217, 119, 6, 0.4);

    background: rgba(217, 119, 6, 0.12);
    color: #7c4a00;

    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.tab-warning-banner.visible {
    display: block;
}

.tab-warning-banner.danger {
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(220, 38, 38, 0.10);
    color: #991b1b;
}

.status.error {
    color: var(--danger);
}

.status.success {
    color: var(--success);
}


/* =========================================================
   SETUP FOOTER
   ========================================================= */

.setup-footer {
    position: relative;
    z-index: 2;

    margin-top: 28px;

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

    flex-wrap: wrap;
    gap: 8px;

    color: var(--text-soft);

    font-size: 12px;
}

.setup-footer b {
    font-weight: 400;
    opacity: 0.55;
}


/* =========================================================
   INTERVIEW PAGE
   ========================================================= */

.page {
    min-height: 100vh;
    padding: 80px 20px 40px;

    display: flex;
    justify-content: center;

    background: var(--bg);
}

.interview-container {
    width: min(900px, 100%);
}

.interview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}

.interview-header h1 {
    margin: 0;

    font-size: 30px;
}

.subject-info,
#subjectInfo {
    color: var(--text-soft);
    font-size: 14px;
}

.progress-container {
    margin-bottom: 24px;
}

.progress-info {
    display: flex;
    justify-content: space-between;

    margin-bottom: 8px;

    color: var(--text-soft);
    font-size: 13px;
}

.progress-bar {
    width: 100%;
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: var(--border);
}

.progress-fill {
    height: 100%;

    width: 0%;

    border-radius: inherit;

    background: linear-gradient(
        90deg,
        #2563eb,
        #60a5fa
    );

    transition: width 0.3s ease;
}

.question-card {
    background: var(--surface);

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

    border-radius: 20px;

    padding: 30px;

    box-shadow: var(--shadow);
}

.question-number {
    color: var(--primary);

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

    margin-bottom: 10px;
}

.question-text {
    font-size: 23px;
    line-height: 1.45;

    margin-bottom: 24px;
}


/* =========================================================
   MCQ
   ========================================================= */

.mcq-options {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.mcq-option {
    width: 100%;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 15px 18px;

    text-align: left;

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

    border-radius: 12px;

    background: var(--surface-soft);

    color: var(--text);

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

.mcq-letter {
    min-width: 28px;
    font-weight: 800;
    color: var(--primary);
}

.mcq-option-text {
    flex: 1;
    line-height: 1.5;
}

.mcq-option:hover {
    border-color: var(--primary);

    transform: translateY(-1px);
}

.mcq-option.selected {
    border-color: var(--primary);

    background: var(--primary-light);
}


/* =========================================================
   ANSWER AREA
   ========================================================= */

.answer-box,
#answerBox {
    width: 100%;

    min-height: 140px;

    padding: 15px;

    resize: vertical;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface-soft);

    color: var(--text);

    outline: none;
}

.answer-box:focus,
#answerBox:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10);
}


/* =========================================================
   LIVE TRANSCRIPTION
   ========================================================= */

#liveTranscription {
    margin-top: 14px;

    padding: 13px 15px;

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

    border-radius: 12px;

    background: var(--surface-soft);
}

#liveTranscriptionText {
    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   INTERVIEW CONTROLS
   ========================================================= */

.interview-controls,
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 22px;
}

.primary-btn,
.secondary-btn,
.record-btn,
.next-btn,
.prev-btn,
.finish-btn {
    border: none;

    border-radius: 11px;

    padding: 11px 18px;

    font-size: 13px;
    font-weight: 650;
}

.primary-btn,
.record-btn,
.next-btn,
.finish-btn {
    background: var(--primary);
    color: white;
}

.secondary-btn,
.prev-btn {
    background: var(--surface-soft);

    color: var(--text);

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

.primary-btn:hover,
.record-btn:hover,
.next-btn:hover,
.finish-btn:hover {
    background: var(--primary-dark);
}

.secondary-btn:hover,
.prev-btn:hover {
    border-color: var(--primary);
}


/* =========================================================
   AUDIO / MIC
   ========================================================= */

.audio-preview {
    width: 100%;

    margin-top: 15px;
}

.mic-level-box {
    margin-top: 12px;
}

.mic-level {
    height: 5px;

    width: 0%;

    border-radius: 999px;

    background: var(--primary);

    transition: width 0.1s linear;
}

#status {
    line-height: 1.5;
}


/* =========================================================
   REPORT PAGE
   ========================================================= */

.report-container {
    width: min(1000px, 100%);
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.small-label {
    margin-bottom: 8px;

    color: var(--primary);

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

    letter-spacing: 1.2px;
}

.report-header h1 {
    margin: 0;

    font-size: 34px;
}

.report-subtitle {
    margin-top: 8px;

    color: var(--text-soft);

    font-size: 14px;
}


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

.summary-grid {
    display: grid;

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

    gap: 16px;

    margin-bottom: 34px;
}

.summary-card {
    padding: 22px;

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

    border-radius: 16px;

    background: var(--surface);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.04);
}

.summary-card span {
    display: block;

    margin-bottom: 8px;

    color: var(--text-soft);

    font-size: 13px;
}

.summary-card strong {
    font-size: 26px;
}


/* =========================================================
   REPORT QUESTIONS
   ========================================================= */

.report-container h2 {
    margin-bottom: 18px;

    font-size: 21px;
}

.report-questions {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.report-question-card {
    padding: 22px;

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

    border-radius: 16px;

    background: var(--surface);
}

.report-question-card h3 {
    margin: 0 0 12px;

    font-size: 16px;
    line-height: 1.5;
}

.report-question-card p {
    margin: 7px 0;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.6;
}

.score {
    display: inline-flex;

    align-items: center;

    margin-top: 12px;

    padding: 7px 12px;

    border-radius: 999px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 13px;
    font-weight: 750;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .top-header {
        padding: 18px 20px;
    }

    .theme-toggle {
        position: absolute;

        top: 6px;
        right: 20px;

        font-size: 12px;

        padding: 8px 12px;
    }

    .top-brand {
        padding-right: 130px;
    }

    .top-brand-text span {
        display: none;
    }

    .setup-page {
        padding-top: 48px;
    }

    .setup-intro h1 {
        font-size: 40px;
    }

    .setup-card {
        padding: 24px 20px;
    }

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

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

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

    .report-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .interview-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .interview-controls,
    .controls {
        flex-wrap: wrap;
    }
}


@media (max-width: 480px) {

    .setup-intro h1 {
        font-size: 34px;
    }

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

    .setup-card-header {
        align-items: flex-start;
    }

    .setup-footer {
        text-align: center;
    }

    .question-card {
        padding: 20px;
    }

    .question-text {
        font-size: 19px;
    }

    .page {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* =====================================================
   FINAL REPORT PAGE
   ===================================================== */

.report-page {
    --bg: #f5f8ff;
    --card: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f8faff;
    --text: #031233;
    --text-soft: #53627a;
    --muted: #667085;
    --border: #dbe3f0;

    min-height: 100vh;
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(37, 99, 235, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 30%,
            rgba(59, 130, 246, 0.06),
            transparent 28%
        ),
        var(--bg);
}


/* =====================================================
   REPORT WRAPPER
   ===================================================== */

.report-wrapper {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 46px 0 70px;
}


/* =====================================================
   REPORT HEADER
   ===================================================== */

/* ================================
   REPORT HEADER
================================ */

.top-header {
    width: 100%;
    height: 92px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card, #ffffff);
    border-bottom: 1px solid #dce5f5;
    box-sizing: border-box;
}

/* Left side */
.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-brand-icon {
    width: 75px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.top-brand-icon img {
    width: 75px;
    height: 65px;
    object-fit: contain;
}

/* Brand text */
.brand-text h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.brand-text p {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--text-soft);
}

/* ================================
   RIGHT SIDE BUTTONS
================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}


.report-page .theme-btn {
    position: static;
    z-index: auto;
}

/* Dark Mode */
.theme-btn {
    height: 42px;
    padding: 0 20px;
    border: 1px solid #d7e1f0;
    border-radius: 24px;
    background: #ffffff;
    color: #17233c;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    background: #f1f5ff;
    transform: translateY(-1px);
}

/* Logout */
.logout-btn {
    height: 42px;
    padding: 0 22px;
    border: 1px solid #e53935;
    border-radius: 8px;
    background: #ffffff;
    color: #d62828;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #d62828;
    color: #ffffff;
    transform: translateY(-1px);
}

/* =====================================================
   NEW INTERVIEW
   ===================================================== */

.new-interview-btn {
    padding: 14px 22px;
    border-radius: 12px;
    border: 2px solid #2563eb;
    background: transparent;
    color: #2563eb;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s ease;
}


.new-interview-btn:hover {
    background: #2563eb;
    color: white;
}


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

.summary-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 34px;
}


.summary-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;

    padding: 24px;

    display: flex;
    align-items: center;
    gap: 18px;

    box-shadow:
        0 8px 25px rgba(
            15,
            23,
            42,
            0.05
        );
}


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

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: #e8f0ff;
    color: #2563eb;

    font-size: 25px;
}


.summary-icon.success {
    background: #dcfce7;
    color: #16a34a;
}


.summary-card span {
    display: block;

    color: var(--muted);

    font-size: 14px;

    margin-bottom: 5px;
}


.summary-card strong {
    display: block;

    font-size: 29px;

    color: var(--text);
}


/* =====================================================
   PERFORMANCE
   ===================================================== */

.performance-section {
    background: var(--card);

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

    border-radius: 18px;

    padding: 28px;

    box-shadow:
        0 10px 35px rgba(
            15,
            23,
            42,
            0.05
        );
}


.performance-section > h2 {
    margin: 0 0 25px;

    font-size: 27px;

    color: var(--text);
}


/* =====================================================
   QUESTION CARD
   ===================================================== */

.question-report-card {
    border: 1px solid var(--border);

    border-radius: 15px;

    padding: 25px;

    margin-bottom: 22px;

    background: var(--card);

    overflow: hidden;
}


.question-report-card:last-child {
    margin-bottom: 0;
}


.question-report-header {
    display: grid;

    grid-template-columns:
        70px minmax(0, 1fr) auto;

    align-items: start;

    gap: 18px;

    margin-bottom: 25px;
}


.question-number-badge {
    width: 54px;
    height: 54px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: #e4efff;

    color: #2563eb;

    font-weight: 800;

    font-size: 20px;
}


.question-report-title {
    color: var(--text);

    font-size: 17px;

    font-weight: 700;

    line-height: 1.55;

    padding-top: 7px;

    word-break: break-word;
}


.question-score-area {
    display: flex;

    align-items: center;

    gap: 10px;
}


.result-badge {
    padding: 9px 14px;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;
}


.result-badge.correct {
    color: #15803d;

    background: #dcfce7;

    border: 1px solid #bbf7d0;
}


.result-badge.needs-work {
    color: #b45309;

    background: #fef3c7;

    border: 1px solid #fde68a;
}


.score-badge {
    padding: 9px 13px;

    border-radius: 9px;

    color: #2563eb;

    background: #e8f0ff;

    font-weight: 800;

    font-size: 15px;
}


/* =====================================================
   DETAILS
   ===================================================== */

.answer-section {
    margin-top: 5px;
}


.detail-label {
    color: var(--text);

    font-weight: 800;

    font-size: 14px;

    margin-bottom: 5px;
}


.detail-value {
    color: var(--muted);

    margin-bottom: 20px;

    font-size: 15px;
}


.option-label {
    margin-top: 8px;
}


.selected-answer-box,
.candidate-answer-box {
    margin-top: 9px;

    padding: 16px 18px;

    border-radius: 11px;

    background: #edf6ff;

    border: 1px solid #d7e9ff;

    color: var(--text);

    line-height: 1.6;

    font-size: 15px;
}


/* =====================================================
   FEEDBACK
   ===================================================== */

.feedback-box {
    margin-top: 18px;

    padding: 18px 20px;

    border-radius: 12px;

    background: #ecfdf3;

    border: 1px solid #d1fae5;
}


.feedback-title {
    color: #15803d;

    font-weight: 800;

    margin-bottom: 8px;
}


.feedback-box p,
.ideal-box p {
    margin: 0;

    color: var(--text);

    line-height: 1.65;

    font-size: 15px;
}


/* =====================================================
   IDEAL ANSWER
   ===================================================== */

.ideal-box {
    margin-top: 18px;

    padding: 18px 20px;

    border-radius: 12px;

    background: #f3edff;

    border: 1px solid #e9d5ff;
}


.ideal-title {
    color: #6d28d9;

    font-weight: 800;

    margin-bottom: 8px;
}


/* =====================================================
   BOTTOM BUTTON
   ===================================================== */

.start-new-btn {
    width: 100%;

    margin-top: 28px;

    padding: 19px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            100deg,
            #2563eb,
            #3b82f6
        );

    color: white;

    font-size: 17px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(
            37,
            99,
            235,
            0.22
        );

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


.start-new-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(
            37,
            99,
            235,
            0.3
        );
}


.start-new-btn span {
    margin-left: 10px;

    font-size: 21px;
}


/* =====================================================
   EMPTY
   ===================================================== */

.empty-report {
    padding: 40px;

    text-align: center;

    color: var(--muted);

    border: 1px dashed var(--border);

    border-radius: 12px;
}


/* =====================================================
   DARK MODE
   ===================================================== */

[data-theme="dark"] .report-page {
    --bg: #07111f;
    --card: #0d1b2d;
    --surface: #0d1b2d;
    --surface-soft: #12243a;
    --text: #f1f5f9;
    --text-soft: #9caec4;
    --muted: #9caec4;
    --border: #243852;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(37, 99, 235, 0.15),
            transparent 30%
        ),
        var(--bg);
}


[data-theme="dark"] .summary-icon {
    background: #172554;
}


[data-theme="dark"] .summary-icon.success {
    background: #052e16;
}


[data-theme="dark"] .selected-answer-box,
[data-theme="dark"] .candidate-answer-box {
    background: #172033;

    border-color: #263653;
}


[data-theme="dark"] .feedback-box {
    background: #092719;

    border-color: #14532d;
}


[data-theme="dark"] .ideal-box {
    background: #21163a;

    border-color: #4c1d95;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 850px) {

    .top-header {
        height: auto;
        min-height: 92px;
        padding-top: 16px;
        padding-bottom: 16px;
        gap: 16px;
        flex-wrap: wrap;
    }


    .header-left {
        min-width: 0;
        flex: 1 1 280px;
    }


    .header-actions {
        flex: 0 1 auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .report-header {
        align-items: flex-start;

        flex-direction: column;
    }


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


    .question-report-header {
        grid-template-columns:
            55px minmax(0, 1fr);
    }


    .question-score-area {
        grid-column: 2;

        justify-content: flex-start;
    }

}


@media (max-width: 600px) {

    .top-header {
        align-items: stretch;
    }


    .header-left {
        flex-basis: 100%;
    }


    .brand-text {
        min-width: 0;
    }


    .brand-text h1,
    .brand-text p {
        overflow-wrap: anywhere;
    }


    .header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }


    .theme-btn,
    .logout-btn {
        width: 100%;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    .report-wrapper {
        width: 94%;

        padding-top: 28px;
    }


    .report-header h1 {
        font-size: 30px;
    }


    .performance-section {
        padding: 18px;
    }


    .question-report-card {
        padding: 17px;
    }


    .question-report-header {
        grid-template-columns: 48px 1fr;
    }


    .question-number-badge {
        width: 45px;
        height: 45px;

        font-size: 17px;
    }


    .question-report-title {
        font-size: 15px;
    }


    .question-score-area {
        grid-column: 1 / -1;
    }

}


/* =====================================================
   BOTTOM HANDWRITTEN MOTIVATIONAL QUOTES
   ===================================================== */

.motivation-left,
.motivation-right {
    position: fixed;
    z-index: 9999;

    font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;

    font-size: 19px;
    font-weight: 500;

    line-height: 1.35;

    letter-spacing: 0.3px;

    pointer-events: none;

    color: #54739d;
}

/* LEFT SIDE */

.motivation-left {
    left: 30px;
    bottom: 35px;

    text-align: left;

    transform: rotate(-6deg);
}

/* RIGHT SIDE */

.motivation-right {
    right: 32px;
    bottom: 32px;

    text-align: center;

    transform: rotate(5deg);
}

/* HANDWRITTEN UNDERLINE */

.motivation-left span,
.motivation-right span {
    display: block;

    width: 70px;
    height: 2px;

    margin-top: 6px;
    margin-left: 4px;

    background: currentColor;

    border-radius: 50%;

    transform: rotate(-4deg) skewX(-18deg);
}

/* RIGHT UNDERLINE */

.motivation-right span {
    margin-left: auto;
    margin-right: auto;

    transform: rotate(4deg) skewX(-18deg);
}


/* =========================
   DARK MODE
   ========================= */

html.dark-mode .motivation-left,
html.dark-mode .motivation-right,
body.dark .motivation-left,
body.dark .motivation-right {
    color: #2e79f1;
}


/* =========================
   SMALL SCREEN
   ========================= */

@media (max-width: 800px) {

    .motivation-left,
    .motivation-right {
        font-size: 15px;
    }

    .motivation-left {
        left: 15px;
        bottom: 20px;
    }

    .motivation-right {
        right: 15px;
        bottom: 18px;
    }
}

@media (max-width: 600px) {

    .motivation-left,
    .motivation-right {
        display: none;
    }
}





/* =========================================================
   EXTRA THIN WAVY LINES
   ========================================================= */

.page {
    position: relative;
    z-index: 1;
}


/* Light mode */
body:not(.dark-mode)::after {
    box-shadow:
        0 -18px 0 -17px rgba(37, 99, 235, 0.07),
        0 -36px 0 -35px rgba(37, 99, 235, 0.045);
}


/* Dark mode */
html.dark-mode body::before {
    border-color: rgba(59, 130, 246, 0.13);
}

html.dark-mode body::after {
    border-color: rgba(59, 130, 246, 0.15);

    box-shadow:
        0 -18px 0 -17px rgba(59, 130, 246, 0.09),
        0 -36px 0 -35px rgba(59, 130, 246, 0.055);
}


/* =========================================================
   FINAL BOTTOM DECORATION
   ========================================================= */

body {
    position: relative;
    overflow-x: hidden;
}

/* ---------- Large curved waves ---------- */

.bottom-waves {
    position: fixed;
    left: -10%;
    bottom: -120px;

    width: 120%;
    height: 420px;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;
}

.bottom-waves .wave {
    position: absolute;

    left: 0;

    width: 100%;
    height: 360px;

    border: 1.5px solid rgba(37, 99, 235, 0.13);

    border-radius: 50%;

    transform: rotate(-2deg);
}

.bottom-waves .wave-one {
    bottom: -245px;
}

.bottom-waves .wave-two {
    bottom: -270px;

    border-color: rgba(37, 99, 235, 0.08);
}

.bottom-waves .wave-three {
    bottom: -295px;

    border-color: rgba(37, 99, 235, 0.045);
}


/* =========================================================
   LEFT: BETTER ANSWERS
   ========================================================= */

.motivation-left {
    position: fixed !important;

    left: 32px !important;
    right: auto !important;

    bottom: 45px !important;

    z-index: 50 !important;

    color: #5579a8;

    font-family:
        "Segoe Print",
        "Bradley Hand",
        "Comic Sans MS",
        cursive;

    font-size: 18px;

    line-height: 1.32;

    font-weight: 500;

    text-align: left;

    transform: rotate(-7deg);

    pointer-events: none;
}

.motivation-left span {
    display: block;

    width: 72px;
    height: 2px;

    margin-top: 6px;

    background: currentColor;

    border-radius: 50%;

    transform: rotate(-5deg);
}


/* =========================================================
   RIGHT: YOU CAN DO IT
   ========================================================= */

.motivation-right {
    position: fixed !important;

    right: 145px !important;
    left: auto !important;

    bottom: 155px !important;

    z-index: 50 !important;

    color: #5579a8;

    font-family:
        "Segoe Print",
        "Bradley Hand",
        "Comic Sans MS",
        cursive;

    font-size: 18px;

    line-height: 1.32;

    font-weight: 500;

    text-align: center;

    transform: rotate(5deg);

    pointer-events: none;
}

.motivation-right span {
    display: block;

    width: 65px;
    height: 2px;

    margin: 7px auto 0;

    background: currentColor;

    border-radius: 50%;

    transform: rotate(4deg);
}


/* =========================================================
   RIGHT BOTTOM: KEEP GOING
   ========================================================= */

.keep-going {
    position: fixed !important;

    right: 30px !important;
    left: auto !important;

    bottom: 28px !important;

    width: 115px;
    height: 115px;

    z-index: 50 !important;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: #5579a8;

    font-family:
        "Segoe Print",
        "Bradley Hand",
        "Comic Sans MS",
        cursive;

    font-size: 17px;

    line-height: 1.15;

    font-weight: 500;

    text-align: center;

    border: 1.5px dashed rgba(37, 99, 235, 0.28);

    border-radius: 50%;

    transform: rotate(-4deg);

    pointer-events: none;
}

.keep-going .heart {
    font-family: Arial, sans-serif;

    font-size: 25px;

    margin-bottom: 4px;
}

.keep-going .arrow {
    position: absolute;

    right: 5px;
    bottom: 5px;

    font-family: Arial, sans-serif;

    font-size: 27px;

    transform: rotate(-10deg);
}


/* =========================================================
   DARK MODE
   ========================================================= */

html.dark-mode .motivation-left,
html.dark-mode .motivation-right,
html.dark-mode .keep-going {
    color: #3988ff;
}

html.dark-mode .keep-going {
    border-color: rgba(59, 130, 246, 0.45);
}

html.dark-mode .bottom-waves .wave-one {
    border-color: rgba(59, 130, 246, 0.35);
}

html.dark-mode .bottom-waves .wave-two {
    border-color: rgba(59, 130, 246, 0.18);
}

html.dark-mode .bottom-waves .wave-three {
    border-color: rgba(59, 130, 246, 0.09);
}


/* =========================================================
   KEEP UI ABOVE DECORATIONS
   ========================================================= */

.top-header,
.setup-page,
.setup-card,
.setup-footer,
.theme-toggle {
    position: relative;
    z-index: 10;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .motivation-left,
    .motivation-right,
    .keep-going {
        display: none !important;
    }

    .bottom-waves {
        height: 260px;
        bottom: -170px;
    }
}

/* ==============================
   TECHNOKRI LOGO
   ============================== */

/* Top Header Logo */
.top-brand-icon {
    width: 154px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    flex-shrink: 0;
}

.top-brand-icon img {
    width: 154px;
    height: 55px;
    object-fit: contain;
    display: block;
}


/* Center Hero Logo */
.brand-badge {
    width: 220px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin: 0 auto 10px;
}

.brand-badge img {
    width: 220px;
    height: 76px;
    object-fit: contain;
    display: block;
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-header {
    height: 82px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-logo {
    width: 154px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo img,
.login-main-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-brand-text {
    display: flex;
    flex-direction: column;
}

.login-brand-text strong {
    font-size: 16px;
}

.login-brand-text span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.login-header .theme-toggle {
    position: static;
    padding: 10px 18px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    border-radius: 25px;
    box-shadow: 0 5px 18px rgba(40, 80, 150, 0.08);
}

.login-page {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 5% 42px;
    position: relative;
    overflow: hidden;
}

.login-layout {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(400px, 440px) minmax(180px, 1fr);
    align-items: center;
    gap: 42px;
    position: relative;
    z-index: 2;
}

.login-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(50, 110, 235, 0.08);
    pointer-events: none;
}

.decoration-one {
    width: 300px;
    height: 300px;
    left: -150px;
    top: 20px;
}

.decoration-two {
    width: 240px;
    height: 240px;
    right: -120px;
    bottom: 10px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 36px 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(40, 80, 150, 0.12);
    position: relative;
    z-index: 2;
    text-align: center;
}

.login-side {
    color: #15438e;
    position: relative;
}

.login-side h2 {
    margin: 0;
    color: #8da1c2;
    font-family: "Segoe Print", "Bradley Hand", cursive;
    font-size: clamp(25px, 2.5vw, 38px);
    font-weight: 600;
    line-height: 1.25;
    transform: rotate(-4deg);
}

.login-side-left {
    padding-left: 12px;
}

.login-side-left h2 {
    border-bottom: 3px solid #2585e8;
    padding-bottom: 10px;
    width: max-content;
}

.login-benefits {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px 10px;
    margin-top: 42px;
    color: var(--muted);
    font-size: 15px;
}

.login-benefits span:nth-child(odd) {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-light);
    font-size: 19px;
}

.login-side-right {
    align-self: center;
    padding-left: 12px;
}

.login-side-right h2 {
    font-size: clamp(29px, 3vw, 44px);
    transform: rotate(-7deg);
}

.login-side-right p {
    margin: 42px 0 20px 25px;
    color: #15438e;
    font-family: "Segoe Print", "Bradley Hand", cursive;
    font-size: 20px;
    line-height: 1.35;
    transform: rotate(-5deg);
}

.login-star {
    display: block;
    margin-left: 70%;
    color: #15438e;
    font-size: 55px;
    transform: rotate(10deg);
}

.login-side-right small {
    display: block;
    max-width: 190px;
    margin: 18px 0 0 34px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.login-main-logo {
    width: 220px;
    height: 76px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card h1 {
    font-size: 30px;
    margin: 0 0 8px;
}

.login-subtitle {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 28px;
}

.login-form {
    width: 100%;
}

.login-field {
    text-align: left;
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.login-input {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--input-bg);
}

.login-input > span {
    font-size: 16px;
}

.login-input input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.login-input input::placeholder {
    color: var(--muted);
}

.password-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 22px;
    font-size: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}

.login-options a,
.signup-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.login-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #4b8cff);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(40, 103, 232, 0.25);
}

.login-btn:hover {
    transform: translateY(-1px);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-status {
    display: none;
    margin-top: 14px;
    padding: 10px;
    border-radius: 9px;
    font-size: 12px;
}

.login-status.error,
.login-status.success,
.login-status.loading {
    display: block;
}

.login-status.error {
    background: #fee2e2;
    color: #b91c1c;
}

.login-status.success {
    background: #dcfce7;
    color: #166534;
}

.login-status.loading {
    background: #e0f2fe;
    color: #075985;
}

.signup-text {
    margin-top: 24px;
    font-size: 13px;
    color: var(--muted);
}

.login-security {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.login-footer {
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 600px) {
    .login-header {
        padding: 0 18px;
    }

    .login-brand-text {
        display: none;
    }

    .login-card {
        padding: 30px 22px;
    }

    .login-page {
        padding: 30px 15px;
    }

    .login-layout {
        display: block;
    }

    .login-side {
        display: none;
    }

    .login-footer {
        padding: 0 15px;
        text-align: center;
    }
}


/* ==============================
   SIGNUP PAGE
   ============================== */

.signup-card {
    max-width: 470px;
}

.signup-card h1 {
    font-size: 29px;
}

.signup-terms {
    text-align: left;
    margin: 4px 0 20px;
}

.signup-terms label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.signup-terms input {
    margin-top: 3px;
    accent-color: var(--primary);
}

.signup-terms a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.signup-terms a:hover {
    text-decoration: underline;
}


.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.logout-btn:hover {
    background: #b02a37;
    transform: translateY(-1px);
}


/* ======================================================
   HEADER USER + INTERVIEW COUNT
====================================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info,
.interview-count {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 8px 14px;

    border: 1px solid #dbe5f5;
    border-radius: 12px;

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

    box-shadow: 0 3px 12px rgba(30, 70, 120, 0.06);
}

.user-icon {
    font-size: 21px;
}

.user-info small,
.interview-count small {
    display: block;

    font-size: 10px;

    color: #718096;

    margin-bottom: 1px;
}

.user-info strong,
.interview-count strong {
    display: block;

    font-size: 13px;

    color: #17233c;
}

.interview-count > span {
    font-size: 20px;
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 900px) {

    .header-actions {
        gap: 7px;
    }

    .user-info,
    .interview-count {
        padding: 7px 9px;
    }

    .user-info small,
    .interview-count small {
        font-size: 9px;
    }

    .user-info strong,
    .interview-count strong {
        font-size: 11px;
    }

}


@media (max-width: 650px) {

    .header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .user-info {
        display: none;
    }

}


body:not(.report-page) .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}


body:not(.report-page) .user-info,
body:not(.report-page) .interview-count,
body:not(.report-page) .theme-toggle {
    width: 120px;
    height: 42px;
    min-width: 120px;
    padding: 0 10px;
    flex-shrink: 0;
}


body:not(.report-page) .theme-toggle {
    position: static;
    top: auto;
    right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   REPORT PAGE - POLISH + CORRECT / WRONG STATES
   ===================================================== */

.report-page {
    --ok: #16a34a;
    --ok-bg: #ecfdf3;
    --ok-border: #bbf7d0;
    --bad: #dc2626;
    --bad-bg: #fef2f2;
    --bad-border: #fecaca;
    --bad-text: #991b1b;
    --info-bg: #f1f6ff;
    --info-border: #d6e4ff;
}

/* ---------- Page header ---------- */
.report-header h1 { letter-spacing: -0.02em; }

.report-eyebrow,
.section-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.report-meta { color: var(--muted); line-height: 1.7; }

/* ---------- Summary cards ---------- */
.summary-card {
    position: relative;
    overflow: hidden;
    padding: 24px 26px;
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.summary-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}
.summary-card:nth-child(3)::before {
    background: linear-gradient(180deg, #4ade80, #16a34a);
}
.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}
.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e0ebff, #cfe0ff);
}
.summary-icon.success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}
.summary-card span {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.summary-card strong {
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ---------- Question card ---------- */
.question-report-card {
    position: relative;
    padding: 26px 28px 28px;
    border-radius: 16px;
    border-left-width: 6px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease;
}
.question-report-card:hover { box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09); }

.question-report-card.correct { border-left-color: var(--ok); }
.question-report-card.wrong {
    border-left-color: var(--bad);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.55), var(--card) 160px);
}

.question-report-card.correct .question-number-badge {
    background: #dcfce7;
    color: #15803d;
}
.question-report-card.wrong .question-number-badge {
    background: #fee2e2;
    color: #b91c1c;
}

/* ---------- Badges ---------- */
.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.result-badge.correct {
    color: #15803d; background: #dcfce7; border: 1px solid #bbf7d0;
}
.result-badge.wrong {
    color: #b91c1c; background: #fee2e2; border: 1px solid #fecaca;
}
.score-badge { white-space: nowrap; }
.score-badge.correct { color: #15803d; background: #dcfce7; }
.score-badge.wrong   { color: #b91c1c; background: #fee2e2; }

/* ---------- Labels ---------- */
.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.detail-label::before {
    content: "";
    width: 4px;
    height: 14px;
    border-radius: 4px;
    background: #2563eb;
}
.detail-value {
    margin-bottom: 20px;
    padding-left: 12px;
    color: var(--text);
    font-weight: 500;
}

/* ---------- Your answer box (green = sahi, RED = galat) ---------- */
.selected-answer-box,
.candidate-answer-box {
    position: relative;
    padding: 16px 56px 16px 18px;
    border-radius: 12px;
    font-weight: 500;
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    word-break: break-word;
}
.selected-answer-box::after,
.candidate-answer-box::after {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.selected-answer-box.correct,
.candidate-answer-box.correct {
    background: var(--ok-bg);
    border: 1px solid var(--ok-border);
    border-left: 5px solid var(--ok);
}
.selected-answer-box.correct::after,
.candidate-answer-box.correct::after {
    content: "\2713";
    background: var(--ok);
}

.selected-answer-box.wrong,
.candidate-answer-box.wrong {
    background: var(--bad-bg);
    border: 1px solid var(--bad-border);
    border-left: 5px solid var(--bad);
    color: var(--bad-text);
}
.selected-answer-box.wrong::after,
.candidate-answer-box.wrong::after {
    content: "\2715";
    background: var(--bad);
}

/* ---------- Feedback + ideal answer ---------- */
.feedback-box,
.ideal-box { border-radius: 12px; padding: 18px 20px; }

.feedback-title,
.ideal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.feedback-title::before,
.ideal-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
}

.feedback-box.correct { background: var(--ok-bg); border: 1px solid var(--ok-border); }
.feedback-box.wrong   { background: #fff7ed; border: 1px solid #fed7aa; }
.feedback-box.wrong .feedback-title { color: #c2410c; }

.ideal-box { background: #f5f3ff; border: 1px solid #ddd6fe; }
.question-report-card.wrong .ideal-box {
    background: var(--ok-bg);
    border: 1px solid var(--ok-border);
}
.question-report-card.wrong .ideal-title { color: #15803d; }

/* ---------- Dark mode ---------- */
[data-theme="dark"] .report-page {
    --ok-bg: #052e16;
    --ok-border: #166534;
    --bad-bg: #2a1215;
    --bad-border: #7f1d1d;
    --bad-text: #fecaca;
    --info-bg: #172033;
    --info-border: #263653;
}
[data-theme="dark"] .question-report-card.wrong {
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.22), var(--card) 160px);
}
[data-theme="dark"] .question-report-card.correct .question-number-badge {
    background: #052e16; color: #4ade80;
}
[data-theme="dark"] .question-report-card.wrong .question-number-badge {
    background: #450a0a; color: #f87171;
}
[data-theme="dark"] .result-badge.correct,
[data-theme="dark"] .score-badge.correct {
    background: #052e16; border-color: #166534; color: #4ade80;
}
[data-theme="dark"] .result-badge.wrong,
[data-theme="dark"] .score-badge.wrong {
    background: #450a0a; border-color: #7f1d1d; color: #f87171;
}
[data-theme="dark"] .feedback-box.correct .feedback-title { color: #4ade80; }
[data-theme="dark"] .feedback-box.wrong { background: #2b1a0a; border-color: #7c2d12; }
[data-theme="dark"] .feedback-box.wrong .feedback-title { color: #fb923c; }
[data-theme="dark"] .ideal-box { background: #21163a; border-color: #4c1d95; }
[data-theme="dark"] .ideal-title { color: #c4b5fd; }
[data-theme="dark"] .question-report-card.wrong .ideal-box {
    background: #052e16; border-color: #166534;
}
[data-theme="dark"] .question-report-card.wrong .ideal-title { color: #4ade80; }
[data-theme="dark"] .report-eyebrow,
[data-theme="dark"] .section-eyebrow {
    background: rgba(59, 130, 246, 0.18); color: #93c5fd;
}
[data-theme="dark"] .summary-icon {
    background: linear-gradient(135deg, #172554, #1e3a8a);
}
[data-theme="dark"] .summary-icon.success {
    background: linear-gradient(135deg, #052e16, #14532d);
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .question-report-card { padding: 18px 16px 20px; }
    .summary-card strong { font-size: 28px; }
    .selected-answer-box,
    .candidate-answer-box { padding-right: 52px; }
}


/* =========================================================
   INTERVIEW MODE SELECTOR (TOPIC VS RESUME)
   ========================================================= */

.mode-selector-wrap {
    margin-bottom: 24px;
}

.mode-selector-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.mode-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mode-card {
    position: relative;
    background: var(--surface-soft, #f8faff);
    border: 2px solid var(--border, #dbe3f0);
    border-radius: 16px;
    padding: 18px 18px 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    user-select: none;
}

.mode-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08);
}

.mode-card.active {
    border-color: var(--primary, #2563eb);
    background: linear-gradient(180deg, #eff6ff 0%, var(--surface, #ffffff) 100%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
}

.mode-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mode-card-icon {
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.mode-card.active .mode-card-icon {
    background: #dbeafe;
}

.mode-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
}

.mode-pill-primary {
    background: #dbeafe;
    color: #1e40af;
}

.mode-pill-ai {
    background: linear-gradient(135deg, #ede9fe, #fae8ff);
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

.mode-card h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.mode-card p {
    margin: 0 0 14px 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-soft, #64748b);
    flex-grow: 1;
}

.mode-card-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.12);
    align-self: flex-start;
    transition: all 0.2s ease;
}

.mode-card.active .mode-card-badge-status {
    background: var(--primary, #2563eb);
    color: #ffffff;
}

.mode-card.active .mode-card-badge-status .check-icon {
    font-weight: 900;
}

/* =========================================================
   RESUME DROPZONE & UPLOAD STYLES
   ========================================================= */

.resume-dropzone {
    border: 2px dashed #93c5fd;
    background: #f8faff;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
}

.resume-dropzone:hover,
.resume-dropzone.dragover {
    border-color: var(--primary, #2563eb);
    background: #eff6ff;
    transform: scale(1.005);
}

.dropzone-content .dropzone-icon {
    font-size: 38px;
    margin-bottom: 8px;
}

.dropzone-content .dropzone-title {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
}

.dropzone-content .dropzone-title strong {
    color: var(--primary, #2563eb);
    text-decoration: underline;
}

.dropzone-content .dropzone-sub {
    font-size: 12px;
    color: var(--text-soft);
}

/* Dropzone selected file chip */
.dropzone-file {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 12px 16px;
    text-align: left;
}

.dropzone-file .file-icon {
    font-size: 28px;
}

.dropzone-file .file-details {
    flex-grow: 1;
    overflow: hidden;
}

.dropzone-file .file-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropzone-file .file-size {
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 2px;
}

.file-remove-btn {
    background: #fee2e2;
    border: none;
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.file-remove-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Parse status */
.resume-parse-status {
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resume-parse-status.loading {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.resume-parse-status.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.resume-parse-status.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Resume text toggle */
.resume-text-toggle-wrap {
    margin-top: 12px;
}

.resume-text-toggle-btn {
    background: none;
    border: none;
    color: var(--primary, #2563eb);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.resume-text-toggle-btn:hover {
    text-decoration: underline;
}

.resume-textarea-wrap {
    margin-top: 10px;
}

.resume-textarea-wrap textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--input-bg, #f8faff);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    resize: vertical;
    transition: border-color 0.2s ease;
}

.resume-textarea-wrap textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
}

.resume-role-wrap {
    margin-top: 16px;
}

.field-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-soft);
}

/* Dark mode overrides for mode selector & resume components */
.dark-mode .mode-card,
[data-theme="dark"] .mode-card {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .mode-card:hover,
[data-theme="dark"] .mode-card:hover {
    border-color: #60a5fa;
}

.dark-mode .mode-card.active,
[data-theme="dark"] .mode-card.active {
    background: linear-gradient(180deg, #1e3a8a 0%, #1e293b 100%);
    border-color: #60a5fa;
}

.dark-mode .mode-card-icon,
[data-theme="dark"] .mode-card-icon {
    background: #0f172a;
}

.dark-mode .mode-card.active .mode-card-icon,
[data-theme="dark"] .mode-card.active .mode-card-icon {
    background: #172554;
}

.dark-mode .resume-dropzone,
[data-theme="dark"] .resume-dropzone {
    background: #1e293b;
    border-color: #475569;
}

.dark-mode .dropzone-file,
[data-theme="dark"] .dropzone-file {
    background: #0f172a;
    border-color: #334155;
}

.dark-mode .resume-textarea-wrap textarea,
[data-theme="dark"] .resume-textarea-wrap textarea {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

@media (max-width: 640px) {
    .mode-options-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   DARK MODE FIXES - buttons that stayed white
   ========================================================= */

html.dark-mode .theme-btn,
[data-theme="dark"] .theme-btn {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

html.dark-mode .theme-btn:hover,
[data-theme="dark"] .theme-btn:hover {
    background: var(--surface-soft);
}

html.dark-mode .file-remove-btn,
[data-theme="dark"] .file-remove-btn {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

html.dark-mode .file-remove-btn:hover,
[data-theme="dark"] .file-remove-btn:hover {
    background: #ef4444;
    color: #ffffff;
}


/* =========================================================
   DARK MODE FIX - Header "Welcome" + "Interviews" chips
   (baaki header buttons jaisa dark look)
   ========================================================= */

html.dark-mode .user-info,
html.dark-mode .interview-count,
[data-theme="dark"] .user-info,
[data-theme="dark"] .interview-count {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: none;
}

html.dark-mode .user-info small,
html.dark-mode .interview-count small,
[data-theme="dark"] .user-info small,
[data-theme="dark"] .interview-count small {
    color: var(--muted);
}

html.dark-mode .user-info strong,
html.dark-mode .interview-count strong,
[data-theme="dark"] .user-info strong,
[data-theme="dark"] .interview-count strong {
    color: var(--text);
}
/* ===== Header: keep all buttons on one row ===== */
.top-header { height: auto; min-height: 92px; gap: 16px; }
.top-brand { min-width: 0; flex-shrink: 1; }
.top-brand-text strong { white-space: nowrap; font-size: 20px; }
.top-brand-text span { white-space: nowrap; }

.header-actions { flex-wrap: nowrap; flex-shrink: 0; gap: 8px; }
.header-actions .header-nav-btn { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.header-actions .theme-toggle { white-space: nowrap; padding: 8px 14px; font-size: 13px; }
body .header-actions .user-info { padding: 6px 14px; width: auto !important; min-width: max-content !important; max-width: none !important; flex-shrink: 0; overflow: visible; }
.header-actions .user-info strong { white-space: nowrap; overflow: visible; text-overflow: clip; max-width: none; }

@media (max-width: 1180px) {
    .top-header { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
    .header-actions { flex-wrap: wrap; }
}