body {
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
}

.login-bg {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f7c 100%);
}

.login-card {
    max-width: 440px;
    width: 100%;
    border: none;
    border-radius: 16px;
}

.exam-navbar {
    z-index: 1030;
}

#timer {
    font-variant-numeric: tabular-nums;
    min-width: 84px;
    text-align: center;
}

#timer.timer-warning {
    background-color: #dc3545 !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.55; }
    100% { opacity: 1; }
}

.question-card {
    border-radius: 12px;
    border: none;
}

.option-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 1.02rem;
}

.option-label:active {
    transform: scale(0.99);
}

.option-label.option-selected {
    border-color: #0d6efd;
    background-color: #eaf2ff;
}

.option-input {
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.option-key {
    font-weight: 700;
    width: 22px;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
}

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

.q-tile {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    color: #fff;
    background-color: #6c757d;
    border: none;
}

.q-tile.answered {
    background-color: #198754;
}

.q-tile.current {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.legend-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 4px;
}

@media (max-width: 576px) {
    .question-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .btn-lg {
        font-size: 1rem;
    }
}
