@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f8ff;
    margin: 0;
    color: #333;
}

/* =============================== */
/* TÙY CHỈNH HEADER (Màu xanh) */
/* =============================== */
.header {
    display: flex;
    align-items: center;
    justify-content: center; /* Căn giữa */
    background-color: #3163ff; /* Màu xanh dương đậm */
    padding: 15px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Tăng khoảng cách */
}

/* Icon (12/34) */
.logo-icon {
    font-size: 28px;
    line-height: 0.8;
    color: #fff;
    font-weight: 700;
}

.logo h1 {
    color: #fff; /* Chữ trắng */
    font-size: 26px;
    margin: 0;
    font-weight: 700;
}

.container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.practice-card {
    background: #fff;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Đổ bóng rõ hơn */
    width: 700px; /* Giữ kích thước tương tự */
    max-width: 100%;
}

.title {
    text-align: center;
    color: #333; /* Đổi màu chữ chính */
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
}

/* =============================== */
/* TÙY CHỈNH PROGRESS BAR */
/* =============================== */
.progress-section {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5ebff; /* Đường kẻ phân cách */
}

.progress-label {
    font-size: 15px;
    color: #666;
    margin-right: 15px;
}

.progress-bar-container {
    flex-grow: 1;
    margin-right: 15px;
}

.progress-bar {
    height: 8px;
    background: #e9ecff;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #3163ff; /* Màu progress bar đậm hơn */
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

/* =============================== */
/* CÂU HỎI VÀ ĐÁP ÁN */
/* =============================== */
.question-card {
    background: #f9faff;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e5ebff;
}

.question {
    color: #333; /* Màu chữ câu hỏi */
    font-size: 17px;
    margin-bottom: 15px;
    font-weight: 400;
}

.question span {
    color: #3163ff; /* Màu cho số Câu hỏi */
    font-weight: 700;
}

.answers {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cột bằng nhau */
    gap: 12px;
}

.answer {
    /* Đã chuyển từ <button> sang <label> để chứa input radio */
    display: block;
    text-align: center;
    background: #fff;
    border: 1px solid #c9d1ff;
    color: #3163ff;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.answer:hover {
    background: #e5ebff; /* Màu hover nhẹ */
    border-color: #3163ff;
}

.answer.selected {
    background: #3163ff; /* Màu xanh khi được chọn */
    color: #fff;
    border-color: #3163ff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* =============================== */
/* TÙY CHỈNH FORM CẤU HÌNH (image_7e2921.png) */
/* =============================== */
.config-form {
    display: flex;
    flex-direction: column; /* Xếp dọc các form-group */
    gap: 20px; /* Tăng khoảng cách */
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-weight: 600;
    color: #555;
    font-size: 15px;
}

select {
    padding: 12px 15px; /* Tăng padding */
    border-radius: 10px; /* Tăng bo tròn */
    border: 1px solid #c9d1ff;
    background: #f8faff; /* Nền nhẹ hơn */
    font-size: 17px;
    color: #333;
    width: 100%; /* Chiếm toàn bộ chiều rộng */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    -webkit-appearance: none; /* Xóa style mặc định của trình duyệt */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%233163ff" d="M10 4L6 8 2 4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.btn-primary {
    background: #4CAF50; /* Màu xanh lá cây (như nút "Bắt đầu làm bài") */
    border: none;
    color: white;
    padding: 15px 30px; /* Tăng padding */
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    box-shadow: 0 4px 6px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background: #45a049;
}

.submit-btn {
    background: #3163ff; /* Nút nộp bài màu xanh dương */
    box-shadow: 0 4px 6px rgba(49, 99, 255, 0.3);
}

.submit-btn:hover {
    background: #214de8;
}

.btn-secondary {
    background: #e7ebf9;
    border: none;
    color: #333;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}
/* =============================== */
/* PHẦN XEM LẠI BÀI LÀM           */
/* =============================== */
.review-section {
    margin-top: 30px;
    border-top: 2px solid #e5ebff;
    padding-top: 20px;
}

.review-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.review-item {
    background: #fff5f5; /* Nền màu hồng nhạt */
    border: 1px solid #f7d7d7;
    border-left: 5px solid #d9534f; /* Đường kẻ đỏ bên trái */
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.review-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.review-user-answer {
    color: #d9534f; /* Màu đỏ cho câu trả lời sai */
    margin: 5px 0;
}

.review-correct-answer {
    color: #5cb85c; /* Màu xanh cho đáp án đúng */
    margin: 5px 0;
}