:root {
  /* Richer, modern blue */
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #eff6ff;

  /* Deep Modern Purple */
  --secondary-color: #8b5cf6;
  --secondary-hover: #7c3aed;

  /* Vibrant Teal */
  --accent-color: #10b981;
  --accent-hover: #059669;

  /* Status Colors */
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --success-color: #22c55e;

  /* Modern Clean Backgrounds (Slate/Zinc feel) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc; /* Very light slate */
  --bg-tertiary: #f1f5f9; /* Light slate */
  --bg-card: #ffffff;
  --bg-overlay: rgba(15, 23, 42, 0.6); /* Slate 900 based overlay */

  /* Readable Typography */
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #94a3b8; /* Slate 400 */
  --text-inverse: #ffffff;

  --border-color: #e2e8f0; /* Slate 200 */
  --border-focus: #3b82f6;

  /* Smoother, diffused shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.05);

  /* Modern Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  /* Vibrant Hero Gradient matching reference (Bright Blue -> Purple) */
  --gradient-hero: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem; /* Softer, rounder corners */
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 70px;
  --chatbot-size: 60px;
}

[data-theme="dark"] {
  /* Dark Mode - Slate Based */
  --bg-primary: #0f172a; /* Slate 900 */
  --bg-secondary: #1e293b; /* Slate 800 */
  --bg-tertiary: #334155; /* Slate 700 */
  --bg-card: #1e293b;
  --bg-overlay: rgba(0, 0, 0, 0.8);

  --text-primary: #f8fafc; /* Slate 50 */
  --text-secondary: #cbd5e1; /* Slate 300 */
  --text-muted: #64748b; /* Slate 500 */
  --text-inverse: #0f172a;

  --border-color: #334155;
  --border-focus: #60a5fa;

  /* Dark mode shadows need to be stronger */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5),
    0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5),
    0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5),
    0 8px 10px -6px rgba(0, 0, 0, 0.4);

  --primary-light: #172554; /* Dark blue background for icons */

  /* Restore Classic Dark Hero Gradient */
  --gradient-hero: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 50%,
    #334155 100%
  );
}

.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color var(--transition-normal),
    color var(--transition-normal), border-color var(--transition-normal),
    box-shadow var(--transition-normal) !important;
}
