/* ============================================================
   vb-skin.css — Skin "Visual Basic Desktop"
   ------------------------------------------------------------
   Stylesheet TAMBAHAN untuk index.php (+ menu.php yang di-include
   di dalamnya). WAJIB dimuat SETELAH style.css, tailwind.css,
   dan <style> inline halaman supaya override berikut menang di
   kaskade CSS.

   Tujuan:
     1. Font lebih BESAR (ringkas Tahoma/Segoe UI khas aplikasi
        desktop) sehingga mudah dibaca.
     2. Tampilan lebih KOKOH & STABIL: kontrol raised/sunken bevel
        ala Visual Basic, latar abu desktop yang tenang, border
        tegas antar panel.
   ============================================================ */

/* ---------- 1) Fondasi UI desktop ---------- */
html {
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', 'Tahoma', 'Helvetica Neue', Arial, sans-serif;
  background-color: #e8ebf2;
  color: #131b2e;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

/* Kanvas di belakang kartu dibuat abu-abu desktop yang tenang */
body.bg-surface,
main.bg-surface {
  background-color: #e8ebf2;
}

/* Semua utilitas font UI dipaksa memakai font desktop.
   (.font-mono / <pre> tidak disentuh agar kode tetap rapi.) */
.font-body-sm,
.font-body-md,
.font-body-lg,
.font-label-sm,
.font-label-md,
.font-label-lg,
.font-headline-sm,
.font-headline-md,
.font-headline-lg {
  font-family: 'Segoe UI', 'Tahoma', 'Helvetica Neue', Arial, sans-serif;
}

button {
  user-select: none;
  -webkit-user-select: none;
  font-synthesis: none;
}

button:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 55, 176, 0.45);
  outline-offset: 2px;
}

/* ---------- 2) Skala huruf lebih besar ---------- */
.text-body-sm { font-size: 13px;  line-height: 20px; }
.text-body-md { font-size: 16px;  line-height: 24px; }
.text-label-sm { font-size: 12.5px; line-height: 16px; letter-spacing: .02em; }
.text-label-md { font-size: 14px;  line-height: 19px; }
.text-label-lg { font-size: 16px;  line-height: 22px; }
.text-headline-sm { font-size: 22px; line-height: 28px; }
.text-headline-lg { font-size: clamp(30px, 4.6vw, 42px); line-height: 1.16; }

/* Ukuran "px" yang dulu kecil — naikkan bertahap */
.text-\[11px\] { font-size: 12px;  line-height: 16px; }
.text-\[12px\] { font-size: 13px;  line-height: 18px; }
.text-\[13px\] { font-size: 15px;  line-height: 21px; }

/* Ikon Material sedikit lebih besar agar seimbang dengan teks baru */
.text-\[18px\] { font-size: 20px; line-height: 1; }
.text-\[20px\] { font-size: 22px; line-height: 1; }
.text-\[22px\] { font-size: 24px; line-height: 1; }

/* ---------- 3) Sidebar (menu.php) — kokoh ala desktop ---------- */
#sidebar {
  border-right: 1px solid #c9cedb;
  background: #fbfcff;
  box-shadow: 2px 0 8px rgba(19, 27, 46, 0.06);
}

#sidebar .p-space-base .flex .font-headline-sm.text-headline-sm {
  font-size: 21px;
  line-height: 1.1;
}

#sidebar nav a {
  padding: 0.625rem 0.875rem;
  gap: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
}

#sidebar nav a[aria-current="page"] {
  border: 1px solid #00297d;
  background: linear-gradient(180deg, #1d4ed8, #0037b0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .30) inset,
              0 2px 3px rgba(0, 0, 0, .25);
}

#sidebar button[title="Theme Switcher"] {
  border: 1px solid #b7bdc9;
  background: linear-gradient(180deg, #f9fafd, #e2e5ec);
  box-shadow: 0 1px 0 #fff inset, 0 1px 2px rgba(19, 27, 46, .15);
}

/* ---------- 4) Topbar header ---------- */
header.fixed {
  background: #f3f5fa;
  border-bottom: 1px solid #c9cedb;
  box-shadow: 0 1px 4px rgba(19, 27, 46, 0.08);
}

header .font-headline-sm.text-headline-sm {
  font-size: 20px;
  line-height: 24px;
}

header .text-label-sm {
  font-size: 13px;
  line-height: 18px;
}


/* ---------- 5) Panel / kartu utama lebih tegas ---------- */
#panel1,
#panel2 {
  background: #fcfdff;
  border: 1px solid #c6ccda;
  border-radius: 10px;
  box-shadow: 0 1px 0 #ffffff inset,
              0 1px 3px rgba(19, 27, 46, 0.10),
              0 6px 16px rgba(19, 27, 46, 0.07);
}

/* Garis pemisah ala "group caption" di bawah judul panel */
#panel1 > .flex:first-child,
#panel2 > .flex:first-child {
  border-bottom: 1px solid #dde1ea;
  padding-bottom: 0.875rem;
}

/* Ringkasan (panel 2) */
#json-summary {
  border: 1px solid #d5dae5;
  background: #eef1f7;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
}

/* ---------- 6) Formulir: field putih "sunken" ala VB ---------- */
label[for],
label.font-label-sm {
  font-size: 13px;
  letter-spacing: .02em;
}

select#designTypeSelect,
select#aspectRatioSelect,
textarea#briefInput {
  font-family: 'Segoe UI', 'Tahoma', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #131b2e;
  background: #ffffff;
  border: 1px solid #8f97a8;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  box-shadow: inset 0 2px 4px rgba(19, 27, 46, 0.16),
              0 1px 0 #ffffff;
}

textarea#briefInput {
  min-height: 8.5rem;
}

select#designTypeSelect:focus,
select#aspectRatioSelect:focus,
textarea#briefInput:focus {
  border-color: #0037b0;
  background: #ffffff;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(19, 27, 46, 0.10),
              0 0 0 3px rgba(0, 55, 176, 0.22);

/* ---------- 7) Tombol raised/sunken ala Visual Basic ---------- */

/* Kelompok utama — biru solid (aksi utama) */
#generateBtn,
#copyBtn,
#btn-generate-header {
  border: 1px solid #002a86;
  border-radius: 7px;
  background: linear-gradient(180deg, #2b57cf 0%, #0b3fbd 55%, #0037b0 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset,
              0 -3px 6px rgba(0, 0, 0, 0.25) inset,
              0 2px 3px rgba(0, 0, 0, 0.28);
  font-weight: 800;
  letter-spacing: .01em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  transition: filter .12s ease, transform .06s ease, box-shadow .12s ease;
}
#generateBtn:hover,
#copyBtn:hover,
#btn-generate-header:hover { filter: brightness(1.10); }
#generateBtn:active,
#copyBtn:active,
#btn-generate-header:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset,
              0 -1px 2px rgba(0, 0, 0, 0.22) inset,
              0 1px 1px rgba(0, 0, 0, 0.18);
}
#generateBtn[disabled],
#btn-generate-header[disabled] { filter: saturate(.5) brightness(.92); }

#generateBtn { padding: 0.68rem 1.5rem; font-size: 15.5px; }
#copyBtn    { padding: 0.58rem 1.25rem; font-size: 15px; }
#btn-generate-header { padding: 0.5rem 1.1rem; font-size: 15px; }

/* Kelompok sekunder — abu-abu terangkat (raised) */
#downloadBtn,
#clearBtn,
#startOver,
#resetHeader,
#backTo1 {
  border: 1px solid #9ea5b4;
  border-radius: 7px;
  background: linear-gradient(180deg, #fbfcfe 0%, #e9ebf1 55%, #dfe2ea 100%);
  color: #131b2e;
  box-shadow: 0 1px 0 #ffffff inset,
              0 -2px 4px rgba(19, 27, 46, 0.10) inset,
              0 1px 2px rgba(19, 27, 46, 0.20);
  font-weight: 700;
  transition: filter .12s ease, transform .06s ease;
}
#downloadBtn:hover,
#clearBtn:hover,
#startOver:hover,
#resetHeader:hover,
#backTo1:hover { filter: brightness(1.03); }
#downloadBtn:active,
#clearBtn:active,
#startOver:active,
#resetHeader:active,
#backTo1:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #dfe2ea 0%, #e9ebf1 100%);
  box-shadow: 0 -1px 2px rgba(19, 27, 46, 0.18) inset;
}

#downloadBtn { padding: 0.58rem 1.15rem; font-size: 14.5px; }
#clearBtn    { padding: 0.58rem 1.1rem;  font-size: 14.5px; }
#startOver   { padding: 0.58rem 1.1rem;  font-size: 14.5px; }
#resetHeader { padding: 0.45rem 0.95rem; font-size: 14px; }
#backTo1     { padding: 0.58rem 1.1rem;  font-size: 14.5px; }

/* Tombol burger mobile tetap bundar tapi lebih besar */
#btn-sidebar-toggle {
  border: 1px solid #b7bdc9;
  background: linear-gradient(180deg, #fbfcfe, #e2e5ec);
  box-shadow: 0 1px 0 #fff inset, 0 1px 2px rgba(19, 27, 46, .15);
}

/* ---------- 8) Stepper Langkah 1 & 2 ---------- */
.dpg-step {
  font-family: 'Segoe UI', 'Tahoma', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  padding: 0.5rem 1.1rem;
  gap: 0.625rem;
  border-radius: 8px;
}
.dpg-step-label strong { font-size: 14.5px; }
.dpg-step-label small { font-size: 10px; letter-spacing: .06em; }
.dpg-step .dpg-step-num {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
}
.dpg-step.active {
  background: linear-gradient(180deg, #1d4ed8, #0037b0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset,
              0 2px 3px rgba(0, 0, 0, 0.25);
}


/* ---------- 9) Pilihan Style Grafis ---------- */
.dpg-style-grid {
  grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr));
  gap: 0.75rem;
}
.dpg-style-card {
  padding: 0.5rem;
  border: 1px solid #d4d9e4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(19, 27, 46, 0.08);
}
.dpg-style-card:hover { background: #eef1ff; border-color: #aeb9dd; }
.dpg-style-card[aria-pressed="true"] {
  background: #e3e9ff;
  border-color: #0037b0;
  box-shadow: 0 0 0 2px #0037b0, 0 1px 3px rgba(19, 27, 46, 0.15);
}
.dpg-style-name {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}
.dpg-style-card[aria-pressed="true"] .dpg-style-name { font-weight: 800; }
.dpg-style-thumb {
  border: 1px solid #d0d5e1;
  border-radius: 6px;
  background: #f4f5fb;
}

/* ---------- 10) Penampil JSON ---------- */
#json-display {
  font-size: 15px;
  line-height: 24px;
  tab-size: 2;
}
#json-summary .text-\[12px\] { font-size: 13px; }

/* ---------- 11) Hero, tips, footer ---------- */
.dpg-hero-img {
  height: 8.5rem;
  max-width: 18rem;
}
@media (min-width: 1024px) {
  .dpg-hero-img { height: 11.5rem; }
}

.dpg-footer-note {
  font-size: 13px;
  line-height: 18px;
}

/* ---------- 12) Toast ---------- */
.dpg-toast {
  font-family: 'Segoe UI', 'Tahoma', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14.5px;
  line-height: 21px;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dpg-toast .material-symbols-outlined { font-size: 22px; }

/* ---------- 13) Rapat & stabil pada layar kecil ---------- */
@media (max-width: 560px) {
  .text-headline-lg { font-size: 27px; line-height: 1.2; }
  .text-label-lg { font-size: 15px; }
  #generateBtn { padding: 0.6rem 1rem; font-size: 14px; }
  #clearBtn,
  #downloadBtn,
  #startOver,
  #backTo1 { padding: 0.5rem 0.85rem; font-size: 13.5px; }
  .dpg-style-grid { grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr)); gap: 0.625rem; }
}

}

textarea#briefInput::placeholder {
  color: #6b7280;
  font-size: 15px;
}
