/* Widget de chat n8n aux couleurs IntellX */
:root{
  --chat--color-primary:#10b981;
  --chat--color-primary-shade-50:#0ea371;
  --chat--color-primary-shade-100:#0c8a60;
  --chat--color-secondary:#183054;
  --chat--color-secondary-shade-50:#132744;
  --chat--color-white:#ffffff;
  --chat--color-light:#f8fafc;
  --chat--color-light-shade-50:#eef2f7;
  --chat--color-light-shade-100:#e2e8f0;
  --chat--color-medium:#cbd5e1;
  --chat--color-dark:#0f172a;
  --chat--color-disabled:#94a3b8;
  --chat--color-typing:#475569;
  --chat--border-radius:.75rem;
  --chat--window--width:400px;
  --chat--window--height:600px;
  --chat--header--background:#183054;
  --chat--header--color:#ffffff;
  --chat--heading--font-size:1.15rem;
  --chat--subtitle--font-size:.85rem;
  --chat--message--font-size:.95rem;
  --chat--message--border-radius:.9rem;
  --chat--message--bot--background:#f1f5f9;
  --chat--message--bot--color:#0f172a;
  --chat--message--user--background:#183054;
  --chat--message--user--color:#ffffff;
  --chat--toggle--background:#10b981;
  --chat--toggle--hover--background:#0ea371;
  --chat--toggle--active--background:#0c8a60;
  --chat--toggle--color:#03291d;
  --chat--toggle--size:56px;
  --chat--input--background:#ffffff;
  --chat--input--text-color:#0f172a;
  --chat--input--container--background:#ffffff;
  --chat--input--container--border:1px solid #e2e8f0;
  --chat--input--send--button--color:#059669;
  --chat--input--send--button--color-hover:#047857;
}
html.dark{
  --chat--color-white:#102b43;
  --chat--color-light:#0b2034;
  --chat--color-light-shade-50:#12314a;
  --chat--color-light-shade-100:#173a55;
  --chat--color-medium:#1f4c6b;
  --chat--color-dark:#e2e8f0;
  --chat--color-typing:#94a3b8;
  --chat--header--background:#0b2034;
  --chat--header--color:#f1f5f9;
  --chat--message--bot--background:#0b2034;
  --chat--message--bot--color:#e2e8f0;
  --chat--message--user--background:#10b981;
  --chat--message--user--color:#03291d;
  --chat--input--background:#0b2034;
  --chat--input--text-color:#e2e8f0;
  --chat--input--container--background:#0b2034;
  --chat--input--container--border:1px solid rgba(12,74,110,.85);
  --chat--input--send--button--color:#34d399;
  --chat--input--send--button--color-hover:#6ee7b7;
  --chat--input--send--button--background-hover:rgba(255,255,255,.06);
}
.n8n-chat, .n8n-chat *{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.n8n-chat .chat-inputs textarea::placeholder{color:#94a3b8;opacity:1}
html.dark .n8n-chat .chat-inputs textarea::placeholder{color:#64748b;opacity:1}
html.dark .n8n-chat .chat-inputs textarea{color:#e2e8f0;-webkit-text-fill-color:#e2e8f0}
/* Liens dans les reponses du bot (liens Markdown ou URL rendues cliquables par chat-liens.js) */
.n8n-chat .chat-message-from-bot a{color:#047857;font-weight:500;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;overflow-wrap:anywhere;word-break:break-word}
.n8n-chat .chat-message-from-bot a:hover{color:#065f46}
html.dark .n8n-chat .chat-message-from-bot a{color:#34d399}
html.dark .n8n-chat .chat-message-from-bot a:hover{color:#6ee7b7}
