/**
 * AI Assistant design tokens — aligned with WEB-CRM-Frontend (red→blue mark).
 * Scoped on :root so drawer, floating button, and modals share one palette.
 */

:root {
  /* Brand primitives (red→blue). Source of truth. */
  --ai-brand-red: #e4322b;
  --ai-brand-blue: #1677ff;
  --ai-brand-blue-hover: #0958d9;
  --ai-brand-ramp-mid: #a83a6b;
  --ai-brand-ink: #101828;
  --ai-brand-ramp: linear-gradient(90deg, #e93d38, #2b7dff 50%, #e93d38);
  --ai-brand-body-light: linear-gradient(180deg, #ffffff 0%, #e7ebf2 94%);
  --ai-brand-glow-red: rgba(228, 50, 43, 0.64);
  --ai-brand-glow-blue: rgba(22, 119, 255, 0.66);

  /* Semantic aliases (consumers keep these names). */
  --ai-accent: var(--ai-brand-blue);
  --ai-accent-hover: var(--ai-brand-blue-hover);
  --ai-accent-tint: rgba(22, 119, 255, 0.08);
  --ai-accent-tint-strong: rgba(22, 119, 255, 0.16);
  --ai-shadow-sm: 0 2px 6px rgba(22, 119, 255, 0.12);
  --ai-shadow-md: 0 4px 12px rgba(22, 119, 255, 0.16);
  --ai-shadow-lg: 0 6px 20px rgba(22, 119, 255, 0.22);

  /* Compatibility aliases for older class names */
  --ai-bg-light: var(--ai-accent-tint);
  --ai-bg-gradient: var(--ai-accent-tint);
  --ai-active: var(--ai-accent-tint);

  /* Neutral surfaces */
  --ai-surface: #ffffff;
  --ai-surface-muted: #fafafa;
  --ai-surface-sunken: #f5f5f7;
  --ai-border: rgba(15, 23, 42, 0.06);
  --ai-border-strong: rgba(15, 23, 42, 0.1);
  --ai-surface-hover: #e9ecef;
  --ai-border-focus: rgba(22, 119, 255, 0.45);
  --ai-text: #0a0a0a;
  --ai-text-muted: #525252;
  --ai-text-subtle: #666666;
  --ai-text-faint: #737373;
  --ai-radius-sm: 6px;
  --ai-radius-md: 10px;
  --ai-radius-lg: 14px;
  --ai-shadow-soft-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --ai-shadow-soft-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --ai-shadow-soft-lg: 0 10px 30px rgba(15, 23, 42, 0.08);
  --ai-motion: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --ai-motion-slow: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Semantic */
  --ai-error-bg: #fff5f5;
  --ai-error-border: #fecaca;
  --ai-error-text: #991b1b;
  --ai-success: #16a34a;
  --ai-danger: #dc2626;
}
