/* Central IA — override brand colors (Chatwoot v4 dashboard).
   Loaded via nginx sub_filter into <head>. Apply !important
   sparingly — only on tokens that win versus inline styles. */

:root, :root.dark {
  --w-25:  #FFFBEB !important;
  --w-50:  #FFF7ED !important;
  --w-75:  #FFE9D2 !important;
  --w-100: #FFEDD5 !important;
  --w-200: #FED7AA !important;
  --w-300: #FDBA74 !important;
  --w-400: #FB923C !important;
  --w-500: #F97316 !important;
  --w-600: #EA580C !important;
  --w-700: #C2410C !important;
  --w-800: #9A3412 !important;
  --w-900: #7C2D12 !important;

  /* Tokens novos do v4 (woot prefix duplo) */
  --color-woot:        #F97316 !important;
  --color-woot-50:     #FFF7ED !important;
  --color-woot-100:    #FFEDD5 !important;
  --color-woot-500:    #F97316 !important;
  --color-woot-600:    #EA580C !important;
  --color-woot-700:    #C2410C !important;
  --woot-50:           #FFF7ED !important;
  --woot-100:          #FFEDD5 !important;
  --woot-200:          #FED7AA !important;
  --woot-300:          #FDBA74 !important;
  --woot-400:          #FB923C !important;
  --woot-500:          #F97316 !important;
  --woot-600:          #EA580C !important;
  --woot-700:          #C2410C !important;
  --woot-800:          #9A3412 !important;
  --woot-900:          #7C2D12 !important;
}

/* Fundo escuro forçado (sidebar/header) — apenas em quem já está em modo dark */
:root.dark, html.dark {
  --color-background:   #0A0A0A !important;
  --color-background-light: #18181B !important;
  --color-body:         #0A0A0A !important;
  --s-900:              #0A0A0A !important;
  --s-800:              #18181B !important;
}

/* Garantir que o "powered by" não exiba o link Chatwoot original */
a[href*="chatwoot.com"][class*="poweredby"],
a[href*="chatwoot.com"]:has(> img[alt*="Chatwoot"]) {
  display: none !important;
}

/* Página de login: title acima do formulário */
.login__hero h2,
.signup__hero h2 {
  color: #F97316 !important;
}

/* Botões primários — fallback caso tokens não cubram tudo */
.button.button--primary,
button.bg-woot-500,
.bg-woot-500 {
  background-color: #F97316 !important;
}
.button.button--primary:hover,
button.bg-woot-500:hover {
  background-color: #EA580C !important;
}
