.exam-page {
    background: #f4f8ff;
    min-height: calc(100vh - 70px);
    padding: 25px;
}

.exam-header {
    background: #0d6efd;
    color: #fff;
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.exam-timer {
    background: #ffffff;
    color: #0d6efd;
    font-size: 24px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
}

.question-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.question-number {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 20px;
}

.question-text {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
}

.option-item:hover {
    background: #eef5ff;
    border-color: #0d6efd;
}

.question-navigator {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.question-group-title {
    color: #0d6efd;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 18px;
    margin-bottom: 10px;
}

.question-number-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef2f7;
    color: #333;
    text-decoration: none;
    margin: 3px;
    font-weight: 600;
}

.question-number-btn.current {
    background: #0d6efd;
    color: #fff;
}

.question-number-btn.answered {
    background: #198754;
    color: #fff;
}

.result-wrapper {
    width: 100%;
    max-width: 860px;
    margin: 60px auto;
    padding: 20px;
    box-sizing: border-box;
}

.result-card {
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    padding: 45px 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    flex-shrink: 0;
}

.result-icon.success {
    background: #e8f7ee;
    color: #198754;
}

.result-icon.failed {
    background: #fdecec;
    color: #dc3545;
}

.result-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.result-message {
    color: #6c757d;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 30px;
    overflow-wrap: anywhere;
}

.result-status {
    display: inline-block;
    max-width: 100%;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.result-status.success {
    background: #198754;
    color: #ffffff;
}

.result-status.failed {
    background: #dc3545;
    color: #ffffff;
}

.result-note {
    margin-top: 30px;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Tablets */
@media (max-width: 768px) {
    .result-wrapper {
        max-width: 600px;
        margin: 35px auto;
        padding: 16px;
    }

    .result-card {
        padding: 35px 24px;
    }

    .result-title {
        font-size: 25px;
    }

    .result-message {
        font-size: 16px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .result-wrapper {
        margin: 20px auto;
        padding: 12px;
    }

    .result-card {
        padding: 28px 18px;
        border-radius: 12px;
    }

    .result-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 20px;
        font-size: 31px;
    }

    .result-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .result-message {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .result-status {
        padding: 9px 18px;
        font-size: 14px;
    }

    .result-note {
        margin-top: 22px;
        font-size: 13px;
    }
}

/* Very small phones */
@media (max-width: 320px) {
    .result-card {
        padding: 24px 14px;
    }

    .result-title {
        font-size: 20px;
    }

    .result-status {
        padding: 8px 12px;
        font-size: 13px;
    }
}

.question-time-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 18px;
    background: #eaf3ff;
    border: 1px solid #cfe2ff;
    border-radius: 6px;
}

.question-time-left strong {
    color: #0d6efd;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

#questionTimeLeft.time-warning {
    color: #dc3545;
}