/* ==========================================================================
   CBT COMPACT STYLING (SKALA 100% STANDAR)
   Disesuaikan kembali ke rasio 100% standar sesuai instruksi pengguna,
   dengan tetap mempertahankan kerapian layout mobile & penampung gambar.
   ========================================================================== */

/* 1. Skala Dasar 100% Standar */
html {
    font-size: 100% !important; /* Rasio 100% standar browser (16px base rem) */
    -webkit-text-size-adjust: 100%;
}

body {
    font-size: 0.875rem; /* 14px sesuai standar admin-layout.css */
    line-height: 1.5;
}

/* 2. Optimalisasi Khusus Layar HP / Mobile (< 768px) */
@media (max-width: 768px) {
    html {
        font-size: 100% !important;
    }

    .main-content {
        padding: 0.85rem !important;
    }

    .container, .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .card {
        border-radius: 12px !important;
        margin-bottom: 0.85rem !important;
    }

    .card-header {
        padding: 0.75rem 0.95rem !important;
    }

    .card-body {
        padding: 0.85rem 0.95rem !important;
    }

    .table > :not(caption) > * > * {
        padding: 0.55rem 0.65rem !important;
    }

    .btn-nomor {
        width: 40px !important;
        height: 40px !important;
    }

    .opsi-item {
        padding: 0.75rem 0.95rem !important;
    }
}

/* 3. Penampung Gambar Soal & Opsi (Drag-and-Drop & Direct Paste Ctrl+V) */
.image-paste-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 0.85rem;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.image-paste-zone:hover, .image-paste-zone.active-paste {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

.image-paste-zone .paste-hint {
    color: #64748b;
    font-size: 0.82rem;
    pointer-events: none;
}

.image-paste-preview {
    margin-top: 0.5rem;
    position: relative;
    display: inline-block;
}

.image-paste-preview img {
    max-height: 160px;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.btn-remove-img {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-remove-img:hover {
    background: #dc2626;
}
