/*
 * HDFC SKY-inspired theme.
 * Colors sampled directly from client logo + homepage screenshot:
 *   - brand blue (logo wordmark)      #024FEC
 *   - gradient navy -> indigo (CTAs)  #242B6E -> #4E5DF0
 *   - heading accent purple           #6C6AF3
 */
:root {
    --brand-blue: #024FEC;
    --brand-indigo: #4E5DF0;
    --brand-navy: #1B2160;
    --brand-navy-deep: #242B6E;
    --brand-purple: #6C6AF3;
    --brand-bg: #F5F7FF;
    --brand-bg-soft: #EEF2FE;
    --brand-text: #12183B;
    --brand-border: #E1E7FB;

    /* Remap Bootstrap's primary to the brand blue so existing .btn-primary,
       .text-primary, .bg-primary, .badge.bg-primary etc. pick it up
       automatically without touching every view. */
    --bs-primary: var(--brand-blue);
    --bs-primary-rgb: 2, 79, 236;
    --bs-link-color: var(--brand-blue);
    --bs-link-color-rgb: 2, 79, 236;
    --bs-link-hover-color: var(--brand-navy);
}

body {
    color: var(--brand-text);
}

a {
    color: var(--brand-blue);
}
a:hover {
    color: var(--brand-navy);
}

.btn-primary {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--brand-navy) !important;
    border-color: var(--brand-navy) !important;
}

.btn-outline-primary {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}
.btn-outline-primary:hover {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.text-primary { color: var(--brand-blue) !important; }
.badge.bg-primary { background-color: var(--brand-blue) !important; }

/* Gradient CTA button — used for the main "do the thing" action on a page
   (Start Exam, Submit Exam, Login, Save). Mirrors the client's "Apply Now"
   button gradient. */
.btn-brand {
    background: linear-gradient(90deg, var(--brand-navy-deep), var(--brand-indigo));
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: .65rem 2rem;
    transition: opacity .15s ease, transform .15s ease;
}
.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    opacity: .92;
}
.btn-brand:active {
    transform: scale(0.98);
}
.btn-brand.btn-lg {
    padding: .85rem 2.5rem;
    font-size: 1.1rem;
}
.btn-brand:disabled {
    opacity: .6;
}

.btn-brand-outline {
    background: #fff;
    border: 1.5px solid var(--brand-blue);
    color: var(--brand-blue);
    font-weight: 600;
    border-radius: 999px;
    padding: .6rem 1.75rem;
}
.btn-brand-outline:hover {
    background: var(--brand-bg-soft);
    color: var(--brand-navy);
    border-color: var(--brand-navy);
}

/* Gradient heading text, like the "3 in 1 Account" headline on the
   client's homepage. Use sparingly — one heading per page. */
.text-gradient-brand {
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-indigo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Admin shell ---------- */
.navbar-brand-admin {
    background: #fff;
    box-shadow: 0 1px 3px rgba(18, 24, 59, .08);
}
.navbar-brand-admin .navbar-brand img {
    height: 32px;
}
.navbar-brand-admin .nav-user {
    color: var(--brand-text);
    font-weight: 500;
}

body.admin-body {
    background: var(--brand-bg);
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(18, 24, 59, .08);
    border-radius: 12px;
}
.card-header {
    background: #fff;
    border-bottom: 1px solid var(--brand-border);
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* ---------- Public / student-facing shell ---------- */
body.public-body {
    background: var(--brand-bg);
    min-height: 100vh;
}

.quiz-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.quiz-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0 2rem;
}
.quiz-topbar img {
    height: 70px;
}

.quiz-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(18, 24, 59, .08);
    overflow: hidden;
}
.quiz-card-accent {
    height: 5px;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-blue), var(--brand-indigo));
}

.quiz-badge {
    display: inline-block;
    background: var(--brand-bg-soft);
    color: var(--brand-navy);
    border-radius: 999px;
    padding: .3rem 1rem;
    font-size: .85rem;
    font-weight: 600;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 .2rem rgba(2, 79, 236, .15);
}

.question-block {
    border-bottom: 1px solid var(--brand-border);
}

.list-group-item.option-row {
    border-radius: 10px !important;
    margin-bottom: .5rem;
    border: 1px solid var(--brand-border);
    transition: border-color .15s ease, background .15s ease;
}
.list-group-item.option-row:hover {
    border-color: var(--brand-blue);
    background: var(--brand-bg-soft);
}
.list-group-item.option-row:has(input:checked) {
    border-color: var(--brand-blue);
    background: var(--brand-bg-soft);
}

/* ---------- Bull / Bear choice buttons ---------- */
.choice-group {
    display: flex;
    gap: 1rem;
}
.choice-btn {
    flex: 1;
    border: 2px solid var(--brand-border);
    border-radius: 14px;
    padding: 1.1rem;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
    user-select: none;
}
.choice-btn:hover {
    border-color: var(--brand-blue);
}
.choice-btn:active {
    transform: scale(0.98);
}
.choice-btn .choice-emoji {
    font-size: 2rem;
    line-height: 1;
    display: block;
    margin-bottom: .35rem;
}
.choice-btn .choice-label {
    font-weight: 600;
}
.choice-btn.is-selected.choice-bull {
    /*border-color: #198754;*/
    /*background: #e9f7ef;*/
    
    border-color: #4e5df0;
    background: #03a9f400;
}
.choice-btn.is-selected.choice-bear {
    /*border-color: #dc3545;*/
    /*background: #fdeceb;*/
    
    border-color: #4e5df0;
    background: #03a9f400;
}
.choice-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ---------- Results page: dark branded theme ---------- */
.results-shell {
    background: #020b43;
    min-height: 100vh;
    color: #fff;
    padding: clamp(20px, 3vw, 48px) 16px;
}
.results-shell .results-logo {
    display: block;
    height: 80px;
    margin: 0 auto clamp(20px, 3vw, 36px);
}
.results-container {
    max-width: 1100px;
    margin: 0 auto;
}
.results-panel {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    backdrop-filter: blur(6px);
}
.results-score-panel {
    padding: 2rem;
    text-align: center;
}
.results-score-panel .score-big {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--brand-purple), #7EE8D8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.results-shell .text-muted-light {
    color: #b8bfe8;
}
.recap-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-left-width: 4px;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin-bottom: .85rem;
}
.recap-card.is-correct { border-left-color: #34d399; }
.recap-card.is-incorrect { border-left-color: #f87171; }
.recap-card.is-unanswered { border-left-color: #7c85b8; }
.recap-card .headline { font-weight: 600; margin-bottom: .25rem; }
.recap-card .news { color: #b8bfe8; font-size: .9rem; margin-bottom: .5rem; }
.recap-card .why { color: #dbe0ff; font-size: .85rem; margin-top: .5rem; }

.qr-panel {
    background: #fff;
    border-radius: 20px;
    margin: 0 24px;
    padding: 1.75rem;
    text-align: center;
    color: #12183B;
}
.qr-panel .qr-box {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--brand-border);
}
.qr-panel h6 {
    font-weight: 700;
    margin: 1rem 0 .35rem;
}

/* Results recap: correct/incorrect row styling */
.recap-row.is-correct {
    border-left: 4px solid #198754;
}
.recap-row.is-incorrect {
    border-left: 4px solid #dc3545;
}
.recap-row.is-unanswered {
    border-left: 4px solid #adb5bd;
}
 @media (max-width: 450px) {
     .qr-panel {
   
    margin: 0;
    
}
 }