/* quiz-timer.css */
#confirm-popup {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    height: 60%;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    justify-content: center;
    align-items: top;
}

.quiz-popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.quiz-popup-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.quiz-popup-content p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.quiz-form-group {
    margin-bottom: 20px;
}

.quiz-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.quiz-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.quiz-popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.quiz-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.quiz-btn-cancel {
    background: #f44336;
}

.quiz-btn-confirm {
    background: #4CAF50;
}

/* Custom Action Buttons */
.quiz-custom-buttons {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 20px;
    z-index: 10000;
}

.quiz-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.quiz-btn:hover {
    transform: scale(1.05);
}

.quiz-btn-redo {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.quiz-btn-submit {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

/* Statistics Overlay */
.quiz-statistics-overlay {
    position: fixed;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    display: none;
}

.quiz-statistics-overlay h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    text-align: center;
    color: #fff;
}

.stats-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.stats-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    font-weight: bold;
}

.stats-item span {
    font-size: 18px;
}

.correct span { color: #a8e6cf; }
.incorrect span { color: #ff8b94; }
.unanswered span { color: #ffd3b6; }

.stats-total {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 10px;
}

#countdown-timer {
    text-align: center;
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
}
.thi_sinh{
    position:fixed;
    z-index:100;
    bottom: 200px;
    left:5px;
    text-align:center;
    width:auto;
    border-radius:0%;
    color:#00c479;
}