:root {
    --navy: #10233f;
    --blue: #1d5fd6;
    --blue-light: #eaf1fd;
    --green: #1f9d55;
    --red: #d64545;
    --gray: #6b7280;
    --bg: #f4f6fb;
    --card: #ffffff;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--navy);
}

header.site {
    background: var(--navy);
    color: #fff;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.site a { color: #fff; text-decoration: none; }

header.site .brand { font-weight: 700; font-size: 1.2rem; }

header.site nav a {
    margin-left: 18px;
    font-size: 0.95rem;
    opacity: 0.85;
}
header.site nav a:hover { opacity: 1; text-decoration: underline; }

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(16, 35, 63, 0.08);
    margin-bottom: 24px;
}

h1, h2, h3 { margin-top: 0; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 700px) {
    .grid-2 { grid-template-columns: 1fr; }
}

.landing-card {
    text-align: center;
    padding: 40px 30px;
}
.landing-card .icon { font-size: 2.5rem; margin-bottom: 10px; }

form label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type=text], input[type=email], input[type=password], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d3dae6;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
}
textarea { resize: vertical; min-height: 70px; }

.btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    margin-top: 18px;
}
.btn:hover { background: #1750b3; }
.btn.secondary { background: var(--gray); }
.btn.danger { background: var(--red); }
.btn:disabled { background: #a9b6cc; cursor: not-allowed; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.95rem;
}
.alert.success { background: #e6f7ec; color: var(--green); border: 1px solid #b7e6c6; }
.alert.error { background: #fdecec; color: var(--red); border: 1px solid #f4bcbc; }
.alert.info { background: var(--blue-light); color: var(--blue); border: 1px solid #c9dcf8; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e6e9f0;
    font-size: 0.95rem;
}
th { background: var(--blue-light); color: var(--navy); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}
.badge.ca { background: #eaf1fd; color: var(--blue); }
.badge.exam { background: #fdeeea; color: #c2410c; }

/* ---- Quiz screen ---- */
.quiz-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.timer-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 5px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--blue);
    transition: border-color 0.2s;
}
.timer-ring.urgent { border-color: var(--red); color: var(--red); }

.progress-track {
    background: #e6e9f0;
    height: 8px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}
.progress-fill {
    background: var(--blue);
    height: 100%;
    transition: width 0.25s ease;
}

.option {
    display: block;
    padding: 14px 16px;
    border: 2px solid #e2e7f1;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: border-color 0.15s, background 0.15s;
}
.option:hover { border-color: var(--blue); }
.option.selected { border-color: var(--blue); background: var(--blue-light); }
.option input { margin-right: 10px; }

.locked-box {
    text-align: center;
    padding: 50px 20px;
}
.score-big {
    font-size: 3rem;
    font-weight: 800;
    color: var(--blue);
}

.small { font-size: 0.85rem; color: var(--gray); }
