/* ═══════════════════════════════════════════
   AI Chat Bot Button — chatbot-widget
   Tự chứa CSS variables — không cần setup thêm.
   Nếu project đã có variables riêng, chúng sẽ
   tự động ghi đè (do :root có độ ưu tiên thấp hơn).
   ═══════════════════════════════════════════ */

/* ── Default variables (light mode) ── */
:root {
  --color-primary: #3c50e0;
  --color-primary-rgb: 60, 80, 224;
  --color-background: #f1f5f9;
  --color-surface: #ffffff;
  --color-header: #ffffff;
  --color-text: #1c2434;
  --color-text-muted: #64748b;
  --color-text-secondary: #334155;
  --color-border: #e2e8f0;
  --color-danger: #ef4444;
  --color-success: #10b981;
  --color-skeleton: #e2e8f0;
  --color-skeleton-shine: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --header-height: 64px;
  --nav-height: 64px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* ── Dark mode ── */
[data-theme="dark"] {
  --color-background: #1a222c;
  --color-surface: #1c2536;
  --color-header: #1c2536;
  --color-text: #dee4ee;
  --color-text-muted: #8a99af;
  --color-text-secondary: #a1aec0;
  --color-border: #2e3a47;
  --color-skeleton: #2e3a47;
  --color-skeleton-shine: #3d4d5f;
}

.ai-chat-btn {
  overflow: visible !important;
}

.ai-hand {
  transition: transform var(--transition-fast, 0.15s ease);
}

.ai-chat-btn:hover .ai-hand {
  animation: wave-hand 0.6s ease-in-out infinite alternate;
  transform-origin: 40px 30px;
}

@keyframes wave-hand {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-20deg); }
  50%  { transform: rotate(15deg); }
  75%  { transform: rotate(-15deg); }
  100% { transform: rotate(10deg); }
}

.ai-chat-btn:hover .ai-robot {
  filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.4));
}
