/* ============================================
   E-SATUPINTU — Global Styles
   BPOM Color Palette: Blue, Green, Navy, White
   ============================================ */

:root {
  /* Primary Colors */
  --bpom-blue: #0066CC;
  --bpom-blue-dark: #004FA3;
  --bpom-blue-light: #3390E0;
  --bpom-blue-pale: #E8F3FF;

  --bpom-green: #009944;
  --bpom-green-dark: #007A36;
  --bpom-green-light: #33BB6D;
  --bpom-green-pale: #E6F7EE;

  --bpom-navy: #0D1B4B;
  --bpom-navy-mid: #1A2B6D;
  --bpom-navy-light: #2C3E8C;

  /* Neutral */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Semantic */
  --success: #16A34A;
  --success-pale: #DCFCE7;
  --warning: #D97706;
  --warning-pale: #FEF3C7;
  --danger: #DC2626;
  --danger-pale: #FEE2E2;
  --info: #0284C7;
  --info-pale: #E0F2FE;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;

  /* Transitions */
  --transition: all 0.2s ease;
  --transition-slow: all 0.35s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  font-size: var(--font-size-base);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); outline: none; }
img { max-width: 100%; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.toast.show { transform: translateX(0); pointer-events: all; }
.toast.success { background: var(--success); color: #fff; }
.toast.error { background: var(--danger); color: #fff; }
.toast.info { background: var(--bpom-blue); color: #fff; }
.toast.warning { background: var(--warning); color: #fff; }
.toast i { font-size: 1.1rem; flex-shrink: 0; }

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-success { background: var(--success-pale); color: var(--success); }
.badge-danger  { background: var(--danger-pale);  color: var(--danger);  }
.badge-warning { background: var(--warning-pale); color: var(--warning); }
.badge-info    { background: var(--info-pale);    color: var(--info);    }
.badge-blue    { background: var(--bpom-blue-pale); color: var(--bpom-blue-dark); }
.badge-green   { background: var(--bpom-green-pale); color: var(--bpom-green-dark); }
.badge-purple  { background: #ede9fe; color: #6d28d9; }
.badge-teal    { background: #ccfbf1; color: #0f766e; }
.badge-orange  { background: #ffedd5; color: #c2410c; }

/* ---- Utility ---- */
.text-muted { color: var(--gray-500); }
.text-sm    { font-size: var(--font-size-sm); }
.text-xs    { font-size: var(--font-size-xs); }
.fw-600     { font-weight: 600; }
.fw-700     { font-weight: 700; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.gap-2 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
