/**
 * variables.css
 * ------------------------------------------------------
 * Design System - CRM Bank Sampah
 * Seluruh nilai desain (warna, tipografi, spacing, radius,
 * shadow) didefinisikan di sini agar konsisten dan mudah
 * dikelola di seluruh aplikasi. Jangan hardcode nilai warna
 * atau ukuran di file CSS lain, gunakan variable ini.
 * ------------------------------------------------------
 */

:root {
  /* ===== Warna Utama (Brand - Bank Sampah) ===== */
  --color-primary: #16a34a;
  --color-primary-hover: #15803d;
  --color-primary-light: #dcfce7;
  --color-primary-dark: #14532d;

  /* ===== Warna Netral / Layout ===== */
  --color-secondary: #f8fafc;
  --color-bg: #f1f5f9;
  --color-sidebar: #ffffff;
  --color-navbar: #ffffff;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;

  /* ===== Warna Teks ===== */
  --color-text-primary: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;
  --color-text-on-primary: #ffffff;

  /* ===== Warna Status ===== */
  --color-success: #22c55e;
  --color-success-light: #dcfce7;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-danger: #ef4444;
  --color-danger-light: #fee2e2;
  --color-info: #3b82f6;
  --color-info-light: #dbeafe;

  /* ===== Tipografi ===== */
  --font-family-base: "Poppins", sans-serif;

  /* Heading */
  --font-size-h1: 1.75rem;   /* 28px */
  --font-size-h2: 1.375rem;  /* 22px */
  --font-size-h3: 1.125rem;  /* 18px */

  /* Body & Caption */
  --font-size-body: 0.9375rem;  /* 15px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-caption: 0.75rem; /* 12px */

  /* Kompatibilitas dengan skala lama */
  --font-size-xs: 0.75rem;
  --font-size-md: 0.9375rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-xxl: 1.75rem;

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

  --line-height-base: 1.5;

  /* ===== Spacing ===== */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* ===== Layout ===== */
  --sidebar-width: 264px;
  --sidebar-width-collapsed: 80px;
  --navbar-height: 68px;
  --content-max-width: 1280px;

  /* ===== Radius ===== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* ===== Shadow (halus, khas modern dashboard) ===== */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-focus: 0 0 0 3px rgba(22, 163, 74, 0.15);

  /* ===== Transisi ===== */
  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 350ms ease;

  /* ===== Z-index ===== */
  --z-dropdown: 80;
  --z-sidebar: 90;
  --z-navbar: 100;
  --z-overlay: 200;
  --z-modal: 210;
  --z-toast: 220;
}
