/* Tema claro (padrao) */
:root {
  --bg: #ececec;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --surface-glass: rgba(255, 255, 255, 0.92);
  --border: #e3e6ea;
  --text: #1f2328;
  --text-dim: #6b7280;
  --accent: #0b9ad8;
  --accent-hover: #0884bb;
  --accent-soft: rgba(11, 154, 216, 0.10);
  --success: #2ecc71;
  --danger: #e5484d;
  --warning: #f5b400;
  --info: #1e88e5;
  --on-color: #ffffff;

  /* Chat estilo WhatsApp */
  --chat-bg: #efeae2;
  --chat-pattern: rgba(0, 0, 0, 0.035);
  --bubble-in: #ffffff;
  --bubble-out: #d9fdd3;
  --bubble-bot: #e7f1fb;
  --bubble-nota: #fff6d6;
  --nota-text: #8a6100;
  --tick-read: #1e88e5;

  /* Tipografia */
  --font: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 28px;

  /* Espacos */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;

  /* Raios e sombras */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-glass: 0 12px 32px rgba(16, 24, 40, 0.16);
  --blur: blur(10px);

  /* Layout */
  --topbar-h: 64px;
}

/* Tema escuro (botao da lua no topo) */
:root[data-theme="dark"] {
  --bg: #0d0f12;
  --bg-elev: #14171c;
  --surface: #1a1e24;
  --surface-2: #20252c;
  --surface-glass: rgba(20, 23, 28, 0.92);
  --border: #2a3038;
  --text: #e8eaed;
  --text-dim: #9aa0a8;
  --accent-soft: rgba(255, 117, 0, 0.14);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.45);
  --chat-bg: #0f1418;
  --chat-pattern: rgba(255, 255, 255, 0.025);
  --bubble-in: #1f262d;
  --bubble-out: #144d37;
  --bubble-bot: #1c2a36;
  --bubble-nota: #2e2a14;
  --nota-text: #f1c40f;
  --tick-read: #53bdeb;
}
