:root {
    --primary: #0d6efd;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-page {
    background:
        radial-gradient(circle at top right, rgba(13,110,253,.25), transparent 35%),
        linear-gradient(135deg, #eef5ff, #f8fbff);
}

.brand-logo {
    width: 64px;
    height: 64px;
    margin: auto;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--primary);
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}

.exam-page {
    background: #f3f6fa;
}

.exam-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: #fff;
    background: #0d6efd;
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
}

.timer-box {
    min-width: 120px;
    padding: 8px 14px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255,255,255,.18);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.timer-box.danger {
    background: #dc3545;
}

.question-slide {
    display: none;
}

.question-slide.active {
    display: block;
}

.question-text {
    font-size: 19px;
    line-height: 1.7;
}

.answer-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    transition: .2s;
    background: #fff;
}

.answer-option:hover {
    border-color: #0d6efd;
    background: #f5f9ff;
}

.answer-option input {
    margin-top: 7px;
}

.option-letter {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e9ecef;
    font-weight: 700;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.question-number {
    border: 1px solid #ced4da;
    background: #fff;
    border-radius: 8px;
    padding: 8px 0;
    font-weight: 700;
}

.question-number.answered {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.question-number.marked {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.question-number.current {
    outline: 3px solid rgba(13,110,253,.25);
}

@media (max-width: 768px) {
    .exam-header {
        padding: 10px 12px;
    }

    .timer-box {
        min-width: 100px;
        font-size: 17px;
    }

    .question-text {
        font-size: 17px;
    }
}
