/* assets/css/index.css */

    /* --- Animation Styles --- */
    body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000000;
    font-family: 'Inter', 'Nunito', sans-serif;
    color: #E3E3E3;
    overflow-x: hidden;
    min-height: 100vh;
}

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

    /* Glowing Logo Loader */
    #animation-wrapper {
        position: fixed;
        width: 100%;
        height: 100%;
        background: #000000; /* CHANGE THIS from #0d1117 */;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        transition: opacity 0.8s ease;
    }

    #loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Update your existing #loader-logo svg style */
#loader-logo svg,
#loader-logo img {
        width: 104px; 
        height: 104px;
        animation: reveal 0.6s ease-out forwards, wheelSpin 10s linear 0.6s infinite;
        transform-origin: center;
    }

@keyframes reveal {
        from { opacity: 0; transform: scale(0.85) rotate(0deg); }
        to { opacity: 1; transform: scale(1) rotate(0deg); }
    }

@keyframes wheelSpin {
        from { transform: rotate(0deg); }
        to   { transform: rotate(360deg); }
    }

/* Desktop: no spin on splash screen */
@media (min-width: 769px) {
    #loader-logo svg,
    #loader-logo img {
        animation: reveal 0.6s ease-out forwards;
    }
}

    /* Branding Styles */
    .branding {
        position: absolute;
        bottom: 32px;
        font-size: 14px;
        color: #2f343b;
        font-family: 'Nunito', sans-serif;
        letter-spacing: 0.5px;
        opacity: 0.92;
        transition: opacity 0.3s ease;
        text-align: center;
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
        pointer-events: none;
    }

    .splash-version-footer {
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
    }

    .branding span {
        display: block;
    }

    .branding span:nth-child(1) {
        font-size: 14px;
        color: #888;
    }

    .branding span:nth-child(2) {
        font-size: 16px;
        color: #ffffff;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }

    /* Mobile adjustments for loader logo and branding */
    @media (max-width: 480px) {
        #loader-logo {
            font-size: 4rem;
        }
        #loader-logo svg,
        #loader-logo img {
            width: 92px;
            height: 92px;
            animation: reveal 0.6s ease-out forwards, wheelSpin 13s linear 0.6s infinite;
        }
        .branding {
            font-size: 13px;
            bottom: 64px;
            color: #596270;
        }
        .branding span:nth-child(1) {
            font-size: 13px;
        }
        .branding span:nth-child(2) {
            font-size: 15px;
            text-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
        }
    }

    @media (max-width: 360px) {
        #loader-logo {
            font-size: 3rem;
        }
        #loader-logo svg,
        #loader-logo img {
            width: 82px;
            height: 82px;
            animation: reveal 0.6s ease-out forwards, wheelSpin 13s linear 0.6s infinite;
        }
        .branding {
            font-size: 12px;
            bottom: 60px;
            color: #596270;
        }
        .branding span:nth-child(1) {
            font-size: 12px;
        }
        .branding span:nth-child(2) {
            font-size: 14px;
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
        }
    }

    

/* ── Desktop two-panel wrapper ── */
.container {
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 960px;
    min-height: 100vh;
}

.container.show {
    opacity: 1;
    animation: fadeSlideIn 1.2s ease forwards;
}

/* ── Logo + school name above form — desktop only ── */
#form-top-brand {
    display: none;
}

/* ── Left preview panel (desktop only) ── */
.brand-panel {
    display: none; /* hidden on mobile, shown on desktop */
}

/* ── Brand panel intro eyebrow ── */
.bp-intro {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.container.show .bp-intro {
    opacity: 1;
    transform: translateY(0);
}

.bp-intro-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: #555;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.bp-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3ecf8e;
    display: inline-block;
    animation: pvPulse 1.8s infinite ease-in-out;
    flex-shrink: 0;
}

/* ── Typewriter intro card ── */
.pv-intro-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.pv-tw-wrap {
    text-align: left;
    width: 100%;
}

.pv-tw-line {
    font-size: 18px;
    font-weight: 600;
    color: #e3e3e3;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.4;
    min-height: 1.4em;
    white-space: nowrap;
    overflow: hidden;
}

.pv-tw-line2 {
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin-top: 8px;
    letter-spacing: 0;
}

.pv-tw-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #3ecf8e;
    margin-left: 2px;
    vertical-align: middle;
    animation: twBlink 0.75s step-end infinite;
}

@keyframes twBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ── Preview animation card styles ── */
.preview-card {
    background: #1e1e1c;
    border-radius: 16px;
    border: 1px solid #2e2e2c;
    padding: 18px 20px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, black 65%, transparent 100%);
            mask-image: linear-gradient(to right, black 65%, transparent 100%);
}
.preview-card.pv-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.preview-card.pv-exit {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* preview-wrap is the stage for one card at a time */
.preview-wrap {
    position: relative;
    width: 100%;
    min-height: 200px;
}

.pv-header { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.pv-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pv-icon.green  { background: #0e2e22; }
.pv-icon.orange { background: #2e1a0e; }
.pv-icon.purple { background: #1c1830; }
.pv-icon.blue   { background: #0d1e2e; }
.pv-icon.red    { background: #2a0e0e; }

.pv-title { font-size: 13px; font-weight: 600; color: #e3e3e3; }
.pv-sub   { font-size: 11px; color: #666; margin-top: 2px; display: flex; align-items: center; gap: 5px; }

/* Chat bubbles */
.pv-chat { display: flex; flex-direction: column; gap: 8px; }
.pv-bubble {
    padding: 9px 13px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; max-width: 90%;
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.pv-bubble.pv-vis { opacity: 1; transform: translateY(0); }
.pv-bubble.user { background: #ffffff; color: #131314; align-self: flex-end; border-bottom-right-radius: 3px; }
.pv-bubble.ai   { background: #2a2a28; color: #d0d0d0; align-self: flex-start; border-bottom-left-radius: 3px; }

.pv-typing {
    display: flex; gap: 5px; align-items: center; padding: 9px 13px;
    background: #2a2a28; border-radius: 12px; border-bottom-left-radius: 3px;
    width: fit-content; opacity: 0; transition: opacity 0.3s ease;
}
.pv-typing.pv-vis { opacity: 1; }
.pv-dot { width: 6px; height: 6px; border-radius: 50%; background: #555; animation: pvBounce 1.1s infinite ease-in-out; }
.pv-dot:nth-child(2) { animation-delay: 0.18s; }
.pv-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes pvBounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }

/* Tasks */
.pv-task {
    display: flex; align-items: center; gap: 10px; padding: 5px 0;
    font-size: 12.5px; color: #ccc;
    opacity: 0; transform: translateX(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.pv-task.pv-vis { opacity: 1; transform: translateX(0); }
.pv-task.done-txt { color: #555; text-decoration: line-through; }
.pv-check {
    width: 18px; height: 18px; border-radius: 50%;
    border: 1.5px solid #444; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s, border-color 0.3s;
}
.pv-check.done { background: #3ecf8e; border-color: #3ecf8e; }
.pv-check svg { opacity: 0; transition: opacity 0.2s; }
.pv-check.done svg { opacity: 1; }

/* Stats / Analytics */
.pv-stat-grid { display: flex; gap: 8px; margin-bottom: 12px; }
.pv-stat-box { flex: 1; background: #2a2a28; border-radius: 9px; padding: 9px 10px; text-align: center; }
.pv-stat-num { font-size: 18px; font-weight: 600; color: #e3e3e3; font-variant-numeric: tabular-nums; }
.pv-stat-lbl { font-size: 10px; color: #555; margin-top: 2px; letter-spacing: 0.04em; }

.pv-bar-group { display: flex; flex-direction: column; gap: 8px; }
.pv-bar-lbl-row { display: flex; justify-content: space-between; font-size: 11px; color: #555; margin-bottom: 3px; }
.pv-bar-track { height: 5px; background: #2a2a28; border-radius: 99px; overflow: hidden; }
.pv-bar-fill { height: 100%; border-radius: 99px; width: 0%; transition: width 1.2s cubic-bezier(0.22,1,0.36,1); }

/* Pulse dot */
.pv-pulse { width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; display: inline-block; animation: pvPulse 1.8s infinite ease-in-out; }
@keyframes pvPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.4; } }

/* Quiz styles */
.pv-quiz-q { font-size: 12.5px; color: #ccc; margin-bottom: 10px; line-height: 1.5; opacity: 0; transform: translateY(5px); transition: opacity 0.4s ease, transform 0.4s ease; }
.pv-quiz-q.pv-vis { opacity: 1; transform: translateY(0); }
.pv-quiz-opt {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 8px; border: 1px solid #2e2e2c;
    font-size: 12px; color: #aaa; margin-bottom: 6px; cursor: default;
    opacity: 0; transform: translateX(-6px);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s, border-color 0.3s;
}
.pv-quiz-opt.pv-vis { opacity: 1; transform: translateX(0); }
.pv-quiz-opt.selected { background: #1a2e1a; border-color: #3ecf8e; color: #3ecf8e; }
.pv-quiz-opt.wrong    { background: #2a1414; border-color: #cf5050; color: #cf7070; }
.pv-quiz-circle { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #444; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background 0.3s, border-color 0.3s; }
.pv-quiz-opt.selected .pv-quiz-circle { background: #3ecf8e; border-color: #3ecf8e; }
.pv-quiz-opt.wrong    .pv-quiz-circle { background: #cf5050; border-color: #cf5050; }

/* AI Invigilator styles */
.pv-inv-screen { background: #111; border-radius: 10px; padding: 12px; margin-bottom: 8px; opacity: 0; transition: opacity 0.4s ease; }
.pv-inv-screen.pv-vis { opacity: 1; }
.pv-inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 10px; }
.pv-inv-face { background: #1e1e1c; border-radius: 6px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 1px solid #2a2a28; transition: border-color 0.3s; }
.pv-inv-face.alert { border-color: #cf5050; background: #1f1010; }
.pv-inv-status { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #555; }
.pv-inv-badge { padding: 3px 9px; border-radius: 99px; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; opacity: 0; transition: opacity 0.4s ease; }
.pv-inv-badge.active { background: #0e2e22; color: #3ecf8e; opacity: 1; }
.pv-inv-badge.warn   { background: #2a1a0e; color: #e07b3a; opacity: 1; }
.pv-inv-alert-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: #1f1010; border: 1px solid #3a1a1a; font-size: 11.5px; color: #cf7070; opacity: 0; transform: translateY(4px); transition: opacity 0.4s ease, transform 0.4s ease; }
.pv-inv-alert-row.pv-vis { opacity: 1; transform: translateY(0); }

/* Announcement styles */
.pv-ann-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #222; opacity: 0; transform: translateY(5px); transition: opacity 0.38s ease, transform 0.38s ease; }
.pv-ann-item.pv-vis { opacity: 1; transform: translateY(0); }
.pv-ann-item:last-child { border-bottom: none; }
.pv-ann-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.pv-ann-text { font-size: 12px; color: #ccc; line-height: 1.5; }
.pv-ann-meta { font-size: 10px; color: #444; margin-top: 2px; }
.pv-ann-badge { display: inline-block; padding: 1px 7px; border-radius: 99px; font-size: 10px; margin-right: 5px; }
.pv-ann-badge.urgent { background: #2a1010; color: #cf7070; }
.pv-ann-badge.info   { background: #0d1e2e; color: #5ba4e0; }
.pv-ann-badge.event  { background: #1c1830; color: #8b80d1; }

/* Academic Calendar styles */
.pv-cal-month { font-size: 11px; color: #555; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; opacity: 0; transition: opacity 0.4s ease; }
.pv-cal-month.pv-vis { opacity: 1; }
.pv-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 10px; }
.pv-cal-day { height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #555; opacity: 0; transform: scale(0.85); transition: opacity 0.25s ease, transform 0.25s ease; }
.pv-cal-day.pv-vis { opacity: 1; transform: scale(1); }
.pv-cal-day.today { background: #3ecf8e; color: #0a1f15; font-weight: 600; }
.pv-cal-day.has-event { background: #1c1830; color: #8b80d1; }
.pv-cal-day.holiday { background: #2a1010; color: #cf7070; }
.pv-event-list { display: flex; flex-direction: column; gap: 6px; }
.pv-event-row { display: flex; align-items: center; gap: 9px; opacity: 0; transform: translateX(-6px); transition: opacity 0.35s ease, transform 0.35s ease; }
.pv-event-row.pv-vis { opacity: 1; transform: translateX(0); }
.pv-event-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pv-event-label { font-size: 12px; color: #ccc; }
.pv-event-date { font-size: 10px; color: #444; margin-left: auto; }

/* Learner Dashboard styles */
.pv-subj-grid { display: flex; flex-direction: column; gap: 7px; }
.pv-subj-row { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(5px); transition: opacity 0.38s ease, transform 0.38s ease; }
.pv-subj-row.pv-vis { opacity: 1; transform: translateY(0); }
.pv-subj-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.pv-subj-name { font-size: 12px; color: #ccc; flex: 1; }
.pv-subj-track { flex: 2; height: 4px; background: #2a2a28; border-radius: 99px; overflow: hidden; }
.pv-subj-fill { height: 100%; border-radius: 99px; width: 0%; transition: width 1s cubic-bezier(0.22,1,0.36,1); }
.pv-subj-pct { font-size: 11px; color: #888; min-width: 32px; text-align: right; font-variant-numeric: tabular-nums; }
.pv-grade-badge { padding: 2px 8px; border-radius: 99px; font-size: 10px; font-weight: 600; min-width: 28px; text-align: center; }
.pv-grade-badge.a { background: #0e2e22; color: #3ecf8e; }
.pv-grade-badge.b { background: #0d1e2e; color: #5ba4e0; }
.pv-grade-badge.c { background: #1c1830; color: #8b80d1; }

/* Admin Dashboard styles */
.pv-admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-bottom: 10px; }
.pv-admin-box { background: #2a2a28; border-radius: 10px; padding: 10px 12px; opacity: 0; transform: translateY(6px); transition: opacity 0.38s ease, transform 0.38s ease; }
.pv-admin-box.pv-vis { opacity: 1; transform: translateY(0); }
.pv-admin-num { font-size: 20px; font-weight: 600; color: #e3e3e3; font-variant-numeric: tabular-nums; }
.pv-admin-lbl { font-size: 10px; color: #555; margin-top: 2px; }
.pv-admin-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid #222; font-size: 11.5px; color: #888; opacity: 0; transition: opacity 0.38s ease; }
.pv-admin-row.pv-vis { opacity: 1; }
.pv-admin-chip { padding: 2px 8px; border-radius: 99px; font-size: 10px; }
.pv-admin-chip.ok  { background: #0e2e22; color: #3ecf8e; }
.pv-admin-chip.off { background: #2a1a0e; color: #e07b3a; }

/* Auto Grading styles */
.pv-grade-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; opacity: 0; transition: opacity 0.4s ease; }
.pv-grade-header.pv-vis { opacity: 1; }
.pv-grade-title { font-size: 12px; color: #ccc; }
.pv-grade-total { font-size: 18px; font-weight: 600; color: #e3e3e3; font-variant-numeric: tabular-nums; }
.pv-grade-total span { font-size: 11px; color: #444; font-weight: 400; }
.pv-q-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #1e1e1c; opacity: 0; transform: translateX(-5px); transition: opacity 0.32s ease, transform 0.32s ease; }
.pv-q-row.pv-vis { opacity: 1; transform: translateX(0); }
.pv-q-row:last-child { border-bottom: none; }
.pv-q-num { font-size: 10px; color: #444; min-width: 18px; }
.pv-q-bar-wrap { flex: 1; height: 4px; background: #222; border-radius: 99px; overflow: hidden; }
.pv-q-bar { height: 100%; border-radius: 99px; width: 0%; transition: width 0.7s cubic-bezier(0.22,1,0.36,1); }
.pv-q-mark { font-size: 11px; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.pv-q-mark.correct { color: #3ecf8e; }
.pv-q-mark.partial { color: #e07b3a; }
.pv-q-mark.wrong   { color: #cf5050; }


/* ── Card 10: Evaluations ── */
.pv-eval-layout {
    display: flex;
    gap: 10px;
    height: 110px;
}
.pv-eval-sidebar {
    width: 44%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid #222;
    padding-right: 10px;
}
.pv-eval-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 6px;
    border-radius: 6px;
    border-left: 2px solid transparent;
    font-size: 11px;
    color: #666;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.pv-eval-item.pv-vis { opacity: 1; transform: translateX(0); }
.pv-eval-item.active { background: rgba(167,139,250,0.08); border-left-color: #a78bfa; color: #ccc; }
.pv-eval-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.pv-eval-dot.pending { background: #e07b3a; }
.pv-eval-dot.done    { background: #3ecf8e; }
.pv-eval-name { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pv-eval-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pv-eval-q {
    font-size: 11.5px;
    color: #ccc;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.pv-eval-q.pv-vis { opacity: 1; }
.pv-eval-options { display: flex; flex-direction: column; gap: 4px; }
.pv-eval-opt {
    font-size: 10.5px;
    color: #666;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #222;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s, border-color 0.3s, color 0.3s;
    cursor: default;
}
.pv-eval-opt.pv-vis { opacity: 1; transform: translateY(0); }
.pv-eval-opt.selected { background: rgba(167,139,250,0.12); border-color: #a78bfa; color: #a78bfa; }

/* ── Card 11: Syllabus ── */
.pv-syl-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.pv-syl-tabs.pv-vis { opacity: 1; }
.pv-syl-tab {
    font-size: 10.5px;
    color: #555;
    padding: 3px 9px;
    border-radius: 99px;
    border: 1px solid #222;
    cursor: default;
}
.pv-syl-tab.active { background: rgba(79,209,197,0.1); border-color: #4fd1c5; color: #4fd1c5; }
.pv-syl-current {
    font-size: 9px;
    background: #4fd1c5;
    color: #0a1f15;
    border-radius: 99px;
    padding: 0px 5px;
    margin-left: 3px;
    font-weight: 700;
    vertical-align: middle;
}

.pv-syl-card { opacity: 0; transform: translateY(6px); transition: opacity 0.45s ease, transform 0.45s ease; }
.pv-syl-card.pv-vis { opacity: 1; transform: translateY(0); }

.pv-syl-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.pv-syl-subject { font-size: 13px; font-weight: 600; color: #e3e3e3; }
.pv-syl-teacher { font-size: 11px; color: #666; margin-top: 2px; }
.pv-syl-date    { font-size: 10px; color: #444; white-space: nowrap; }

.pv-syl-section-lbl {
    font-size: 10px; font-weight: 700; color: #555;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin: 8px 0 5px;
}
.pv-syl-topics { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-direction: column; gap: 3px; }
.pv-syl-topic {
    font-size: 11.5px; color: #ccc;
    display: flex; align-items: center; gap: 7px;
    opacity: 0; transform: translateX(-5px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.pv-syl-topic.pv-vis { opacity: 1; transform: translateX(0); }
.pv-syl-topic::before {
    content: ''; width: 5px; height: 5px;
    border-radius: 50%; background: #4fd1c5; flex-shrink: 0;
}

.pv-syl-assess-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11.5px; color: #ccc; margin-top: 4px;
    opacity: 0; transition: opacity 0.35s ease;
}
.pv-syl-assess-row.pv-vis { opacity: 1; }
.pv-syl-atype { color: #aaa; }
.pv-syl-apct  { font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-syl-abar-wrap { height: 3px; background: #222; border-radius: 99px; overflow: hidden; margin-bottom: 2px; }
.pv-syl-abar  { height: 100%; border-radius: 99px; width: 0%; transition: width 1s cubic-bezier(0.22,1,0.36,1); }

/* ── Right form panel ── */
.form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 100vh;
    box-sizing: border-box;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.form-panel::-webkit-scrollbar { width: 4px; }
.form-panel::-webkit-scrollbar-track { background: transparent; }
.form-panel::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* inner width cap for the form itself */
.form-panel > .form-box {
    width: 100%;
    max-width: 400px;
}

/* ── Desktop ── */
@media (min-width: 900px) {
    body { padding: 0; }

    .container {
        min-height: 100vh;
        max-width: 100%;
    }

    .brand-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        flex: 0 0 48%;
        padding: 48px 40px;
        background: #111110;
        border-right: none;
        box-sizing: border-box;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }

    /* Curved SVG divider on right edge of brand panel */
    .brand-panel::after {
        content: '';
        position: absolute;
        top: 0;
        right: -1px;
        width: 32px;
        height: 100%;
        background: #111110;
        clip-path: polygon(0 0, 60% 0, 100% 6%, 100% 94%, 60% 100%, 0 100%);
        z-index: 2;
        pointer-events: none;
    }

    /* Thin accent line on the curved edge */
    .brand-panel::before {
        content: '';
        position: absolute;
        top: 6%;
        right: 18px;
        width: 1px;
        height: 88%;
        background: linear-gradient(to bottom, transparent, #2a2a2a 15%, #2a2a2a 85%, transparent);
        z-index: 3;
        pointer-events: none;
    }

    .brand-panel-logo,
    .brand-panel-title,
    .brand-panel-tagline,
    .brand-panel-school {
        display: none;
    }

    .brand-panel-footer {
        position: absolute;
        bottom: 28px;
        left: 40px;
        font-size: 12px;
        color: #7e7a7a;
    }

    .preview-wrap {
        position: relative;
        width: 100%;
        min-height: 280px;
    }

    .form-panel {
        flex: 1;
        background: #1a1919;
        padding: 60px 64px;
        justify-content: flex-start;
    }

    /* Keep the shorter login form vertically centred */
    #login-form.active {
        min-height: calc(100vh - 120px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Register form gets breathing room at top and bottom */
    #register-form.active {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .form-panel > .form-box {
        max-width: 380px;
    }

    /* Hide the logo inside the login form on desktop — branding panel handles it */
    #iskool-brand {
        display: none !important;
    }

    /* Logo + school name above the login form on desktop */
    #form-top-brand {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 36px;
        width: 100%;
        max-width: 380px;
    }

    #form-logo-svg svg,
    #form-logo-svg img {
        display: block;
        width: 54px;
        height: 54px;
        animation: brandSpin 26s ease-in-out infinite;
        transform-origin: center;
    }

    @keyframes brandSpin {
        /* 0s–4s: initial wait at 0° */
        0%      { transform: rotate(0deg); }
        15.38%  { transform: rotate(0deg); }
        /* 4s–11s: clockwise 360° (7s spin) */
        42.31%  { transform: rotate(360deg); }
        /* 11s–15s: wait at 360° */
        57.69%  { transform: rotate(360deg); }
        /* 15s–22s: anticlockwise back to 0° (7s spin) */
        84.62%  { transform: rotate(0deg); }
        /* 22s–26s: wait at 0° */
        100%    { transform: rotate(0deg); }
    }

    #form-school-badge {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        background: #1a1a1a;
        border: 1px solid #2a2a2a;
        border-radius: 8px;
    }

    #form-school-dot {
        width: 8px; height: 8px;
        background: #3ecf8e;
        border-radius: 50%;
        flex-shrink: 0;
        box-shadow: 0 0 6px #3ecf8e88;
    }

    #form-school-name {
        font-size: 13px;
        color: #aaa;
    }
}

#iskool-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

#iskool-brand svg,
#iskool-brand img {
    width: 90px;
    height: 90px;
}

@media (max-width: 480px) {
    #iskool-brand svg,
    #iskool-brand img { width: 65px; height: 65px; }
    #iskool-brand { margin-bottom: 25px; max-width: 95vw; }
}

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

    .form-box p {
        text-align: center;
        font-size: 14px;
    }

    /* TO: */
.form-box {
    display: none;
    width: 100%;
}

.form-box.active {
    display: block;
    width: 100%;
}

    .error-message {
        color: #ff5555;
        margin-bottom: 10px;
    }

    input, select, button {
        width: 100%;
        margin: 8px 0;
        padding: 10px;
        border-radius: 6px;
        border: none;
        font-size: 14px;
    }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    background: #1E1F20;
    color: #fff;
    border: 1px solid transparent;
    padding: 12px 20px;
    border-radius: 30px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    width: 100%;
    display: block;
}

input:focus, select:focus {
    background: #1E1F20;
    border-color: #444746;
    box-shadow: 0 0 0 1px #444746;
    outline: none;
}

  button {
    background: #ffffff; 
    color: #131314;
    font-weight: 700;
    font-size: 15px;
    padding: 14px;
    border-radius: 24px; /* Matches the pills */
    cursor: pointer;
    border: none;
    margin-top: 10px;
    transition: background 0.2s ease;
}

button:hover {
    background: #F1F1F1;
}

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

    a:hover {
        text-decoration: underline;
    }

    .password-wrapper {
        position: relative;
        width: 100%;
    }

    .password-wrapper input {
        width: 100%;
        padding-right: 40px;
    }

    .toggle-password {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        color: #ccc;
        cursor: pointer;
    }

    h2 {
    font-weight: 400; /* Gemini uses lighter font weights for headings */
    font-size: 24px;
    color: #E3E3E3;
}

    /* NEW: Title + Name + Second Name + Surname Row */
    .name-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 8px 0;
    }

    .name-row select,
    .name-row input {
        flex: 1 1 110px;
        margin: 0;
    }

    .name-row select {
        flex: 0 1 82px;
    }

    #loaderOverlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
       background: #1a1919; /* CHANGE THIS from #0d1117 */
        backdrop-filter: blur(6px);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        flex-direction: column;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    #loaderOverlay.show {
        display: flex;
        opacity: 1;
    }

    .loader-container {
        text-align: center;
    }

    .loader-book i {
        font-size: 5rem;
        color: #00ff99;
        text-shadow: 0 0 10px #00ff99;
        animation: rotateBook 4s linear infinite;
    }

    .loader-text {
        font-size: 18px;
        color: #00ff99;
        font-weight: 600;
        text-shadow: 0 0 8px #00ff99;
        font-family: 'Nunito', sans-serif;
        margin-top: 15px;
    }

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

    @media (max-width: 480px) {
        .form-panel {
            padding: 1.5rem 1.2rem;
            min-height: 100vh;
        }

        .form-box p,
        .form-box label {
            font-size: 13px;
        }

        input, select, button {
            font-size: 13px;
            padding: 10px 14px;
        }

        .toggle-password {
            right: 10px;
        }

        label {
            display: block;
            margin-top: 10px;
        }

        .name-row {
            flex-direction: column;
        }

        .name-row select,
        .name-row input {
            margin: 4px 0;
        }
    }

    @media (max-width: 360px) {
        input, select, button {
            font-size: 12px;
            padding: 8px 12px;
        }

        .form-panel {
            padding: 1rem;
        }
    }
