/* ==========================================================================
   Barengan.id Portal Timeline — Clean Trust-Blue & Friendly Rounded
   Clean Flat (shadow-none), border tipis 1px border-slate-200, font tunggal Sora
   ========================================================================== */

:root {
  --bg-page: #F4F6F9;
  --bg-surface: #FFFFFF;
  --border-subtle: #E2E8F0;
  --brand-primary: #023E8A;
  --brand-hover: #0353A4;
  --brand-soft: #EFF6FF;
  --ink-main: #0F172A;
  --ink-secondary: #475569;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--ink-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, pre {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Clean Flat Surface Card */
.surface-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  box-shadow: none;
}

.surface-card-hover {
  transition: border-color 150ms ease, background-color 150ms ease;
}

.surface-card-hover:hover {
  border-color: #CBD5E1;
}

/* Clean Flat Button */
.clean-btn {
  border-radius: 0.5rem;
  box-shadow: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  cursor: pointer;
}

.clean-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Custom Scrollbar Halus */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Custom Checkbox Friendly Rounded */
.clean-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #CBD5E1;
  border-radius: 0.25rem;
  background-color: #FFFFFF;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.clean-checkbox::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 120ms ease-in-out;
  box-shadow: inset 1em 1em #FFFFFF;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.clean-checkbox:checked {
  background-color: #023E8A;
  border-color: #023E8A;
}

.clean-checkbox:checked::before {
  transform: scale(1);
}

/* Code Block Styling */
.code-block-pre {
  background-color: #0F172A;
  color: #F1F5F9;
  border: 1px solid #1E293B;
  border-radius: 0.75rem;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* Modal Backdrop */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}
