/* Intern Test Portal — Coca-Cola red brand */
:root {
    --itp-primary: #C8000A;   /* Coca-Cola red */
    --itp-navy: #7a0008;      /* deep brand red (dark) */
    --bs-primary: #C8000A;
}

/* App-wide compact base font. All Bootstrap/rem sizing scales from this.
   (The Welcome Wall & QR poster are standalone — they don't load this file
   or use viewport units, so the big-screen displays stay full size.) */
html { font-size: 14px; }

/* Tighten the admin navbar a little so the grouped menu sits on one line */
.itp-navbar .nav-link { padding-left: .7rem; padding-right: .7rem; }
.itp-navbar .dropdown-menu { font-size: .95rem; }

/* Recolour Bootstrap primary controls to brand red */
.btn-primary {
    --bs-btn-bg: #C8000A; --bs-btn-border-color: #C8000A;
    --bs-btn-hover-bg: #a3000a; --bs-btn-hover-border-color: #a3000a;
    --bs-btn-active-bg: #8a0008; --bs-btn-active-border-color: #8a0008;
    --bs-btn-disabled-bg: #C8000A; --bs-btn-disabled-border-color: #C8000A;
}
.btn-outline-primary {
    --bs-btn-color: #C8000A; --bs-btn-border-color: #C8000A;
    --bs-btn-hover-bg: #C8000A; --bs-btn-hover-border-color: #C8000A;
    --bs-btn-active-bg: #a3000a; --bs-btn-active-border-color: #a3000a;
}
.text-bg-primary { background-color: #C8000A !important; }
a { color: #a3000a; }

body {
    background: #f6f4f4;
}

.itp-navbar {
    background: linear-gradient(90deg, #7a0008, #C8000A);
}

.itp-auth-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #7a0008 0%, #C8000A 60%, #e21420 100%);
}

/* Test-taking screen helpers (used by the test engine later) */
.itp-timer {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.itp-question-card {
    border: 1px solid #e3e6ea;
    border-radius: .5rem;
}

.itp-option {
    cursor: pointer;
}
.itp-option:hover {
    background: #f0f4ff;
}

/* ---- Intern-facing mobile-first shell (Enroll / Instructions / Test / Result) ---- */
.itp-shell {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.itp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    padding: 24px;
}

.itp-brand {
    margin-bottom: 18px;
}
.itp-brand > .bi {
    font-size: 2.2rem;
    color: var(--itp-navy);
}
.itp-brand-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--itp-navy);
    line-height: 1.2;
}
.itp-brand-sub {
    font-size: .85rem;
    color: #6c757d;
}

.itp-campaign-pill {
    background: #fde7e7;
    color: #a3000a;
    font-weight: 600;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: .95rem;
}

/* Big, thumb-friendly inputs/buttons on phones */
.itp-card .form-control-lg {
    font-size: 1rem;
    padding: .7rem .9rem;
}
.itp-card .btn-lg {
    padding: .8rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
}
.itp-rules .list-group-item {
    padding: .65rem .25rem;
    font-size: .95rem;
}

/* On very small phones, let the card breathe to screen edges */
@media (max-width: 400px) {
    .itp-shell { padding: 8px; }
    .itp-card { padding: 18px; border-radius: 12px; }
}

/* ===== Test-taking screen ===== */
.itp-test-body {
    background: #eef1f6;
    padding-bottom: 24px;
}

.itp-test-bar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--itp-navy);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.itp-test-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 12px;
}
.itp-test-title {
    font-weight: 600;
    font-size: .95rem;
    max-width: 60%;
}
.itp-timer-box {
    background: rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 1.05rem;
    white-space: nowrap;
}
.itp-timer-warn {
    color: #ffd24d;
    animation: itp-blink 1s steps(2, start) infinite;
}
@keyframes itp-blink { to { opacity: .45; } }
.itp-progress-row {
    padding: 6px 14px;
    background: rgba(0,0,0,.15);
    font-size: .8rem;
}

.itp-test-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 14px;
}

.itp-q {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.itp-q-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.itp-q-num {
    font-weight: 700;
    color: var(--itp-navy);
}
.itp-q-cat {
    font-size: .72rem;
    background: #fde7e7;
    color: #a3000a;
    padding: 2px 8px;
    border-radius: 999px;
}
.itp-q-text {
    font-size: 1.02rem;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.45;
}
.itp-opts { display: flex; flex-direction: column; gap: 8px; }
.itp-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #e1e6ee;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: border-color .12s, background .12s;
    margin: 0;
}
.itp-opt:hover { border-color: #e89aa0; }
.itp-opt input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: #C8000A; }
.itp-opt-key {
    font-weight: 700;
    color: #6c757d;
    width: 1.3em;
}
.itp-opt-text { flex: 1; }
/* highlight the selected option row */
.itp-opt:has(input:checked) {
    border-color: var(--itp-primary);
    background: #fdeaea;
}

/* ===== Result screen ===== */
.itp-outcome-icon { font-size: 3rem; line-height: 1; }
.itp-score-ring {
    background: #f1f5fb;
    border-radius: 16px;
    padding: 18px;
}
.itp-score-pct {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--itp-navy);
    line-height: 1;
}
.itp-score-sub { color: #6c757d; font-size: .9rem; }
.itp-stat { background: #f7f9fc; border-radius: 10px; padding: 10px 4px; }
.itp-stat-v { font-size: 1.4rem; font-weight: 700; }
.itp-stat-l { font-size: .72rem; color: #6c757d; text-transform: uppercase; }
.itp-cat-table th { font-size: .76rem; color: #6c757d; text-transform: uppercase; }
.itp-cat-table td { font-size: .9rem; }

/* ranking avatar thumbnail */
.itp-rank-ava {
    width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
    vertical-align: middle; margin-right: 6px; border: 1px solid #eee;
}
