/* Tema claro — paleta Azul / Branco / Laranja */
:root,
[data-theme="light"] {
  color-scheme: light;

  --brand-blue: #2fa7d3;
  --brand-blue-strong: #1889b4;
  --brand-blue-soft: rgba(47, 167, 211, 0.12);
  --brand-orange: #fd7401;
  --brand-orange-strong: #ea6500;
  --brand-orange-soft: rgba(253, 116, 1, 0.14);

  --bg: #e2ebf9;
  --surface: #ffffff;
  --surface2: #eaf7fc;
  --border: #d6e0e5;
  --text: #263238;
  --text-strong: #1e2b31;
  --muted: #6b7b83;
  --primary: var(--brand-blue);
  --primary-hover: var(--brand-blue-strong);
  --accent: var(--brand-orange);
  --tab-active: #0a3d7a;
  --tab-active-hover: #0c4a8c;
  --tab-active-border: #062445;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 8px 24px rgba(47, 167, 211, 0.1);
  --shadow-lg: 0 14px 42px rgba(47, 167, 211, 0.16);
  --overlay: rgba(15, 23, 42, 0.45);
  --table-hover: rgba(47, 167, 211, 0.05);
  --radius: 10px;
  --sidebar-w: 260px;

  --alert-error-bg: rgba(239, 68, 68, 0.12);
  --alert-error-text: #b91c1c;
  --alert-error-border: rgba(239, 68, 68, 0.35);
  --alert-info-bg: var(--brand-blue-soft);
  --alert-info-text: var(--brand-blue);
  --alert-info-border: rgba(47, 167, 211, 0.28);
  --alert-success-bg: #e8f7ef;
  --alert-success-text: #166534;
  --alert-success-border: #22c55e;
  --badge-ok-bg: rgba(34, 197, 94, 0.15);
  --badge-off-bg: rgba(239, 68, 68, 0.12);

  --form-page-bg: #e2ebf9;
  --form-container-bg: #ffffff;
  --form-section-bg: #eaf7fc;
  --form-actions-bg: #fbfcfd;
  --form-field-bg: #ffffff;
  --form-border: #dce6ea;
  --form-input-border: #dce6ea;
  --form-input-bg: #ffffff;
  --form-input-text: #111827;
  --form-label: var(--tab-active, #0a3d7a);
  --form-hint: #b14c4c;
  --form-title: var(--brand-blue);
  /* Moldura dos formulários no modal (azul claro → cinza) */
  --form-moldura-bg: linear-gradient(
    165deg,
    color-mix(in srgb, var(--brand-blue, #2fa7d3) 14%, #fff) 0%,
    color-mix(in srgb, var(--primary-soft, #e8f6fb) 55%, #fff) 42%,
    var(--surface2, #f1f5f9) 100%
  );
  --section-title-color: var(--brand-blue);
  --form-section-title-color: var(--brand-blue);
  --form-header-text: var(--brand-blue);
  --form-focus: var(--brand-orange);
  --form-cep-ok-bg: #e8f5e0;
  --form-cep-ok-border: #8bc34a;
  --form-cep-error-bg: #ffe8e8;
  --form-cep-error-border: #d9534f;
  --form-overlay: rgba(15, 23, 42, 0.48);
  --brand-sub: #888888;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Consolas", "Courier New", ui-monospace, monospace;
  --section-title-height: 35px;
  --section-title-height-actions: 35px;
}
