﻿: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;
}

.header {
    text-align: center;
    border-bottom: 2px solid var(--navy);
    margin-bottom: 20px;
}

.brand {
    font-weight: 800;
    font-size: 20px;
    color: var(--navy);
}

.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;
}

.main-btn {
    background: var(--navy);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.option-card {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
    font-size: 15px;
    background: #fff;
}

.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: 6px;
    background: #eee;
    border-radius: 3px;
}

#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);
}

.ref-item {
    font-size: 13px;
    background: #fff4e5;
    padding: 10px;
    border-left: 4px solid var(--gold);
    margin-bottom: 8px;
}

#res-rank span {
    display: block;
    margin-top: 5px;
    color: #555;
}

