/* Design tokens LifeApp: spacing 4/8/12/16/24/32, một màu nhấn teal, dark mode có surface riêng. */
:root {
  color-scheme: light dark;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 40px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 600;
  --lh-tight: 1.25;
  --lh-body: 1.5;

  --tap: 44px;
  --content-max: 640px;
  --tabbar-h: 60px;
  --dur-fast: 150ms;
  --dur: 220ms;
  --ease: ease-in-out;

  /* Màu — nền sáng */
  --color-bg: #f4f7f6;
  --color-surface: #ffffff;
  --color-surface-2: #eef3f1;
  --color-surface-3: #e2e9e6;
  --color-raised: #ffffff;
  --color-border: #d9e1de;
  --color-text: #15201d;
  --color-text-muted: #56655f;
  --color-text-subtle: #66756f;

  --color-primary: #0f766e;
  --color-primary-hover: #0b5f58;
  --color-primary-soft: #dff2ee;
  --color-primary-text: #0b6b63;
  --color-on-primary: #ffffff;

  --color-success: #15803d;
  --color-success-soft: #e3f4e8;
  --color-warning: #9a4d04;
  --color-warning-soft: #fdf0dc;
  --color-danger: #b42318;
  --color-danger-soft: #fdeceb;
  --color-info: #1d4ed8;
  --color-info-soft: #e6edfd;

  --color-focus: #1d63d6;
  --color-backdrop: rgb(10 16 14 / 0.45);
  --shadow-sm: 0 1px 2px rgb(16 24 22 / 0.06), 0 1px 1px rgb(16 24 22 / 0.04);
  --shadow-lg: 0 12px 32px rgb(16 24 22 / 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0e1312;
    --color-surface: #161d1b;
    --color-surface-2: #1d2624;
    --color-surface-3: #27312e;
    --color-raised: #33403c;
    --color-border: #2c3734;
    --color-text: #e6eeeb;
    --color-text-muted: #a3b2ad;
    --color-text-subtle: #8f9e99;

    --color-primary: #3cc6b3;
    --color-primary-hover: #62d6c6;
    --color-primary-soft: #15322e;
    --color-primary-text: #62d6c6;
    --color-on-primary: #04201c;

    --color-success: #5fd68e;
    --color-success-soft: #13301f;
    --color-warning: #f2b45a;
    --color-warning-soft: #33260f;
    --color-danger: #f47f76;
    --color-danger-soft: #3a1c1a;
    --color-info: #8ab0ff;
    --color-info-soft: #18243d;

    --color-focus: #8ab0ff;
    --color-backdrop: rgb(0 0 0 / 0.6);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.55);
  }
}
