/* ==========================================
   TEAM ELITE - NEET CBT PLATFORM
   PROFESSIONAL UI
========================================== */

:root {

    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --text: #111827;
    --muted: #64748b;

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

    --border: #e2e8f0;

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

    --shadow:
        0 10px 30px rgba(15, 23, 42, 0.07);

    --radius: 18px;
}


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.07),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    min-height: 100vh;
}


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

.site-header {

    height: 72px;

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

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

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 5%;

    position: sticky;

    top: 0;

    z-index: 100;

    backdrop-filter: blur(14px);
}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;
}


.brand-logo {

    width: 42px;

    height: 42px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #7c3aed
        );

    color: white;

    display: grid;

    place-items: center;

    font-weight: 800;

    letter-spacing: -1px;
}


.brand-name {

    font-weight: 800;

    font-size: 16px;

    letter-spacing: 0.5px;
}


.brand-subtitle {

    color: var(--muted);

    font-size: 10px;

    letter-spacing: 1.5px;

    font-weight: 700;
}


.header-status {

    color: var(--muted);

    font-size: 13px;

    display: flex;

    align-items: center;

    gap: 7px;
}


.status-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: var(--success);
}


/* ==========================================
   GENERAL
========================================== */

.page-container {

    width: min(1120px, 92%);

    margin: 0 auto;

    padding: 44px 0 70px;
}


.hidden {
    display: none !important;
}


/* ==========================================
   HERO
========================================== */

.hero-card {

    min-height: 330px;

    border-radius: 28px;

    padding: 48px;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #172554
        );

    color: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    overflow: hidden;

    position: relative;

    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}


.hero-card::after {

    content: "";

    position: absolute;

    width: 300px;

    height: 300px;

    border-radius: 50%;

    right: -90px;

    top: -100px;

    background:
        rgba(59, 130, 246, 0.18);
}


.hero-content {

    max-width: 700px;

    position: relative;

    z-index: 2;
}


.eyebrow {

    color: #60a5fa;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


.hero-card h1 {

    margin: 16px 0;

    font-size: clamp(34px, 6vw, 60px);

    line-height: 1.04;

    letter-spacing: -2px;
}


.hero-card p {

    color: #cbd5e1;

    font-size: 16px;

    line-height: 1.7;

    max-width: 600px;
}


.hero-badge {

    width: 150px;

    height: 150px;

    border-radius: 35px;

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

    border: 1px solid rgba(255,255,255,0.12);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    position: relative;

    z-index: 2;

    transform: rotate(4deg);
}


.hero-badge strong {

    font-size: 36px;

    letter-spacing: -2px;
}


.hero-badge span {

    color: #93c5fd;

    font-weight: 800;

    letter-spacing: 3px;
}


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

.section-heading {

    margin: 46px 0 22px;

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 20px;
}


.section-label {

    color: var(--muted);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.section-heading h2 {

    margin: 5px 0 0;

    font-size: 28px;

    letter-spacing: -1px;
}


.count-badge {

    background: white;

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

    padding: 8px 13px;

    border-radius: 10px;

    color: var(--muted);

    font-size: 12px;

    font-weight: 700;
}


/* ==========================================
   SERIES GRID
========================================== */

.series-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 18px;
}


.series-card {

    background: var(--surface);

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

    border-radius: var(--radius);

    padding: 24px;

    box-shadow: var(--shadow);

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


.series-card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 18px 38px rgba(15, 23, 42, 0.11);
}


.series-icon {

    width: 48px;

    height: 48px;

    border-radius: 14px;

    display: grid;

    place-items: center;

    background: #eff6ff;

    color: var(--primary);

    font-weight: 900;

    margin-bottom: 20px;
}


.series-card h3 {

    margin: 0 0 8px;

    font-size: 20px;
}


.series-card p {

    color: var(--muted);

    line-height: 1.6;

    font-size: 14px;

    min-height: 44px;
}


.series-meta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 22px;

    padding-top: 17px;

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


.series-meta span {

    color: var(--muted);

    font-size: 12px;
}


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

button {

    font-family: inherit;

    cursor: pointer;
}


.primary-button {

    border: 0;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    border-radius: 12px;

    padding: 12px 18px;

    font-weight: 800;

    font-size: 13px;

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.18);

    transition: transform 0.15s ease;
}


.primary-button:hover {

    transform: translateY(-1px);
}


.secondary-button {

    background: white;

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

    color: var(--text);

    border-radius: 10px;

    padding: 10px 14px;

    font-weight: 700;

    font-size: 12px;
}


.secondary-button:hover {

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


.back-button {

    background: transparent;

    border: 0;

    padding: 5px 0;

    color: var(--muted);

    font-weight: 700;

    margin-bottom: 22px;
}


/* ==========================================
   TEST LIST
========================================== */

.series-header-card {

    background: white;

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

    border-radius: 20px;

    padding: 30px;

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


.series-header-card h1 {

    margin: 8px 0;

    font-size: 32px;

    letter-spacing: -1px;
}


.series-header-card p {

    margin: 0;

    color: var(--muted);

    line-height: 1.6;
}


.test-list {

    display: grid;

    gap: 13px;
}


.test-card {

    background: white;

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

    border-radius: 16px;

    padding: 18px;

    display: flex;

    align-items: center;

    gap: 18px;

    box-shadow: 0 5px 18px rgba(15,23,42,0.04);
}


.test-number {

    min-width: 52px;

    height: 52px;

    border-radius: 14px;

    background: #eff6ff;

    color: var(--primary);

    display: grid;

    place-items: center;

    font-weight: 900;

    font-size: 14px;
}


.test-info {

    flex: 1;
}


.test-info h3 {

    margin: 0 0 5px;

    font-size: 16px;
}


.test-info p {

    margin: 0;

    color: var(--muted);

    font-size: 12px;
}


/* ==========================================
   START SCREEN
========================================== */

.start-card {

    background: white;

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

    border-radius: 24px;

    padding: clamp(24px, 5vw, 48px);

    box-shadow: var(--shadow);

    max-width: 850px;

    margin: 0 auto;
}


.start-card h1 {

    margin: 10px 0;

    font-size: clamp(28px, 5vw, 42px);

    letter-spacing: -1.5px;
}


.start-card > p {

    color: var(--muted);

    line-height: 1.6;
}


.test-stats {

    display: grid;

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

    gap: 10px;

    margin: 30px 0;
}


.stat-card {

    background: var(--surface-soft);

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

    border-radius: 14px;

    padding: 16px;
}


.stat-card span {

    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-bottom: 7px;
}


.stat-card strong {

    font-size: 18px;
}


.instructions-box {

    background: #f8fafc;

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

    border-radius: 15px;

    padding: 20px;

    margin-bottom: 25px;
}


.instructions-box h3 {

    margin-top: 0;
}


.instructions-box li {

    color: var(--muted);

    line-height: 1.7;

    margin-bottom: 6px;
}


.start-button {

    width: 100%;

    padding: 16px;

    font-size: 15px;
}


/* ==========================================
   CBT LAYOUT
========================================== */

.cbt-layout {

    width: min(1250px, 94%);

    margin: 0 auto;

    padding: 28px 0 50px;

    display: grid;

    grid-template-columns: 1fr 310px;

    gap: 20px;
}


.cbt-main {

    min-width: 0;
}


.question-topbar {

    background: white;

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

    border-radius: 16px;

    padding: 15px 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 14px;
}


.question-label {

    color: var(--muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.question-counter {

    margin-top: 3px;

    font-size: 14px;

    font-weight: 800;
}


.timer {

    min-width: 92px;

    text-align: center;

    padding: 11px;

    border-radius: 11px;

    background: #eff6ff;

    color: var(--primary);

    font-weight: 900;

    font-variant-numeric: tabular-nums;
}


.timer.warning {

    background: #fff7ed;

    color: var(--warning);
}


.timer.danger {

    background: #fef2f2;

    color: var(--danger);
}


.question-card {

    background: white;

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

    border-radius: 18px;

    padding: clamp(22px, 4vw, 34px);

    box-shadow: var(--shadow);

    min-height: 390px;
}


.question-text {

    font-size: clamp(18px, 2.4vw, 23px);

    font-weight: 700;

    line-height: 1.6;

    margin-bottom: 28px;
}


.options-container {

    display: grid;

    gap: 12px;
}


.option {

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

    background: white;

    border-radius: 13px;

    padding: 15px;

    display: flex;

    align-items: center;

    gap: 12px;

    text-align: left;

    width: 100%;

    color: var(--text);

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


.option:hover {

    border-color: #93c5fd;

    background: #f8fbff;
}


.option.selected {

    border-color: var(--primary);

    background: #eff6ff;
}


.option-letter {

    width: 31px;

    height: 31px;

    border-radius: 9px;

    background: #f1f5f9;

    display: grid;

    place-items: center;

    font-weight: 900;

    font-size: 12px;

    flex-shrink: 0;
}


.option.selected .option-letter {

    background: var(--primary);

    color: white;
}


.question-actions {

    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin: 13px 0;
}


.navigation {

    display: flex;

    justify-content: space-between;

    gap: 10px;
}


.nav-button {

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

    background: white;

    padding: 13px 18px;

    border-radius: 11px;

    font-weight: 800;
}


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

.cbt-sidebar {

    position: sticky;

    top: 92px;

    height: fit-content;
}


.sidebar-card {

    background: white;

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

    border-radius: 18px;

    padding: 18px;

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


.sidebar-title {

    font-weight: 800;

    font-size: 14px;

    margin-bottom: 16px;
}


.question-palette {

    display: grid;

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

    gap: 7px;
}


.palette-button {

    aspect-ratio: 1;

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

    border-radius: 8px;

    background: white;

    font-size: 11px;

    font-weight: 800;
}


.palette-button.current {

    border-color: var(--primary);

    color: var(--primary);

    box-shadow:
        inset 0 0 0 1px var(--primary);
}


.palette-button.answered {

    background: #dcfce7;

    border-color: #86efac;

    color: #166534;
}


.palette-button.marked {

    background: #fef3c7;

    border-color: #fcd34d;

    color: #92400e;
}


.palette-legend {

    display: grid;

    gap: 8px;

    margin: 18px 0;

    padding-top: 15px;

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


.palette-legend div {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 11px;

    color: var(--muted);
}


.legend-dot {

    width: 9px;

    height: 9px;

    border-radius: 3px;

    display: inline-block;
}


.legend-dot.answered {
    background: #22c55e;
}

.legend-dot.unanswered {
    background: #cbd5e1;
}

.legend-dot.marked {
    background: #f59e0b;
}


.submit-button {

    width: 100%;

    border: 0;

    border-radius: 11px;

    padding: 13px;

    background: #111827;

    color: white;

    font-weight: 800;
}


/* ==========================================
   MODAL / RESULT
========================================== */

.modal {

    position: fixed;

    inset: 0;

    background:
        rgba(15, 23, 42, 0.65);

    display: grid;

    place-items: center;

    padding: 20px;

    z-index: 1000;

    backdrop-filter: blur(5px);
}


.result-card {

    width: min(430px, 100%);

    background: white;

    border-radius: 24px;

    padding: 32px;

    text-align: center;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.2);
}


.result-icon {

    width: 58px;

    height: 58px;

    margin: 0 auto 16px;

    border-radius: 50%;

    background: #dcfce7;

    color: #15803d;

    display: grid;

    place-items: center;

    font-size: 24px;

    font-weight: 900;
}


.result-card h2 {

    margin: 8px 0 20px;

    font-size: 28px;
}


.score-display {

    margin-bottom: 24px;
}


.score-display span {

    display: block;

    font-size: 55px;

    line-height: 1;

    font-weight: 900;

    color: var(--primary);
}


.score-display small {

    color: var(--muted);

    font-weight: 700;
}


.result-grid {

    display: grid;

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

    gap: 8px;

    margin-bottom: 25px;
}


.result-grid div {

    background: var(--surface-soft);

    border-radius: 12px;

    padding: 12px 5px;
}


.result-grid span {

    display: block;

    font-size: 10px;

    color: var(--muted);

    margin-bottom: 4px;
}


.result-grid strong {

    font-size: 18px;
}


.result-card .primary-button {

    width: 100%;
}


/* ==========================================
   LOADING
========================================== */

.loading-card {

    grid-column: 1 / -1;

    padding: 40px;

    text-align: center;

    background: white;

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

    border-radius: var(--radius);

    color: var(--muted);
}


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

.site-footer {

    text-align: center;

    padding: 20px;

    color: var(--muted);

    font-size: 11px;

    letter-spacing: 0.7px;
}


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

@media (max-width: 850px) {

    .hero-card {

        padding: 32px;

    }

    .hero-badge {

        display: none;
    }

    .cbt-layout {

        grid-template-columns: 1fr;
    }

    .cbt-sidebar {

        position: static;
    }

    .test-stats {

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

}


@media (max-width: 560px) {

    .site-header {

        padding: 0 4%;

        height: 64px;
    }

    .header-status {

        display: none;
    }

    .page-container {

        width: 92%;

        padding-top: 25px;
    }

    .hero-card {

        min-height: 300px;

        border-radius: 22px;

        padding: 27px;
    }

    .hero-card h1 {

        font-size: 35px;
    }

    .section-heading h2 {

        font-size: 23px;
    }

    .test-card {

        align-items: flex-start;

        flex-wrap: wrap;
    }

    .test-info {

        min-width: calc(100% - 75px);
    }

    .test-card .primary-button {

        width: 100%;
    }

    .question-actions {

        flex-direction: column;
    }

    .question-actions button {

        width: 100%;
    }

    .navigation button {

        flex: 1;
    }

}

/* =========================================
   TEAM ELITE — PROFESSIONAL DASHBOARD
========================================= */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0 34px;
}

.dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
}

.dashboard-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 22px;
}

.dashboard-stat-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.6;
}

.dashboard-stat-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
}

.dashboard-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.dashboard-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 21px;
}

.dashboard-info-card h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.dashboard-info-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.65;
}


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

@media (max-width: 760px) {

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 20px 0 28px;
    }

    .dashboard-stat-card {
        padding: 16px;
        border-radius: 16px;
    }

    .dashboard-stat-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .dashboard-stat-card strong {
        font-size: 20px;
    }

    .dashboard-info-card {
        align-items: flex-start;
        margin-top: 26px;
        padding: 18px;
        border-radius: 16px;
    }

    .dashboard-info-card h3 {
        font-size: 15px;
    }

    .dashboard-info-card p {
        font-size: 12px;
    }

}


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

@media (max-width: 420px) {

    .dashboard-stat-card {
        gap: 12px;
    }

    .dashboard-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .dashboard-stat-label {
        font-size: 10px;
    }

    .dashboard-stat-card strong {
        font-size: 18px;
    }

}

/* =========================================
   TEAM ELITE — PROFESSIONAL DASHBOARD
========================================= */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0 34px;
}

.dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
}

.dashboard-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 22px;
}

.dashboard-stat-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.6;
}

.dashboard-stat-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
}

.dashboard-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.dashboard-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 21px;
}

.dashboard-info-card h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.dashboard-info-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.65;
}


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

@media (max-width: 760px) {

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 20px 0 28px;
    }

    .dashboard-stat-card {
        padding: 16px;
        border-radius: 16px;
    }

    .dashboard-stat-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .dashboard-stat-card strong {
        font-size: 20px;
    }

    .dashboard-info-card {
        align-items: flex-start;
        margin-top: 26px;
        padding: 18px;
        border-radius: 16px;
    }

    .dashboard-info-card h3 {
        font-size: 15px;
    }

    .dashboard-info-card p {
        font-size: 12px;
    }

}


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

@media (max-width: 420px) {

    .dashboard-stat-card {
        gap: 12px;
    }

    .dashboard-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .dashboard-stat-label {
        font-size: 10px;
    }

    .dashboard-stat-card strong {
        font-size: 18px;
    }

}
