/* =====================================================================
   SI-NU PALANG — DESIGN TOKENS
   Tahap 5 — UI/UX
   ===================================================================== */

:root {
  /* ---------- WARNA PRIMER (Hijau NU) ---------- */
  --nu-green-50:  #E8F5EE;
  --nu-green-100: #C5E5D3;
  --nu-green-200: #9ED4B5;
  --nu-green-300: #6FBF92;
  --nu-green-400: #47A972;
  --nu-green-500: #1B7A43;  /* PRIMARY */
  --nu-green-600: #176B3B;
  --nu-green-700: #125A31;
  --nu-green-800: #0D4826;
  --nu-green-900: #08351B;

  /* ---------- WARNA SEKUNDER (Emas) ---------- */
  --nu-gold-50:  #FDF8E7;
  --nu-gold-100: #FAEFC4;
  --nu-gold-200: #F5E19B;
  --nu-gold-300: #EDCF6E;
  --nu-gold-400: #E0BB45;
  --nu-gold-500: #C9A227;  /* ACCENT */
  --nu-gold-600: #A98720;
  --nu-gold-700: #866A19;
  --nu-gold-800: #634E12;
  --nu-gold-900: #40320C;

  /* ---------- NETRAL (Abu Modern) ---------- */
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;  /* TEXT PRIMARY */
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* ---------- SEMANTIK ---------- */
  --color-success: #16A34A;
  --color-warning: #F59E0B;
  --color-danger:  #DC2626;
  --color-info:    #0EA5E9;

  /* ---------- SEMANTIK APLIKASI ---------- */
  --bg-body:        var(--gray-50);
  --bg-surface:     #FFFFFF;
  --bg-elevated:    #FFFFFF;
  --bg-muted:       var(--gray-100);
  --border-default: var(--gray-200);
  --border-strong:  var(--gray-300);
  --text-primary:   var(--gray-700);
  --text-secondary: var(--gray-500);
  --text-muted:     var(--gray-400);
  --text-inverse:   #FFFFFF;

  /* ---------- TIPOGRAFI ---------- */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Skala tipografi (rem, base 16px) */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */

  --leading-tight:  1.25;
  --leading-snug:   1.375;
  --leading-normal: 1.5;
  --leading-relaxed:1.625;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;

  /* ---------- SPACING (skala 4px) ---------- */
  --space-1:  0.25rem;  /* 4px */
  --space-2:  0.5rem;   /* 8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.25rem;  /* 20px */
  --space-6:  1.5rem;   /* 24px */
  --space-8:  2rem;     /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */

  /* ---------- RADIUS ---------- */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* ---------- SHADOW ---------- */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* ---------- TRANSISI ---------- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ---------- LAYOUT ---------- */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1280px;
  --container-2xl: 1400px;

  --header-height: 72px;
  --sidebar-width: 260px;
}

/* =====================================================================
   DARK MODE (untuk admin panel / Filament)
   ===================================================================== */
[data-theme="dark"] {
  --bg-body:        var(--gray-900);
  --bg-surface:     var(--gray-800);
  --bg-elevated:    var(--gray-800);
  --bg-muted:       var(--gray-700);
  --border-default: var(--gray-700);
  --border-strong:  var(--gray-600);
  --text-primary:   var(--gray-100);
  --text-secondary: var(--gray-400);
  --text-muted:     var(--gray-500);
  --text-inverse:   var(--gray-900);
}

/* =====================================================================
   BREAKPOINT REFERENCE (Tailwind default, diselaraskan)
   =====================================================================
   xs  : 0     – 479px   → HP kecil
   sm  : 480px – 639px   → HP besar
   md  : 640px – 767px   → HP landscape / tablet kecil
   lg  : 768px – 1023px  → Tablet
   xl  : 1024px – 1279px → Laptop
   2xl : 1280px+         → Desktop
   ===================================================================== */
