/* assets/css/style.css
   Responsive layout for Bank Soal app
   - fluid grid, scalable typography
   - sidebar collapses to overlay on small screens
   - accessible menu toggle
*/

:root{
  --purple:#4b3fbf;
  --purple-dark:#382f9a;
  --light:#f4f7ff;
  --accent:#ffb400;
  --card:#ffffff;
  --muted:#6b7280;

  /* spacing scale */
  --gap-xs:8px;
  --gap-sm:12px;
  --gap-md:20px;
  --gap-lg:32px;

  /* typography scale */
  --fs-sm:0.9rem;
  --fs-md:1rem;
  --fs-lg:1.125rem;
  --fs-xl:1.5rem;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:Inter, "Helvetica Neue", Arial, sans-serif;
  background:var(--light);
  color:#222;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  font-size:var(--fs-md);
}

/* ======= LAYOUT ======= */

/* Sidebar base */
.sidebar{
  position:fixed;
  left:0; top:0; bottom:0;
  width:250px;
  padding:28px 18px;
  background:var(--purple);
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:var(--gap-sm);
  z-index:1200;
  transition: transform .22s ease, width .18s ease;
}

/* collapsed version (narrow) on medium screens */
.sidebar.collapsed{
  width:80px;
}

/* overlay for mobile */
.sidebar.overlay{
  position:fixed;
  transform:translateX(0);
  left:0;
  top:0;
  bottom:0;
  width:280px;
  box-shadow: 6px 0 30px rgba(10,10,20,0.12);
}

/* hide by default when mobile closed */
.sidebar.mobile-hidden{
  transform: translateX(-120%);
}

/* brand */
.sidebar .brand{
  font-weight:700;
  font-size:var(--fs-lg);
  letter-spacing:0.3px;
  padding-bottom:6px;
}

/* nav links */
.nav{margin-top:8px;display:flex;flex-direction:column;gap:8px}
.nav .nav-item{
  display:flex;align-items:center;gap:12px;
  color:#fff;padding:10px 12px;border-radius:10px;text-decoration:none;
  transition:background .12s, transform .06s;
  font-size:var(--fs-md);
}
.nav .nav-item i{width:22px;text-align:center}
.nav .nav-item .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav .nav-item:hover{background:rgba(255,255,255,0.06);transform:translateY(-1px)}

/* ===== TOPBAR ===== */
.topbar{
  position:fixed;
  left:250px; right:0; top:0;
  height:64px;
  background:linear-gradient(180deg,var(--purple), var(--purple-dark));
  color:#fff;
  display:flex;align-items:center;padding:0 18px;
  box-shadow:0 6px 20px rgba(11,14,30,0.08);
  z-index:1100;
  transition: left .18s ease;
}

.topbar.shifted{ left:80px; } /* if sidebar collapsed */

.menu-toggle{
  background:transparent;border:0;color:#fff;font-size:20px;cursor:pointer;padding:8px 10px;border-radius:8px;
}
.menu-toggle:focus{outline:2px solid rgba(255,255,255,0.14)}
.topbar .title{font-size:var(--fs-lg);font-weight:700;margin-left:6px}
.topbar .topbar-right{margin-left:auto;display:flex;align-items:center;gap:12px}
.topbar .user{display:flex;align-items:center;gap:10px;color:#fff;font-weight:600}
.topbar .user img{width:36px;height:36px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,0.12)}

/* ===== MAIN CONTENT ===== */
/* main content always has margin-left equal to sidebar width */
.main-content{
  margin-left:250px;
  padding:100px 28px 120px;
  min-height:100vh;
  transition: margin-left .18s ease, padding .18s ease;
}

/* when sidebar collapsed make room */
.main-content.collapsed{ margin-left:80px; }

/* small adjustment for overlay mobile menu */
.main-content.overlay-open{ overflow:hidden; }

/* ===== CARDS / DASHBOARD ===== */
.card{
  background:var(--card);
  padding:22px;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(11,14,30,0.06);
  border:1px solid rgba(10,10,12,0.02);
  color: #111;
}

/* dashboard grid: fluid columns */
.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
  margin-bottom:20px;
}

/* stat box */
.stat{ padding:18px;border-radius:12px;background:linear-gradient(90deg, #fff, #fff); display:flex;flex-direction:column }
.stat .label{font-size:14px;color:var(--muted);margin-bottom:8px}
.stat .value{font-size:28px;font-weight:800;color:#111}

/* responsive image wrapper */
.foto-wrapper{ margin-top:18px;border-radius:18px;overflow:hidden;padding:18px;background:linear-gradient(180deg, rgba(75,63,191,0.04), rgba(75,63,191,0.02)) }
.foto-wrapper img{ width:100%; height:auto; display:block; border-radius:12px; object-fit:cover }

/* forms and tables */
.form-control{ width:100%; padding:12px; border:1px solid #eceff5; border-radius:8px; background:#fff }
label{ display:block; margin:12px 0 6px; color:var(--muted); font-size:14px }
.btn{ padding:10px 18px; border-radius:20px; border:0; cursor:pointer; font-weight:700 }
.btn-primary{ background:var(--purple); color:#fff }
.btn-secondary{ background:#9ea3b7; color:#fff }

.table{ width:100%; border-collapse:collapse; margin-top:20px }
.table th, .table td{ padding:12px 8px; border-bottom:1px solid #f1f3f6; text-align:left; color:#333; font-size:0.95rem }

/* footer */
.footer{ margin-left:250px; padding:18px 28px; display:flex; justify-content:flex-end; align-items:center; }
.footer .box{ background:var(--purple); color:#fff; padding:12px 18px; border-radius:8px; box-shadow:0 6px 18px rgba(75,63,191,0.14) }

/* ===== MEDIA QUERIES ===== */

/* medium screens: collapse sidebar to narrow */
@media (max-width:1100px){
  .sidebar{ width:80px }
  .topbar{ left:80px }
  .main-content{ margin-left:80px; padding:90px 20px 100px }
  .dashboard-grid{ grid-template-columns:1fr; gap:18px }
}

/* small screens: overlay sidebar, topbar becomes relative */
@media (max-width:760px){
  .sidebar{
    width:260px;
    transform: translateX(-120%);
    position:fixed;
  }
  .sidebar.mobile-open{ transform: translateX(0); }
  .sidebar.overlay{ left:0; top:0; bottom:0; z-index:1400 }
  .topbar{ left:0; right:0; position:fixed; height:62px }
  .topbar .title{ display:none } /* hide big title on tiny screens */
  .main-content{ margin-left:0; padding:86px 16px 120px }
  .footer{ margin-left:0; padding:20px 16px; justify-content:center }
  .dashboard-grid{ grid-template-columns:1fr; gap:18px }
}

/* very small phones: scale down fonts and paddings */
@media (max-width:420px){
  :root{ --fs-md:0.92rem; --fs-lg:1rem; --fs-xl:1.3rem }
  .btn{ padding:8px 12px; font-size:0.95rem }
  .topbar .user img{ width:32px; height:32px }
}

/* accessibility: focus state */
a:focus, button:focus, input:focus, select:focus {
  outline: 3px solid rgba(75,63,191,0.12);
  outline-offset: 2px;
  border-radius:6px;
}


/* header flex: judul kiri, tombol kanan */
.card { background:#fff;border-radius:12px;padding:18px;box-shadow:0 8px 30px rgba(11,14,30,0.04);margin-bottom:28px;}
.card-header-flex { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.card-title { font-size:20px; margin:0; font-weight:700; color:#222; }

/* tombol tambah */
.btn { display:inline-block; padding:10px 16px; border-radius:28px; text-decoration:none; font-weight:700; }
.btn-add { background:linear-gradient(180deg,#5b47d6,#4b3fbf); color:#fff; box-shadow:0 6px 18px rgba(75,63,191,0.16); }

/* responsive: tombol akan dibawah judul pada layar sempit */
@media (max-width:800px){
  .card-header-flex { flex-direction:column; align-items:flex-start; }
  .card-actions{ width:100%; display:flex; justify-content:flex-end; }
}


/* agar teks soal tetap rapi dan dipotong */
.table-soal td.soal-col {
  max-width: 40ch;          /* sesuaikan panjang potongan */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* supaya aksi tetap rapih */
.table-soal td.action-col {
  white-space: nowrap;
  text-align: right;
}

/* responsive tweak: pada layar sempit soal bisa pakai lebih lebar */
@media (max-width: 900px) {
  .table-soal td.soal-col { max-width: 60ch; }
}

/* styling untuk tombol tambah agar mengikuti tampilan */
.btn-add-dt {
  display:inline-block;
  padding:10px 14px;
  border-radius:28px;
  background:linear-gradient(180deg,#6a53e3,#4b3fbf);
  color:#ffffff;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(75,63,191,0.12);
}

/* Card and table base */
.card { background: var(--card-bg); border-radius: 12px; padding: 22px; box-shadow: 0 10px 30px rgba(11,14,30,0.04); }
.table-soal { border-collapse: collapse; width:100%; }

/* row hover & stripe */
#soalTable tbody tr { background: transparent; }
#soalTable tbody tr:hover { background: linear-gradient(90deg, rgba(91,71,214,0.04), rgba(75,63,191,0.02)); }

/* DataTables controls layout tweak */
.dt-top { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; flex-wrap:wrap;}
.dt-top .dataTables_length { order: 1; }
.dt-top .dataTables_filter { order: 2; margin-left:auto; }

/* Length select */
.dataTables_length select {
  padding:6px 10px; border-radius:8px; border:1px solid #e6e6ee; background:#fff;
  font-size:14px;
}

/* Search input */
.dataTables_filter input {
  padding:8px 12px; border-radius:10px; border:1px solid #e6e6ee; min-width:200px;
  box-shadow:none;
}

/* Pagination (buttons) */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius:8px; border:1px solid transparent; padding:6px 10px; margin:0 3px;
  color:var(--primary-700); background:transparent; transition: all .12s ease;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(180deg,var(--primary-500),var(--primary-600));
  color:#fff !important; border-color:transparent;
  box-shadow:0 8px 20px rgba(75,63,191,0.12);
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(91,71,214,0.07);
  color: var(--primary-700);
}

/* Prev/Next smaller */
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
  padding:6px 8px;
}

/* Info text */
.dataTables_info {
  color:#666; margin-top:12px;
}

/* Table header */
#soalTable thead th {
  background: transparent; font-weight:700; color:var(--text);
  border-bottom: 1px solid #eee; padding:12px 10px;
}

/* Table body cells */
#soalTable tbody td { padding:14px 10px; vertical-align:middle; color:#333; }

/* Soal preview ellipsis (pastikan td punya class soal-col) */
.table-soal td.soal-col { max-width: 52ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Action links */
.table-soal td.action-col a { color: var(--primary-700); text-decoration: none; font-weight:600; }
.table-soal td.action-col a:hover { text-decoration: underline; }

/* Responsive: pada layar sempit, tombol tambah pindah ke baris atas kiri */
@media (max-width: 900px) {
  .dt-top { flex-direction: column-reverse; align-items:flex-start; }
  .dt-top .dataTables_filter { margin-left:0; width:100%;}
  .btn-add-dt { align-self:flex-end; }
  .table-soal td.soal-col { max-width: 120ch; white-space: normal; }
}

/* Wrapper agar tombol berada di sebelah kanan */
.form-next-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end; 
    margin-top: 24px;   /* jarak dari elemen atas */
}

/* Tombol selanjutnya */
.btn-next {
    background: #4B33CC;        /* warna ungu tema */
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;                  /* jarak teks & icon */
    transition: 0.2s ease;
    box-shadow: 0 8px 20px rgba(75, 55, 204, 0.25);
}

/* Hover effect */
.btn-next:hover {
    background: #3A27A8;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(75, 55, 204, 0.35);
}

/* Icon panah */
.btn-next .arrow {
    font-size: 18px;
    margin-left: 4px;
}


/* Card wrapper */
.page-card{
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(30,30,50,0.06);
  margin: 28px;
}

/* Heading */
.page-card h3{
  margin: 0 0 18px 0;
  font-size: 20px;
  color: #1f1f2b;
}

/* form groups */
.form-group { margin-bottom: 18px; }
.form-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}
.col-12{ width:100%; }
.col-md-6{ width:calc(50%); }
.col-md-4{ width:calc(33.333% - 10.66px); }
.tinjauan-card .col-md-6 {
    display: flex;
    flex-direction: column;
}

/* ===== TINJAUAN GRID (FIX 2 KOLOM) ===== */
.tinjauan-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:24px;
}

/* responsif */
@media (max-width: 900px){
    .tinjauan-grid{
        grid-template-columns: 1fr;
    }
}



@media (max-width:900px){
  .col-md-6, .col-md-4 { width:100%; }
}


/* inputs */
.form-control, .form-control-file {
  width:100%;
  padding:12px 14px;
  border-radius:8px;
  border:1px solid #e6e9ef;
  background:#fafcff;
  box-sizing:border-box;
}

/* Buttons container */
.form-buttons{
  display:flex;
  gap:14px;
  justify-content:flex-end;
  margin-top:32px; /* ruang lebih dari form */
}

/* tombol kuning (prev) */
.btn-prev{
  background:#f8b600;
  color:#1b1b1b;
  padding:10px 20px;
  border-radius:28px;
  text-decoration:none;
  font-weight:600;
  box-shadow: 0 8px 20px rgba(248,182,0,0.14);
  display:inline-flex;
  align-items:center;
}

/* tombol ungu (next) */
.btn-next{
  background:#4b33cc;
  color:#fff;
  padding:10px 20px;
  border-radius:28px;
  border:none;
  font-weight:600;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  box-shadow: 0 10px 24px rgba(75,51,204,0.14);
}

/* small arrow */
.btn-next .arrow{ font-size:16px; }

/* spacing bawah kalau ada footer */
.page-card { margin-bottom: 90px; }

.form-card {
    padding: 24px;
}

.form-card label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.form-card .form-control {
    height: 42px;
    border-radius: 8px;
}

.form-card textarea.form-control {
    height: auto;
}

@media (min-width: 768px) {
    .col-md-6:last-child {
        padding-top: 38px; /* sejajar dengan Tinjauan 2 */
    }
}

/* ======================================================
   AKSI DROPDOWN (FIX FINAL – TIDAK BENTROK STYLE GLOBAL)
====================================================== */

/* wrapper ikon */
.aksi-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* ===== AKSI ICON BIRU ===== */
.aksi-icon {
  background: rgba(13,110,253,0.08); /* biru muda */
  color: #382f9a;                    /* biru utama */
  border: none;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}

.aksi-icon i {
  font-size: 16px;
  color: inherit; /* ikut warna parent */
}

/* hover */
.aksi-icon:hover {
  background: #382f9a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13,110,253,0.25);
}

/* dropdown button agar konsisten */
.dropdown .aksi-icon {
  outline: none;
}


/* ===== BOOTSTRAP DROPDOWN FIX ===== */

/* pastikan dropdown tersembunyi */
/* .aksi-wrapper .dropdown-menu {
  display: none;
  min-width: 160px;
  padding: 6px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  z-index: 9999;
} */

/* tampil hanya jika bootstrap menambahkan .show */
/* .aksi-wrapper .dropdown-menu.show {
  display: block;
} */

/* item dropdown */
/* .aksi-wrapper .dropdown-item {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
} */

/* .aksi-wrapper .dropdown-item:hover {
  background: #f3f4f6;
}

.aksi-wrapper .dropdown-item.text-danger {
  color: #dc2626 !important;
} */

/* ===== FIX LAYOUT TABEL BANK SOAL ===== */
/* ===== KUNCI TOTAL TABEL ===== */
/* ==============================
   FIX GAMBAR SOAL (PASTEN)
============================== */

/* paksa semua gambar di dalam soal */
.soal-box img {
  max-width: 420px !important;
  width: auto !important;
  height: auto !important;

  display: block;
  margin: 10px auto;

  object-fit: contain;
}

/* khusus gambar opsi */
.opsi-image img {
  max-width: 220px !important;
  width: auto !important;
  height: auto !important;
}

/* cegah tabel melebar */
.table-responsive {
  overflow-x: auto;
}

/* cegah td melebar karena konten */
#soalTable td {
  max-width: 0;
}

/* pastikan kolom soal tidak memaksa lebar */
#soalTable td:nth-child(5) {
  max-width: 600px;
}


/* ===== STATUS DOT ===== */
.status-dot{
  width:35px;
  height:35px;
  border-radius:50%;
  display:inline-block;
}

.status-entry{ background:#382f9a; }        /* Biru */
.status-oncheck{ background:#6c757d; }      /* Abu-abu */
.status-diterima{ background:#198754; }     /* Hijau */
.status-perbaikan{ background:#ffc107; }    /* Kuning */
.status-dikembalikan{ background:#dc3545; } /* Merah */

/* OPSI JAWABAN */
.opsi {
    margin-top: 6px;
}

.opsi-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 4px;
}

.opsi-item b {
    min-width: 22px;
}

/* HILANGKAN ENTER DARI HTML EDITOR */
.opsi-text,
.opsi-text p {
    margin: 0;
    padding: 0;
    display: inline;
}


.opsi-detail {
    margin-bottom: 12px;
    padding-left: 10px;
}

.opsi-detail img {
    max-width: 300px;
    height: auto;
    display: block;
    margin-top: 6px;
}

.soal-image img {
    max-width: 400px;
    height: auto;
}

/* Kolom reviewer boleh 2 baris */
.col-reviewer {
    max-width: 180px;        /* atur sesuai kebutuhan */
    white-space: normal !important;
}

.reviewer-name {
    display: inline-block;
    white-space: normal !important;
    word-break: break-word;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
}

/* Batasi tinggi isi soal */
.soal-scroll {
    max-height: 260px;      /* atur sesuai selera (200–300px ideal) */
    overflow-y: auto;
    padding-right: 6px;
}

/* Gambar di dalam soal */
.soal-scroll img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Opsi gambar */
.img-opsi {
    max-width: 100%;
    height: auto;
    margin: 6px 0;
}

/* Scrollbar kecil & halus (opsional) */
.soal-scroll::-webkit-scrollbar {
    width: 6px;
}
.soal-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}


/* =========================
   TABEL SOAL - RAPUH GAMBAR
========================= */

/* Kolom Reviewer */
.table-soal td:nth-child(6) {
    max-width: 160px;          /* atur lebar kolom reviewer */
    white-space: normal;       /* BOLEH turun baris */
    vertical-align: middle;
}

/* Badge reviewer */
.table-soal .badge {
    display: inline-block;
    max-width: 100%;
    white-space: normal;       /* penting: boleh 2 baris */
    word-break: break-word;    /* nama panjang tetap rapi */
    text-align: center;
    line-height: 1.3;
    padding: 6px 8px;
    font-size: 0.8rem;
}


/* =========================
   BATASI GAMBAR SOAL DETAIL
========================= */
.img-soal-detail {
    max-width: 700px;
    max-height: 420px;
    width: auto;
    height: auto;
    display: block;
    margin: 0;        /* rata kiri */
    object-fit: contain;
}


.status-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.status-diterima {
    background-color: #28a745; /* hijau */
}

.status-perbaikan {
    background-color: #ffc107; /* kuning */
}

.status-dikembalikan {
    background-color: #dc3545; /* merah */
}

/* =========================
   TOPBAR FIX (WAJIB)
========================= */
/* kiri */
.menu-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* kanan */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}


/* =========================
   USER DROPDOWN
========================= */
.user-dropdown {
    position: relative;
    z-index: 2000; /* lebih tinggi dari sidebar */
}

.user-btn {
    background: transparent;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    pointer-events: auto; /* PENTING */
}

.user-btn:focus {
    outline: none;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;            /* jarak nama ↔ avatar */
    height: 60px;         /* sejajar topbar */
    padding: 0 6px;
}

.user-avatar {
    width: 60px;          /* ⬅️ dari 34px → 44px */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.6); /* biar kontras */
}

/* =========================
   DROPDOWN MENU
========================= */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 48px;
    min-width: 170px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: none;
    z-index: 3000; /* HARUS PALING TINGGI */
    overflow: hidden;
    pointer-events: auto;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    pointer-events: auto;
}

.dropdown-item:hover {
    background: #f5f6fa;
}

.dropdown-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 4px 0;
}

.dropdown-item.logout {
    color: #e74c3c;
}

/* =========================
   MODAL OVERLAY
========================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 12px; /* minimal */
}

.modal-overlay.show {
    display: flex;
}

/* =========================
   MODAL BOX (SANGAT LEBAR)
========================= */
.modal-box {
    background: #fff;
    width: 880px;          /* ⬅️ LEBAR MAKSIMAL DESKTOP */
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    animation: modalFade .15s ease;
}

/* =========================
   MODAL HEADER (TIPIS)
========================= */
.modal-header {
    padding: 10px 24px;   /* ⬅️ DIPANGKAS */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

/* =========================
   MODAL BODY (SANGAT PADAT)
========================= */
.modal-body {
    padding: 10px 24px;   /* ⬅️ PANGKAS TINGGI */
}

/* =========================
   FORM (SUPER COMPACT)
========================= */
.form-group {
    margin-bottom: 8px;   /* ⬅️ JARAK PALING MINIMAL */
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 3px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 7px 12px;    /* ⬅️ INPUT PENDEK */
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13.5px;
}

/* =========================
   MODAL FOOTER (RINGKAS)
========================= */
.modal-footer {
    padding: 10px 24px;   /* ⬅️ PALING TIPIS */
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* =========================
   BUTTON (TIPIS)
========================= */
.modal-footer .btn {
    padding: 7px 20px;    /* ⬅️ TOMBOL RENDAH */
    border-radius: 22px;
    font-weight: 500;
}

/* =========================
   ANIMASI
========================= */
@keyframes modalFade {
    from {
        transform: scale(.985);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
