/* ============================================================
   Green Apple Shop - Design tokens (green & white)
   Light + dark palettes, radii, shadows, typography.
   ============================================================ */
:root {
  /* Brand greens */
  --gas-green-50:  #eefbf3;
  --gas-green-100: #d6f5e3;
  --gas-green-200: #aeeac8;
  --gas-green-300: #78d9a7;
  --gas-green-400: #43c286;
  --gas-green-500: #1ba463;   /* primary */
  --gas-green-600: #13854f;
  --gas-green-700: #106a41;
  --gas-green-800: #0d5334;
  --gas-green-900: #08361f;

  --gas-ink:       #0f1a14;
  --gas-slate-500: #667b70;

  /* Bootstrap overrides */
  --bs-primary: var(--gas-green-500);
  --bs-primary-rgb: 27, 164, 99;
  --bs-link-color: var(--gas-green-600);
  --bs-link-hover-color: var(--gas-green-700);
  --bs-border-radius: .75rem;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-size: .9375rem;

  /* Semantic surface tokens */
  --surface:        #ffffff;
  --surface-2:      #f6f9f7;
  --surface-glass:  rgba(255, 255, 255, .72);
  --text:           var(--gas-ink);
  --text-muted:     var(--gas-slate-500);
  --line:           #e4ebe7;

  /* Sidebar is always dark (brand decision) */
  --sidebar-bg:     #0b1f16;
  --sidebar-bg-2:   #071711;
  --sidebar-text:   #cfe3d8;
  --sidebar-active:  var(--gas-green-500);

  --radius-sm: .5rem;
  --radius:    .875rem;
  --radius-lg: 1.25rem;

  --shadow-xs: 0 1px 2px rgba(8, 40, 25, .06);
  --shadow-sm: 0 2px 8px rgba(8, 40, 25, .06);
  --shadow-md: 0 8px 24px -8px rgba(8, 40, 25, .16);
  --shadow-lg: 0 24px 48px -24px rgba(8, 40, 25, .28);

  --gradient-primary: linear-gradient(135deg, var(--gas-green-500), var(--gas-green-300));
  --gradient-ink:     linear-gradient(160deg, #0b1f16, #05120c);
  --gradient-sheen:   linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55));

  --sidebar-w: 268px;
  --sidebar-w-collapsed: 78px;
  --navbar-h: 66px;
  --transition: 220ms cubic-bezier(.4, 0, .2, 1);
}

[data-bs-theme="dark"] {
  --surface:       #101a15;
  --surface-2:     #0b1310;
  --surface-glass: rgba(16, 26, 21, .72);
  --text:          #e8f2ec;
  --text-muted:    #92a89c;
  --line:          rgba(255, 255, 255, .09);

  --bs-body-bg: #0b1310;
  --bs-body-color: #e8f2ec;
  --bs-emphasis-color: #ffffff;
  --gradient-sheen: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 28px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .7);
}

/* Soft badges (reusable across all modules) */
.badge-soft-primary   { background: color-mix(in srgb, var(--gas-green-500) 14%, transparent); color: var(--gas-green-600); }
.badge-soft-success   { background: color-mix(in srgb, #16a34a 14%, transparent); color: #16a34a; }
.badge-soft-info      { background: color-mix(in srgb, #0ea5e9 14%, transparent); color: #0284c7; }
.badge-soft-warning   { background: color-mix(in srgb, #f59e0b 16%, transparent); color: #b45309; }
.badge-soft-danger    { background: color-mix(in srgb, #ef4444 14%, transparent); color: #dc2626; }
.badge-soft-secondary { background: color-mix(in srgb, var(--text-muted) 14%, transparent); color: var(--text-muted); }
[class^="badge-soft-"] { font-weight: 600; padding: .38em .7em; border-radius: 999px; font-size: .75rem; }
[data-bs-theme="dark"] .badge-soft-warning { color: #fbbf24; }
[data-bs-theme="dark"] .badge-soft-info    { color: #38bdf8; }
[data-bs-theme="dark"] .badge-soft-primary { color: var(--gas-green-300); }
[data-bs-theme="dark"] .badge-soft-success { color: #4ade80; }
[data-bs-theme="dark"] .badge-soft-danger  { color: #f87171; }
