﻿:root {
    --navy: #002349;
    --gold: #c49e5d;
    --white: #fff;
    --green: #2e7d32;
    --red: #d32f2f;
}

body {
    font-family: sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
}

#app {
    width: 100%;
    max-width: 450px;
    background: var(--white);
    min-height: 95vh;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header {
    text-align: center;
    border-bottom: 2px solid var(--navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.brand {
    font-weight: 800;
    font-size: 22px;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hidden {
    display: none !important;
}

.view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
}

.main-btn {
    background: var(--navy);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.2s;
}

    .main-btn:active {
        opacity: 0.8;
    }

.option-card {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
    font-size: 15px;
    background: #fff;
    transition: transform 0.1s;
}

    .option-card:hover {
        border-color: var(--navy);
    }

.is-correct {
    background-color: var(--green) !important;
    color: white;
    border-color: var(--green);
}

.is-wrong {
    background-color: var(--red) !important;
    color: white;
    border-color: var(--red);
}

.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background: var(--navy);
    width: 0%;
    transition: 0.3s;
}

.score-box {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid var(--gold);
    border-radius: 10px;
}

#score-pct {
    font-size: 50px;
    font-weight: bold;
    color: var(--navy);
}

/* NEW: Style for the Date/Time in the Report */
#res-rank span {
    display: block;
    margin-top: 8px;
    font-size: 0.85em;
    font-weight: normal;
    color: #555;
    line-height: 1.4;
}

/* NEW: Optimized Gap Items for the PDF Report */
.ref-item {
    font-size: 14px;
    background: #fdfdfd;
    padding: 12px;
    border-left: 4px solid var(--red);
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    page-break-inside: avoid; /* Essential for clean PDF pages */
    text-align: left;
}

.foot-note {
    font-size: 12px;
    color: #666;
    text-align: center;
}
