/* ══════════════════════════════════════════════════════════════════════════
   anh-cau-hoi.css — Ảnh câu hỏi: thanh kéo cỡ + ảnh riêng của 4 phương án
   Đi kèm public/js/anh-cau-hoi.js
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Khung ảnh đề bài ───────────────────────────────────────────────────── */
.anh-de {
    flex-shrink: 0;
    max-width: 100%;
    /* Bề ngang do JS đặt bằng style="width:…px" theo cỡ Thầy đã lưu */
}

.anh-de img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    cursor: zoom-in;
    background: #fff;
}

/* ── Thanh kéo cỡ (chỉ giáo viên) ───────────────────────────────────────── */
.anh-co {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.anh-keo {
    flex: 1;
    min-width: 60px;
    height: 4px;
    accent-color: #bb2649;
    cursor: ew-resize;
}

.anh-so {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    min-width: 26px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.anh-nut-luu {
    background: #f1f5f9;
    color: #bb2649;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.anh-nut-luu:hover {
    background: #bb2649;
    color: #fff;
    border-color: #bb2649;
}

.anh-nut-luu:disabled {
    opacity: .6;
    cursor: default;
}

.anh-nut-luu.anh-vua-luu {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

/* ── Ảnh của từng phương án A B C D ─────────────────────────────────────── */
.anh-pa {
    margin-top: 6px;
}

.anh-pa img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    background: #fff;
    cursor: zoom-in;
}

/* ── Bốn ô chọn ảnh phương án trong hộp "Sửa" ───────────────────────────── */
.anh-pa-sua {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.anh-pa-o {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    background: #f8fafc;
}

.anh-pa-o .ky {
    font-weight: 800;
    color: #94a3b8;
    font-size: 13px;
}

.anh-pa-o img {
    display: block;
    max-width: 100%;
    max-height: 110px;
    margin: 6px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.anh-pa-o input[type=file] {
    width: 100%;
    font-size: 12px;
}

.anh-pa-o label.go {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    cursor: pointer;
}

/* ── Màn hình hẹp: ảnh xuống dòng riêng, cho rộng thoải mái ─────────────── */
@media (max-width: 560px) {
    .anh-de {
        width: 100% !important;
        max-width: 100%;
    }

    .anh-pa-sua {
        grid-template-columns: minmax(0, 1fr);
    }
}
