/* ==========================================================================
   SIMDUK LIGHT THEME DESIGN SYSTEM — ULTRA CLEAN, PRECISE & ZERO SCROLL
   Ekosistem Digital HuniOne (Kementerian Perumahan & Kawasan Permukiman RI)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-family: var(--font-sans);
}

/* ==========================================================================
   STRICT SINGLE-SCREEN ROOT LOCK (ZERO VERTICAL WINDOW SCROLL)
   ========================================================================== */
html, body {
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Monospace Helpers */
.font-mono, .code-box, .ktp-ocr-font, pre, code {
  font-family: var(--font-mono) !important;
}

/* Minimalist Card Container (Light Theme) */
.card-clean {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-clean:hover {
  border-color: var(--border-hover);
}

/* Navigation Tabs (Sleek Segmented Pill Light) */
.nav-tab {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-tab:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.nav-tab.active {
  color: #1d4ed8;
  background-color: #eff6ff;
  border-color: #bfdbfe;
  font-weight: 600;
}

/* Clean Form Inputs (Light Theme) */
.input-clean {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 7px;
  padding: 0.35rem 0.65rem;
  height: 33px;
  font-size: 0.75rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.25;
}

.input-clean:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2.5px rgba(37, 99, 235, 0.15);
}

.input-clean::placeholder {
  color: #94a3b8;
  font-size: 0.75rem;
}

select.input-clean {
  background-color: #ffffff;
  color: #0f172a;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 0.75rem;
  padding-right: 1.75rem;
}

select.input-clean option {
  background-color: #ffffff;
  color: #0f172a;
  padding: 4px 8px;
}

/* SVG Icon Consistency */
.icon-svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Table Minimalist Styling */
table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  font-weight: 600;
  letter-spacing: 0.025em;
}

tbody tr {
  transition: background-color 0.1s ease;
}

tbody tr:hover {
  background-color: #f8fafc;
}

/* Physical KTP Mockup Visual (Authentic e-KTP ID-1 Spec) */
.ktp-card {
  background: linear-gradient(135deg, #7db3e3 0%, #3074d6 55%, #183a99 100%);
  border-radius: 12px;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.25), 0 4px 8px -2px rgba(15, 23, 42, 0.1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  min-height: 230px;
  color: #0f172a;
  user-select: none;
}

.ktp-watermark-svg {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  opacity: 0.14;
  pointer-events: none;
}

.ktp-ocr-font {
  font-family: var(--font-mono);
  letter-spacing: 1.2px;
}

.ktp-header-title {
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Custom Scrollbars (Clean Light Style) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Code box (Light Theme Console) */
.code-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  color: #93c5fd;
}
