﻿/* Container */
.vada-container {
    padding: 0 !important;
    max-width: 720px;
    margin: 0 auto;
}

/* Card */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

/* Inputs */
input, select, button {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

    /* Buttons */
    button.primary {
        background: #0078d4;
        color: #fff;
        border: none;
    }

        button.primary:hover {
            background: #005fa3;
        }

    button:hover {
        cursor: pointer;
    }

/* Exam list */
.exam-card {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 12px;
}

.exam-title {
    font-size: 18px;
    font-weight: bold;
}

.exam-time {
    margin-top: 4px;
    color: #555;
}

/* Question choices */
.choice {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fafafa;
}

/* Progress bar */
.progress {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

    .progress > i {
        display: block;
        height: 100%;
        background: #0078d4;
        width: 0%;
    }

/* Navigation buttons */
.nav-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Muted text */
.muted {
    color: #666;
}

/* Highlighted ccid */
.ccid-input-active {
    background-color: #fff7d1 !important; 
    transition: background-color 0.2s ease;
}

.ccid-input-valid {
    background-color: white !important;
    transition: background-color 0.2s ease;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

    .info-row:last-child {
        border-bottom: none;
    }

    .info-row .label {
        color: #555;
        width: 120px; 
    }

    .info-row .value {
        font-weight: 600; 
        text-align: right;
        flex: 1;
    }

/* Card thông tin thí sinh */
.user-info-card {
    border: none;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Thẻ lịch sử thi tối ưu cho Phone */
.history-card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    margin-bottom: 12px;
}

.status-line {
    width: 5px;
    border-radius: 5px;
    margin-right: 12px;
}

.bg-pass {
    background-color: #28a745;
}

.bg-fail {
    background-color: #dc3545;
}

.score-value {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.mini-bar {
    height: 4px;
    background: #eee;
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

/* Container của thanh progress */
.exam-progress-container {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

/* Thanh chạy */
.exam-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00d2ff);
    border-radius: 10px;
    transition: width 0.4s ease-in-out; /* Hiệu ứng chạy mượt */
}

/* Text hiển thị chỉ số (ví dụ: 5/20) */
.progress-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
}

.result-box {
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-success {
    background-color: #f0fff4;
    border: 2px solid #28a745;
}

.result-fail {
    background-color: #fff5f5;
    border: 2px solid #dc3545;
}

.result-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.score-big {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

/* Final Review */
.question-block {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
}

.question-text {
    font-weight: 600;
    margin-bottom: 10px;
}

.answer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}

    .answer-item input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 22px;
        height: 22px;
        border: 2px solid #999;
        border-radius: 4px;
        position: relative;
        background: #fff;
        cursor: default;
    }

        .answer-item input[type="checkbox"]::after {
            content: "";
            position: absolute;
            width: 20px;
            height: 20px;
            top: 2px;
            left: 2px;
            background: transparent;
            border-radius: 2px;
        }

        .answer-item input[type="checkbox"]:checked::after {
            background: currentColor;
        }

    .answer-item.selected-correct {
        color: #007bff;
        font-weight: 600;
    }

        .answer-item.selected-correct input[type="checkbox"] {
            color: #007bff;
            border-color: #007bff;
        }

    .answer-item.wrong {
        color: #d00000;
        font-weight: 600;
    }

        .answer-item.wrong input[type="checkbox"] {
            color: #d00000;
            border-color: #d00000;
        }

        .answer-item.wrong .answer-text {
            text-decoration: line-through;
        }

    .answer-item.correct-answer {
        color: #008000;
        font-weight: 600;
    }

        .answer-item.correct-answer input[type="checkbox"] {
            color: #008000;
            border-color: #008000;
        }

.answer-text {
    flex: 1;
    line-height: 1.4;
}

.answer-explanation {
    padding: 10px 12px;
    border: 1px solid #0dcaf0;
    border-radius: 5px;
    font-style: italic;
}


.info-row {
    display: flex;
    margin-bottom: 6px;
}

.info-label {
    min-width: 140px; 
}

.info-value {
    font-weight: 600;
}
