/* ══════════════════════════════════════════════════════════════════════════
   dap-an-nhanh.css — Ô chọn đáp án ngay trên thẻ câu hỏi (giao diện GIÁO VIÊN)
   Đi kèm public/js/dap-an-nhanh.js
   ══════════════════════════════════════════════════════════════════════════ */

.dan-khung {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #fdf2f5;
    border: 1px solid #f6dbe3;
    border-radius: 14px;
}

.dan-nhan {
    font-weight: 800;
    color: #bb2649;
    font-size: 13px;
    letter-spacing: .2px;
}

.dan-hang {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.dan-cot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.dan-y {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
}

/* ── Ô TRÒN: trắc nghiệm A B C D và đúng/sai Đ S ────────────────────────── */
.dan-tron {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
    -webkit-user-select: none;
    user-select: none;
    padding: 0;
}

.dan-tron:hover {
    border-color: #bb2649;
    color: #bb2649;
    transform: translateY(-1px);
}

.dan-tron:active {
    transform: scale(.94);
}

/* Đã chọn (trắc nghiệm) */
.dan-tn.chon {
    background: #bb2649;
    border-color: #bb2649;
    color: #fff;
    box-shadow: 0 4px 10px rgba(187, 38, 73, .28);
}

/* Đúng / Sai */
.dan-ds.dung {
    background: #059669;
    border-color: #059669;
    color: #fff;
    box-shadow: 0 4px 10px rgba(5, 150, 105, .25);
}

.dan-ds.sai {
    background: #fff;
    border-color: #cbd5e1;
    color: #94a3b8;
}

.dan-ds.dung:hover {
    border-color: #047857;
    color: #fff;
}

/* ── Ô VUÔNG: trả lời ngắn ──────────────────────────────────────────────── */
.dan-vuong {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #1e293b;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    padding: 0;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.dan-vuong:focus {
    border-color: #bb2649;
    box-shadow: 0 0 0 3px rgba(187, 38, 73, .14);
}

/* ── Nút "Lưu KQ" ───────────────────────────────────────────────────────── */
.btn-action-v2.dan-nut-luu {
    background: #059669;
    color: #fff;
    border: none;
    cursor: pointer;
}

.btn-action-v2.dan-nut-luu:hover {
    background: #047857;
}

.btn-action-v2.dan-nut-luu:disabled {
    opacity: .6;
    cursor: default;
}

.btn-action-v2.dan-nut-luu.dan-vua-luu {
    background: #0ea5e9;
}

/* ── Màn hình hẹp ───────────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .dan-khung {
        gap: 10px;
        padding: 10px;
    }

    .dan-tron {
        width: 31px;
        height: 31px;
        font-size: 13px;
    }

    .dan-vuong {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}
