:root {
    --app-primary: #0b4f6c;
    --q-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { background: #f4f6f8; }
.app-navbar { background: var(--app-primary); }
.app-navbar .nav-link.active { font-weight: 600; color: #fff; border-bottom: 2px solid #fff; }
.sticky-offset { top: 1rem; z-index: 1; }
.q-excerpt { max-width: 520px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 600; }

/* Tampilan soal (mendekati tampilan peserta) */
.exam-view { font-family: var(--q-font); font-size: 1rem; line-height: 1.55; color: #212529; }
.q-content p { margin-bottom: .5rem; }
.q-content p:last-child { margin-bottom: 0; }
.q-content img { max-width: 100%; height: auto; cursor: zoom-in; border: 1px solid #dee2e6; border-radius: 4px; margin: .25rem 0; }
.q-content table { border-collapse: collapse; margin: .5rem 0; max-width: 100%; }
.q-content th, .q-content td { border: 1px solid #adb5bd; padding: .25rem .5rem; vertical-align: top; }
.q-content th { background: #f1f3f5; }
.q-number { font-weight: 600; min-width: 2rem; }
.q-options { margin-top: .75rem; }
.q-option { display: flex; gap: .5rem; padding: .4rem .6rem; border: 1px solid #e9ecef; border-radius: 6px; margin-bottom: .4rem; background: #fff; }
.q-label { font-weight: 600; min-width: 1.5rem; }
.exam-view.show-key .q-option-key { border-color: #198754; background: #e8f5ee; }
.exam-view:not(.show-key) .q-option-key .badge, .exam-view:not(.show-key) .key-only { display: none; }
.q-card + .q-card { border-top: 1px dashed #ced4da; padding-top: 1rem; margin-top: 1rem; }

/* Editor */
.rich-editor { border-radius: .375rem; }
.re-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; background: #f8f9fa; border: 1px solid #ced4da; border-bottom: 0; border-radius: .375rem .375rem 0 0; }
.re-toolbar button { min-width: 2rem; }
.re-area { min-height: 4.5rem; border-top-left-radius: 0; border-top-right-radius: 0; overflow-x: auto; }
.rich-editor[data-min="md"] .re-area { min-height: 7rem; }
.rich-editor[data-min="lg"] .re-area { min-height: 12rem; }
.re-area:focus { box-shadow: 0 0 0 .2rem rgba(11, 79, 108, .2); }
.re-area img { max-width: 100%; height: auto; }
.re-area table { border-collapse: collapse; }
.re-area td, .re-area th { border: 1px dashed #868e96; padding: .2rem .4rem; min-width: 3rem; }
.re-uploading { opacity: .6; pointer-events: none; }

/* Zoom gambar */
.zoom-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 2000; cursor: zoom-out; padding: 1rem; }
.zoom-overlay img { max-width: 100%; max-height: 100%; background: #fff; }

/* Cetak pratinjau paket */
@media print {
    .app-navbar, .no-print, .breadcrumb, .alert { display: none !important; }
    body { background: #fff; }
    .card { border: 0; }
    .q-card { break-inside: avoid; }
}
