/* 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);
}

.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;
}

.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; 
}

.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;
}

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

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

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

#wordCount {
    font-weight: 600;
}

/* Image's description update */
.desc-updated {
    animation: descFlash 2s ease-in-out;
}

@keyframes descFlash {
    0% {
        background-color: #fdecde;
    }
    20% {
        background-color: #fdecde;
    }
    100% {
        background-color: white;
    }
}

#statusBox {
    transition: opacity 0.5s ease;
    opacity: 1;
}

    #statusBox.fade-out {
        opacity: 0;
    }

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}