/* =====================================================================
   Theme 2 — "Neo Brutalist" (pink / green / white / black)
   Aktivasi: body.theme2 (ditetapkan oleh app.js melalui tombol Theme)
   Design language: border hitam tebal, hard offset shadow, sudut tegas,
   Montserrat, efek tekan (translate) pada hover/active.
   ===================================================================== */

body.theme2 {
  background: #f6f1e7;
  color: #000;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --grid-line: #e8e1d0;
}

body.theme2 h1,
body.theme2 h2,
body.theme2 h3 {
  font-weight: 800 !important;
}

/* ---------- Surface & text color swaps (Tailwind class overrides) ---------- */

body.theme2 .bg-zinc-900 { background-color: #ffffff !important; }
body.theme2 .bg-zinc-800 { background-color: #000000 !important; }
body.theme2 .hover\:bg-zinc-800:hover { background-color: #f3ede1 !important; }

body.theme2 .text-white { color: #000 !important; }
body.theme2 .text-zinc-100,
body.theme2 .text-zinc-200,
body.theme2 .text-zinc-300 { color: #000 !important; }
body.theme2 .text-zinc-400 { color: #3d3d3d !important; }
body.theme2 .text-zinc-500 { color: #5f5f5f !important; }
body.theme2 .text-zinc-600 { color: #7a7a7a !important; }

body.theme2 .border-zinc-800,
body.theme2 .border-zinc-800\/80,
body.theme2 .border-zinc-700,
body.theme2 .hover\:border-zinc-700:hover { border-color: #000 !important; }

/* accent: kuning -> pink */
body.theme2 .bg-yellow-400 { background-color: #ff66a3 !important; }
body.theme2 .hover\:bg-yellow-300:hover { background-color: #ff8ec0 !important; }
body.theme2 .text-yellow-400,
body.theme2 .text-yellow-300 { color: #ff66a3 !important; }
body.theme2 .hover\:text-yellow-300:hover { color: #e04f8d !important; }
body.theme2 .focus\:border-yellow-400:focus { border-color: #ff66a3 !important; }
body.theme2 .focus\:ring-yellow-400:focus { --tw-ring-color: #ff66a3 !important; }
body.theme2 .accent-yellow-400 { accent-color: #ff66a3 !important; }

/* tombol merah (delete) kekal teks putih */
body.theme2 .bg-red-600 { color: #fff !important; }
body.theme2 .hover\:bg-red-500:hover { background-color: #e11d48 !important; }

/* ---------- Header ---------- */

body.theme2 header {
  background: #f6f1e7 !important;
  border-bottom: 3px solid #000 !important;
}
body.theme2 header button {
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  background: #4ade80 !important;
  color: #000 !important;
  font-weight: 700;
  box-shadow: 3px 3px 0 #000 !important;
  transition: all 0.3s ease !important;
}
body.theme2 header button:hover {
  background: #1ac2ff !important;
  translate: 1.5px 1.5px;
  box-shadow: 1.5px 1.5px 0 #000 !important;
}
body.theme2 header button:active {
  translate: 3px 3px;
  box-shadow: 0 0 0 #000 !important;
}
body.theme2 #search-input {
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 3px 3px 0 #000 !important;
  background: #fff !important;
  font-weight: 600;
}
body.theme2 #search-input:focus {
  border-color: #ff66a3 !important;
  outline: none;
}

/* ---------- Cards ---------- */

body.theme2 .prompt-card {
  border: 3px solid #000 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: 7px 7px 0 #000 !important;
  transition: translate 0.3s ease, box-shadow 0.3s ease !important;
}
body.theme2 .prompt-card:hover {
  border-color: #000 !important;
  translate: 3px 3px !important;
  box-shadow: 2px 2px 0 #000 !important;
}
body.theme2 .prompt-card .img-checker {
  background-color: #f6f1e7 !important;
  background-image: conic-gradient(#e9e4d8 0 25%, #f6f1e7 0 50%, #e9e4d8 0 75%, #f6f1e7 0) !important;
  background-size: 16px 16px !important;
}
body.theme2 .prompt-card footer,
body.theme2 .prompt-card .border-t {
  border-color: #000 !important;
}

/* ---------- Buttons, pills, chips ---------- */

body.theme2 .btn-primary {
  background: #ff66a3 !important;
  color: #000 !important;
  border: 3px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 #000 !important;
  transition: all 0.3s ease !important;
}
body.theme2 .btn-primary:hover {
  background: #ff8ec0 !important;
  translate: 2px 2px;
  box-shadow: 2px 2px 0 #000 !important;
}
body.theme2 .btn-primary:active {
  translate: 4px 4px;
  box-shadow: 0 0 0 #000 !important;
}

body.theme2 .btn-secondary {
  background: #4ade80 !important;
  color: #000 !important;
  border: 3px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 #000 !important;
  font-weight: 700;
  transition: all 0.3s ease !important;
}
body.theme2 .btn-secondary:hover {
  background: #1ac2ff !important;
  translate: 2px 2px;
  box-shadow: 2px 2px 0 #000 !important;
}
body.theme2 .btn-secondary:active {
  translate: 4px 4px;
  box-shadow: 0 0 0 #000 !important;
}

body.theme2 .filter-pill {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  font-weight: 600;
  box-shadow: 3px 3px 0 #000 !important;
  transition: all 0.3s ease !important;
}
body.theme2 .filter-pill:hover {
  border-color: #000 !important;
  translate: 1.5px 1.5px;
  box-shadow: 1.5px 1.5px 0 #000 !important;
}
body.theme2 .filter-pill.active {
  background: #ff66a3 !important;
  color: #000 !important;
  border-color: #000 !important;
  font-weight: 800;
}

body.theme2 .tag-chip {
  background: #ffd9ea !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  font-weight: 700;
  transition: all 0.15s ease !important;
}
body.theme2 .tag-chip:hover { background: #ffb8d9 !important; }
body.theme2 .tag-chip.active {
  background: #ff66a3 !important;
  color: #000 !important;
  border-color: #000 !important;
  font-weight: 800;
}

body.theme2 .icon-btn { color: #333 !important; }
body.theme2 .icon-btn:hover {
  background: #000 !important;
  color: #fff !important;
}

/* ---------- Form fields ---------- */

body.theme2 .field-label { color: #000; font-weight: 700; }
body.theme2 .field-input {
  background: #fff !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  color: #000 !important;
  font-weight: 500;
  transition: box-shadow 0.15s ease, border-color 0.15s ease !important;
}
body.theme2 .field-input::placeholder { color: #8a8a8a; }
body.theme2 .field-input:focus {
  border-color: #ff66a3 !important;
  box-shadow: 3px 3px 0 #000 !important;
}
body.theme2 select {
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #000 !important;
  font-weight: 600;
}

/* ---------- Modals ---------- */

body.theme2 .modal-backdrop { background: rgba(0, 0, 0, 0.45) !important; }
body.theme2 .modal-panel {
  border: 3px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 12px 12px 0 #000 !important;
}
body.theme2 .modal-panel .sticky {
  border-bottom: 3px solid #000 !important;
}

/* blok prompt: kekal hitam (kod), border tebal */
body.theme2 #dm-content pre {
  border: 3px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 #ff66a3 !important;
  color: #f4f4f5 !important;
}
body.theme2 #dm-content .space-y-5 > div > p,
body.theme2 #dm-content .whitespace-pre-wrap:not(pre) {
  border-radius: 0 !important;
}

/* result cards dalam detail modal */
body.theme2 #dm-content div.grid > div {
  background: #fff !important;
  border: 3px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 #000 !important;
}
body.theme2 #dm-content div.grid > div .img-checker {
  background-color: #f6f1e7 !important;
  background-image: conic-gradient(#e9e4d8 0 25%, #f6f1e7 0 50%, #e9e4d8 0 75%, #f6f1e7 0) !important;
}
body.theme2 #dm-content .border-t {
  border-color: #000 !important;
}

/* ---------- Dropzone, toast, misc ---------- */

body.theme2 .dropzone {
  border: 3px dashed #000 !important;
  border-radius: 0 !important;
  background: #fff !important;
  transition: all 0.15s ease !important;
}
body.theme2 .dropzone:hover { border-color: #ff66a3 !important; }
body.theme2 .dropzone.dragover {
  border-color: #ff66a3 !important;
  background: rgba(255, 102, 163, 0.12) !important;
}

body.theme2 .toast {
  border: 3px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 #000 !important;
  font-weight: 700;
}
body.theme2 .toast-success { background: #4ade80 !important; color: #000 !important; }
body.theme2 .toast-error { background: #e11d48 !important; color: #fff !important; }
body.theme2 .toast-info {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

body.theme2 #im-summary {
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  background: #000 !important;
  color: #f4f4f5 !important;
}
body.theme2 #im-summary .text-indigo-300,
body.theme2 #im-summary [class*="text-yellow"] { color: #ff66a3 !important; }

body.theme2 #empty-state .bg-zinc-900 {
  background: #ff66a3 !important;
  border: 3px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 #000 !important;
  color: #000 !important;
}

body.theme2 #lightbox { background: rgba(20, 15, 10, 0.92) !important; }

/* ---------- Scrollbar & selection ---------- */

body.theme2 ::-webkit-scrollbar-thumb {
  background: #000;
  border-color: #f6f1e7;
}
body.theme2 ::-webkit-scrollbar-thumb:hover { background: #ff66a3; }
body.theme2 ::selection {
  background: #ff66a3;
  color: #000;
}
