/* Design tokens — Gestão Omega (neutro SaaS + marca MedCof) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://api.fontshare.com/v2/css?f[]=switzer@300,400,500,600,700&display=swap");

:root {
  /* Brand — MedCof (carmim de assinatura) */
  --brand: #e2263c;
  --brand-hover: #c91e32;
  --brand-foreground: #ffffff;

  /* Superfícies */
  --color-bg: #f3f4f5;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-overlay: rgba(23, 23, 23, 0.5);

  /* Tipografia */
  --color-text: #171717;
  --color-text-muted: #525252;
  --color-text-disabled: #a3a3a3;

  --color-border: #e5e7eb;
  --color-border-strong: #d4d4d4;
  --color-input-bg: #ffffff;
  --color-ring: #171717;

  /* Contato / WhatsApp */
  --color-whatsapp: #22c55e;
  --color-whatsapp-hover: #16a34a;

  /* Estados */
  --color-success: oklch(0.6959 0.1491 162.48);
  --color-warning: oklch(0.8369 0.1644 84.43);
  --color-danger: oklch(0.5904 0.2185 22.17);
  --color-info: oklch(0.6959 0.1723 244.19);

  /* Tipografia */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Switzer", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --fs-xs: 0.75rem;
  --lh-xs: 1.33;
  --fs-sm: 0.875rem;
  --lh-sm: 1.43;
  --fs-base: 1rem;
  --lh-base: 1.5;
  --fs-lg: 1.125rem;
  --lh-lg: 1.55;
  --fs-xl: 1.25rem;
  --lh-xl: 1.4;
  --fs-2xl: 1.5rem;
  --lh-2xl: 1.33;
  --fs-3xl: 1.875rem;
  --lh-3xl: 1.2;
  --fs-4xl: 2.25rem;
  --lh-4xl: 1.11;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-card: 4px 2px 10px 3px rgba(211, 218, 229, 0.35);
  --shadow-focus: 0 0 0 3px color-mix(in oklab, var(--brand) 28%, transparent);

  /* Motion */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 150ms;
  --duration-slow: 240ms;
  --transition-base: color var(--duration-base) var(--ease-in-out),
    background-color var(--duration-base) var(--ease-in-out),
    border-color var(--duration-base) var(--ease-in-out),
    box-shadow var(--duration-base) var(--ease-in-out),
    transform var(--duration-base) var(--ease-in-out);

  /* Z-index */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 800;
  --z-modal: 900;
  --z-toast: 9999;

  /* Containers */
  --container-sm: 24rem;
  --container-md: 28rem;
  --container-lg: 32rem;
  --container-xl: 36rem;
  --container-2xl: 42rem;
  --container-4xl: 56rem;
  --container-5xl: 64rem;
  --container-6xl: 72rem;

  /* Compat — folhas legadas (anest-auth-portal) */
  --text: var(--color-text);
  --text-muted: var(--color-text-muted);
  --accent: var(--brand);
  --font: var(--font-body);
}

[data-theme="dark"] {
  --color-bg: oklch(15.91% 0 0);
  --color-surface: oklch(21.34% 0 0);
  --color-surface-elevated: oklch(26.5% 0 0);
  --color-text: oklch(98% 0 0);
  --color-text-muted: oklch(70% 0 0);
  --color-border: oklch(32.11% 0 0);
  --color-input-bg: oklch(21.34% 0 0);
  --text: var(--color-text);
  --text-muted: var(--color-text-muted);
}
