/* ==========================================================================
   SISTEM ARSIP DIGITAL DESA SUNGAI RAYA UTARA
   Design System Tokens & Styles
   Aesthetics: Apple Human Interface & Modern SaaS
   Inspiration: Card-First Pastel UI Reference
   Principles: ui-ux-pro-max, gsap, ponytail
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Core Neutral Palette */
  --bg-app: #F6F8FB;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F8FAFC;
  --bg-sidebar: #FFFFFF;
  --border-subtle: #E8EEF5;
  --border-strong: #CBD5E1;
  --border-dashed: #CBD5E1;

  /* Typography Colors */
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Primary Brand & Accents */
  --primary: #1E40AF;        /* Deep Navy */
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --primary-border: #BFDBFE;

  --accent-cyan: #0284C7;
  --accent-emerald: #059669;
  --accent-amber: #D97706;
  --accent-rose: #E11D48;

  /* Reference UI Pastel System (Tailored for Village Archives) */
  /* Blue / Lavender: Surat Masuk & Undangan */
  --pastel-blue-bg: #E0E7FF;
  --pastel-blue-text: #3730A3;
  --pastel-blue-border: #C7D2FE;
  --pastel-blue-accent: #6366F1;

  /* Peach / Coral: Peraturan Desa & SK */
  --pastel-coral-bg: #FEE2E2;
  --pastel-coral-text: #991B1B;
  --pastel-coral-border: #FECACA;
  --pastel-coral-accent: #EF4444;

  /* Yellow / Amber: Buku Agenda & Notulen */
  --pastel-yellow-bg: #FEF3C7;
  --pastel-yellow-text: #92400E;
  --pastel-yellow-border: #FDE68A;
  --pastel-yellow-accent: #F59E0B;

  /* Mint / Emerald: APBDes & Perencanaan */
  --pastel-emerald-bg: #D1FAE5;
  --pastel-emerald-text: #065F46;
  --pastel-emerald-border: #A7F3D0;
  --pastel-emerald-accent: #10B981;

  /* Purple / Lavender: Dokumen Kegiatan & Dokumentasi */
  --pastel-purple-bg: #EDE9FE;
  --pastel-purple-text: #5B21B6;
  --pastel-purple-border: #DDD6FE;
  --pastel-purple-accent: #8B5CF6;

  /* Sky / Cyan: Laporan & Umum */
  --pastel-sky-bg: #E0F2FE;
  --pastel-sky-text: #0369A1;
  --pastel-sky-border: #BAE6FD;
  --pastel-sky-accent: #0284C7;

  /* Shadows (Subtle & Apple-like) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.06), 0 3px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 32px -8px rgba(15, 23, 42, 0.08), 0 6px 12px -4px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 14px 28px -6px rgba(30, 64, 175, 0.12), 0 4px 10px -2px rgba(30, 64, 175, 0.06);

  /* Taste Skill & High-End Visual Design: Specular & Bezel Shadows */
  --shadow-specular: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-bezel: 0 0 0 1px rgba(226, 232, 240, 0.75), 0 3px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-bezel-hover: 0 0 0 1px rgba(148, 163, 184, 0.5), 0 14px 28px -6px rgba(15, 23, 42, 0.1);

  /* Border Radius */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-bezel-outer: 20px;
  --radius-bezel-inner: 15px;
  --radius-pill: 9999px;

  /* Transitions & Spring Physics */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fluid: 0.55s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-body);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Headings (Apple Tight Tracking) */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  letter-spacing: -0.025em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h3 {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-body);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* SVG Icon Base Styling (ui-ux-pro-max: strictly semantic vector icons) */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.85px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
