/* ==========================================================================
   AURUM DASHBOARD - IMPORT-ONLY ENTRY POINT
   Order matters: tokens -> base -> layout -> components -> utilities
   ========================================================================== */

/* 1. Design Tokens (must be first) */

/* ==========================================================================
   AURUM AI LABS - OFFICIAL DESIGN TOKENS
   Source: 24-brand-styles.md / Aurum_Technical_Design_System_ALIGNED_03Nov25.md
   ========================================================================== */

:root {
  /* Primary Brand Colors */
  --color-vivid-blue: #0466C8;
  --brand-blue: #0466C8;
  --color-yellow: #EEC35A;
  --color-black: #000000;
  
  /* Secondary Colors */
  --color-red-orange: #EE8029;
  --color-evergreen: #03BFA4;
  --color-dark-red: #E73134;
  
  /* Gradient Colors */
  --color-medium-blue: #1D75CE;
  --color-teal: #74C5BD;
  
  /* Neutrals */
  --color-white: #FFFFFF;
  --color-gray-50: #EFEFEF;
  --color-gray-100: #F2F0EF;
  --color-gray-200: #E4E4E7;
  --color-gray-300: #D4D4D8;
  --color-gray-500: #71717A;
  --color-gray-600: #52525B;
  --color-gray-800: #262626;
  --color-gray-900: #1A1A1A;
  --color-gray-950: #171717;
  
  /* Special UI Colors */
  --color-icon-bg-light: #F5F5F5;
  --color-icon-bg-dark: #333333;
  --color-warm-subtle: #FFF8E7;
  --color-bg-subtle-warm: #FFF8E7;
  
  /* Semantic Color Mapping */
  --color-primary: var(--color-vivid-blue);
  --color-secondary: var(--color-yellow);
  --color-success: var(--color-evergreen);
  --color-warning: var(--color-red-orange);
  --color-error: var(--color-dark-red);
  
  /* Brand Semantic Aliases */
  --brand-gold: var(--color-yellow);
  --brand-gold-text: var(--color-yellow);
  --brand-teal: var(--color-evergreen);
  --brand-magenta: var(--color-red-orange);
  
  /* Brand Gradients */
  --gradient-highlight: linear-gradient(180deg, #1D75CE 0%, #1D75CE 70%, #74C5BD 100%);
  --gradient-cta: linear-gradient(180deg, #0466C8 0%, #1D75CE 100%);
  --gradient-success: linear-gradient(180deg, #03BFA4 0%, #03BFA4 100%);
  
  /* Typography - Urbanist Font */
  --font-family-primary: 'Urbanist', system-ui, -apple-system, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'SF Mono', Consolas, Monaco, monospace;
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;
  --text-3xl: 2.1875rem;
  --text-4xl: 2.8125rem;
  
  /* Display Typography - Using clamp for responsive scaling */
  --display-sm: clamp(28px, 4vw, 36px);
  --display-md: clamp(32px, 5vw, 48px);
  --display-lg: clamp(40px, 6vw, 60px);
  --display-xl: clamp(48px, 8vw, 72px);
  
  /* Line Heights */
  --leading-tight: 1.1;
  --leading-snug: 1.2;
  --leading-normal: 1.3;
  --leading-body: 1.4;
  --leading-relaxed: 1.6;
  
  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  
  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.12);
  
  /* Colored Shadows */
  --shadow-blue: 0 4px 16px rgba(4, 102, 200, 0.2);
  --shadow-blue-hover: 0 8px 24px rgba(4, 102, 200, 0.35);
  --shadow-success: 0 4px 12px rgba(3, 191, 164, 0.2);
  --shadow-danger: 0 4px 12px rgba(231, 49, 52, 0.2);
  
  /* Transitions */
  --transition-fast: 200ms;
  --transition-normal: 300ms;
  --transition-slow: 500ms;
  --ease-standard: cubic-bezier(0.25, 0.4, 0.25, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Light Mode (default) */

:root, [data-theme="light"] {
  --color-background: var(--color-white);
  --color-background-secondary: #F9F2E2;
  --color-foreground: var(--color-black);
  --color-foreground-muted: var(--color-gray-600);
  --color-foreground-secondary: #52525B;
  --color-border: var(--color-gray-200);
  --color-border-secondary: #D4D4D8;
  --color-icon-bg: var(--color-icon-bg-light);
  
  /* Cards & UI */
  --color-card: var(--color-white);
  --color-card-foreground: var(--color-black);
  --color-popover: var(--color-white);
  --color-popover-foreground: var(--color-black);
  
  /* Input & Forms */
  --color-input: var(--color-gray-200);
  --color-ring: var(--color-vivid-blue);
  
  /* Muted */
  --color-muted: #F4F4F5;
  --color-muted-foreground: var(--color-gray-600);
  
  /* Sidebar & Topbar */
  --sidebar-bg: var(--color-white);
  --topbar-bg: var(--color-white);
}

/* Dark Mode - Softer dark following website design */

[data-theme="dark"], .dark {
  /* Backgrounds - Softer dark blue-gray instead of pure black */
  --color-background: #0F1419;
  --color-background-secondary: #151B23;
  --color-background-tertiary: #1C242D;
  --color-background-accent: #0D1426;
  
  /* Foregrounds */
  --color-foreground: #F7F9FC;
  --color-foreground-secondary: #E2E8F0;
  --color-foreground-muted: #94A3B8;
  
  /* Cards & UI - Slightly lighter than background */
  --color-card: #151B23;
  --color-card-foreground: #E2E8F0;
  --color-popover: #1C242D;
  --color-popover-foreground: #E2E8F0;
  
  /* Borders & Inputs */
  --color-border: #2D3748;
  --color-border-secondary: #1E293B;
  --color-input: #2D3748;
  --color-ring: #4A7FFF;
  
  /* Muted */
  --color-muted: #1E293B;
  --color-muted-foreground: #94A3B8;
  
  /* Grays for dark mode */
  --color-gray-400: #9CA3AF;
  --color-gray-800: #1F1F1F;
  --color-gray-900: #0F0F0F;
  
  /* Sidebar & Topbar */
  --sidebar-bg: #0A0A0A;
  --topbar-bg: #0A0A0A;
  --color-icon-bg: var(--color-icon-bg-dark);
  
  /* Shadows for dark mode */
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.5);
}

/* 2. Base Styles */

/* ==========================================================================
   BASE STYLES - Reset, Typography, Global Defaults
   ========================================================================== */

/* Reset */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-body);
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */

h1, .h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-snug);
}

h3, .h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-normal);
}

h4, .h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-normal);
}

h5, .h5 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-normal);
}

h6, .h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-normal);
}

/* Links */

a {
  color: var(--color-vivid-blue);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  text-decoration: underline;
}

/* Text utilities */

.text-muted {
  color: var(--color-foreground-muted) !important;
}

.text-primary {
  color: var(--color-vivid-blue) !important;
}

.text-success {
  color: var(--color-evergreen) !important;
}

.text-warning {
  color: var(--color-yellow) !important;
}

.text-danger {
  color: var(--color-dark-red) !important;
}

/* Ensure all headings have proper color */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--color-foreground);
}

/* Paragraphs inherit color */

p {
  color: inherit;
}

/* Span and label defaults */

span, label {
  color: inherit;
}

/* Small text */

small, .small {
  color: var(--color-foreground-muted);
}

/* Font weight utilities */

.fw-bold {
  font-weight: var(--font-weight-bold);
  color: var(--color-foreground);
}

.fw-semibold {
  font-weight: var(--font-weight-semibold);
}

.fw-medium {
  font-weight: var(--font-weight-medium);
}

/* Container */

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Accessibility */

:focus-visible {
  outline: 2px solid var(--color-vivid-blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 3. Layout */

/* ==========================================================================
   LAYOUT - App Shell, Sidebar, Topbar, Content
   Aligned with aurumai-website-frontend design patterns
   ========================================================================== */

/* App Layout */

#app-layout {
  min-height: 100vh;
  position: relative;
}

/* ==========================================================================
   TOPBAR - Pill Style Header (matching website)
   Now full-width since sidebar is a drawer
   ========================================================================== */

.topbar-custom {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  transition: left var(--transition-normal);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--space-4);
  background: var(--color-background);
  background: rgba(var(--color-background-rgb, 255, 255, 255), 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .topbar-inner {
  background: rgba(10, 10, 10, 0.3);
}

/* Topbar Left */

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.button-toggle-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  color: var(--color-foreground);
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.button-toggle-menu:hover {
  background: var(--color-muted);
}

.button-toggle-menu svg,
.button-toggle-menu [data-lucide] {
  width: 20px;
  height: 20px;
}

/* Topbar Logo */

.topbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.topbar-logo-img {
  height: 32px;
  width: auto;
}

.topbar-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-foreground);
}

/* Topbar Right */

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Theme Toggle - Matching website theme-toggle.tsx */

.theme-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.theme-toggle:hover {
  background: var(--color-muted);
}

.theme-toggle-track {
  position: relative;
  width: 48px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--color-muted);
  transition: background-color var(--transition-normal);
}

[data-theme="dark"] .theme-toggle-track {
  background-color: rgba(4, 102, 200, 0.2);
}

.theme-toggle-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background-color: var(--color-foreground);
  opacity: 0.7;
  transition: transform var(--transition-normal), background-color var(--transition-normal), opacity var(--transition-normal);
}

[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(24px);
  background-color: var(--color-vivid-blue);
  opacity: 1;
}

.theme-toggle-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-foreground);
}

/* Icon Button Ghost */

.btn-icon-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  color: var(--color-foreground);
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.btn-icon-ghost:hover {
  background: var(--color-muted);
}

.btn-icon-ghost svg,
.btn-icon-ghost [data-lucide] {
  width: 20px;
  height: 20px;
}

.btn-icon-ghost::after {
  display: none; /* Remove dropdown arrow */
}

/* Dropdown Styling */

.dropdown-menu {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  min-width: 180px;
}

.dropdown-header {
  padding: var(--space-2) var(--space-3);
}

.dropdown-header-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-foreground);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-foreground);
  text-decoration: none;
  transition: background-color var(--transition-normal);
}

.dropdown-item:hover {
  background: var(--color-muted);
  color: var(--color-foreground);
}

.dropdown-item svg,
.dropdown-item [data-lucide] {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* ==========================================================================
   HERO HEADER - Full Width (matching website ModuleHub)
   ========================================================================== */

.hero-header {
  position: relative;
  width: 100%;
  padding: var(--space-1) var(--space-4) 0;
  margin-top: 56px; /* Account for fixed topbar */
  text-align: center;
  background: linear-gradient(180deg, rgba(4, 102, 200, 0.05) 0%, transparent 100%);
  overflow: hidden;
}

[data-theme="dark"] .hero-header {
  background: linear-gradient(180deg, rgba(4, 102, 200, 0.1) 0%, transparent 100%);
}

/* Radial gradient overlay like website */

.hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(4, 102, 200, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* Hero Pill Badge - Matching website UIBadge */

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--color-vivid-blue);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-blue);
  animation: fadeInScale 0.5s ease-out;
}

.hero-pill svg,
.hero-pill [data-lucide] {
  width: 16px;
  height: 16px;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero Title - Gradient text like website */

.hero-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
  background: linear-gradient(135deg, var(--color-vivid-blue) 0%, var(--color-evergreen) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-1);
}

.hero-title sup {
  font-size: 0.5em;
  top: -0.5em;
}

/* Hero Subtitle */

.hero-subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-foreground-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-normal);
}

/* ==========================================================================
   SIDEBAR - Drawer Style (ChatGPT pattern)
   ========================================================================== */

.app-sidebar-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 280px;
  z-index: 1000;
  background-color: var(--color-card);
  border-right: 1px solid var(--color-border);
  transform: translateX(-100%);
  transition: transform var(--transition-normal) var(--ease-smooth);
  box-shadow: var(--shadow-xl);
}

.app-sidebar-menu.open {
  transform: translateX(0);
}

.app-sidebar-menu .h-100 {
  height: 100%;
  overflow-y: auto;
}

/* Sidebar Overlay */

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.sidebar-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Module Header in Sidebar */

.module-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.module-icon {
  width: 44px;
  height: 44px;
  background: var(--color-icon-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .module-icon {
  background: var(--color-icon-bg-dark);
}

.module-icon svg,
.module-icon [data-lucide] {
  color: var(--color-vivid-blue);
  width: 22px;
  height: 22px;
}

.module-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.module-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-category {
  font-size: var(--font-size-xs);
  color: var(--color-foreground-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Logo box removed - logo is now in topbar */

.logo-box {
  display: none;
}

#sidebar-menu {
  padding: var(--space-4) 0;
}

#side-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#side-menu > li {
  margin-bottom: var(--space-1);
}

#side-menu .menu-title {
  padding: var(--space-3) var(--space-5) var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-foreground-muted);
}

#side-menu .menu-title.mt-2 {
  margin-top: var(--space-6);
}

#side-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  color: var(--color-foreground-muted);
  text-decoration: none;
  transition: all var(--transition-normal);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  margin: 0 var(--space-2);
}

#side-menu a:hover {
  color: var(--color-vivid-blue);
  background-color: rgba(4, 102, 200, 0.08);
}

#side-menu a.active {
  color: var(--color-vivid-blue);
  background-color: rgba(4, 102, 200, 0.12);
}

#side-menu a svg,
#side-menu a [data-lucide] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   CONTENT PAGE - Full width since sidebar is drawer
   ========================================================================== */

.content-page {
  margin-left: 0;
  padding-top: 0; /* Hero header handles top spacing */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-normal);
  background-color: var(--color-background);
}

.content {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   SIDEBAR OPEN STATE - Body class handling
   ========================================================================== */

body.sidebar-open {
  overflow: hidden; /* Prevent scroll when drawer is open */
}

body.sidebar-open .content-page {
  /* Optional: dim or shift content when sidebar is open */
}

/* Content adjusts when sidebar is open - enables smooth transition */

body.sidebar-open .content {
  transition: max-width var(--transition-normal);
}

/* ==========================================================================
   FOOTER - Matching website footer style
   ========================================================================== */

.footer {
  background-color: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-4) var(--space-6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-copyright {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* API Mode Indicator - Subtle badge style */

.api-mode-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
  transition: background-color var(--transition-normal);
}

.api-mode-indicator:hover {
  background: rgba(255, 255, 255, 0.15);
}

.api-mode-indicator svg,
.api-mode-indicator [data-lucide] {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.api-mode-indicator.live-mode {
  background: rgba(3, 191, 164, 0.2);
  border-color: rgba(3, 191, 164, 0.4);
  color: var(--color-evergreen);
}

.footer-version {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .topbar-custom {
    padding: var(--space-2);
  }
  
  .topbar-inner {
    padding: 0 var(--space-3);
  }
  
  .topbar-logo-img {
    height: 28px;
  }
  
  .hero-header {
    padding: var(--space-6) var(--space-4) var(--space-4);
    margin-top: 64px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .content {
    padding: var(--space-4);
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-pill {
    font-size: var(--font-size-xs);
    padding: var(--space-2) var(--space-3);
  }
  
  .hero-pill svg,
  .hero-pill [data-lucide] {
    width: 14px;
    height: 14px;
  }
}

/* 4. Components (alphabetical) */

/* Agent tabs styles */

.agent-tabs-container {
  margin-bottom: var(--space-6);
}

.nav-tabs .nav-link {
  color: var(--color-foreground-muted);
  transition: all var(--transition-normal) var(--ease-standard);
}

.nav-tabs .nav-link:hover {
  color: var(--color-vivid-blue);
}

.nav-tabs .nav-link.active {
  color: var(--color-vivid-blue);
  border-bottom-color: var(--color-vivid-blue);
}

/* ==========================================================================
   AVATAR COMPONENT
   ========================================================================== */

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

/* Sizes */

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-md {
  width: 40px;
  height: 40px;
}

.avatar-lg {
  width: 48px;
  height: 48px;
}

.avatar-xl {
  width: 64px;
  height: 64px;
}

/* Image */

.avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Fallback */

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.avatar-sm .avatar-fallback {
  font-size: 12px;
}

.avatar-lg .avatar-fallback,
.avatar-xl .avatar-fallback {
  font-size: var(--font-size-base);
}

/* Status Indicator */

.avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-background);
}

.avatar-status-online {
  background-color: var(--color-success);
}

.avatar-status-offline {
  background-color: var(--color-gray-400);
}

.avatar-status-busy {
  background-color: var(--color-error);
}

.avatar-status-away {
  background-color: var(--color-warning);
}

/* Badge styles - Brand-aligned */

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
}

.badge-sm {
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
}

.badge-md {
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-sm);
}

.badge-lg {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-base);
}

.badge-primary {
  background-color: var(--color-vivid-blue);
  color: var(--color-white);
}

.badge-success {
  background-color: var(--color-success);
  color: var(--color-white);
}

.badge-warning {
  background-color: var(--color-warning);
  color: var(--color-black);
}

.badge-danger {
  background-color: var(--color-error);
  color: var(--color-white);
}

.badge-pill {
  border-radius: var(--radius-full);
}

/* ==========================================================================
   BUTTON COMPONENT - All Variants and Sizes
   ========================================================================== */

/* Base Button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Button Sizes */

.btn-sm {
  height: 36px;
  min-width: 80px;
  padding: 0 var(--space-4);
  font-size: var(--font-size-sm);
}

.btn,
.btn-md {
  height: 44px;
  min-width: 100px;
  padding: 0 var(--space-6);
  font-size: var(--font-size-base);
}

.btn-lg {
  height: 52px;
  min-width: 120px;
  padding: 0 var(--space-8);
  font-size: var(--font-size-lg);
}

.btn-xl {
  height: 56px;
  min-width: 140px;
  padding: 0 var(--space-10);
  font-size: var(--font-size-lg);
}

/* Button Variants */

.btn-primary {
  background: var(--color-vivid-blue);
  color: white;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  box-shadow: var(--shadow-blue-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-vivid-blue);
  color: var(--color-vivid-blue);
}

.btn-secondary:hover {
  background: rgba(4, 102, 200, 0.05);
}

.btn-success {
  background: var(--color-evergreen);
  color: white;
}

.btn-success:hover {
  box-shadow: var(--shadow-success);
  transform: translateY(-2px);
}

.btn-destructive {
  background: var(--color-dark-red);
  color: white;
}

.btn-destructive:hover {
  box-shadow: var(--shadow-error);
  transform: translateY(-2px);
}

.btn-special {
  background: var(--color-yellow);
  color: black;
}

.btn-special:hover {
  box-shadow: var(--shadow-yellow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-vivid-blue);
  color: var(--color-vivid-blue);
}

.btn-outline:hover {
  background: rgba(4, 102, 200, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--color-foreground);
  border: none;
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-link {
  background: transparent;
  color: var(--color-vivid-blue);
  border: none;
  text-decoration: none;
  min-width: auto;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Button Radius Variants */

.btn-pill {
  border-radius: var(--radius-full);
}

.btn-rounded-sm {
  border-radius: var(--radius-sm);
}

.btn-rounded-lg {
  border-radius: var(--radius-lg);
}

.btn-rounded-xl {
  border-radius: var(--radius-xl);
}

/* Icon Buttons */

.btn-icon {
  width: 40px;
  height: 40px;
  min-width: auto;
  padding: 0;
  justify-content: center;
}

.btn-icon-sm {
  width: 36px;
  height: 36px;
}

.btn-icon-lg {
  width: 52px;
  height: 52px;
}

/* Button States */

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: var(--radius-full);
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Button Group */

.btn-group {
  display: inline-flex;
  gap: var(--space-2);
}

.btn-group .btn {
  margin: 0;
}

/* Full Width */

.btn-block {
  width: 100%;
  display: flex;
}

/* ==========================================================================
   BOOTSTRAP OVERRIDES - Ensure custom styling takes precedence
   ========================================================================== */

/* Bootstrap Outline Primary - for option buttons */

.btn-outline-primary {
  background: transparent !important;
  border: 2px solid var(--color-vivid-blue) !important;
  color: var(--color-vivid-blue) !important;
  font-weight: var(--font-weight-medium);
}

.btn-outline-primary:hover {
  background: rgba(4, 102, 200, 0.1) !important;
  border-color: var(--color-vivid-blue) !important;
  color: var(--color-vivid-blue) !important;
  transform: translateY(-2px);
}

.btn-outline-primary.active,
.btn-outline-primary:active {
  background: var(--color-vivid-blue) !important;
  border-color: var(--color-vivid-blue) !important;
  color: white !important;
}

[data-theme="dark"] .btn-outline-primary {
  border-color: var(--color-vivid-blue) !important;
  color: var(--color-vivid-blue) !important;
}

[data-theme="dark"] .btn-outline-primary:hover {
  background: rgba(4, 102, 200, 0.2) !important;
}

[data-theme="dark"] .btn-outline-primary.active {
  background: var(--color-vivid-blue) !important;
  color: white !important;
}

/* Bootstrap Primary - solid buttons */

.btn.btn-primary {
  background: var(--color-vivid-blue) !important;
  border: none !important;
  color: white !important;
}

.btn.btn-primary:hover:not(:disabled) {
  background: var(--color-medium-blue) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue-hover);
}

.btn.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* W-100 full width buttons */

.btn.w-100 {
  width: 100%;
}

/* ==========================================================================
   CARD COMPONENT - All Variants and Sizes
   Aligned with aurumai-website-frontend design patterns
   ========================================================================== */

/* Base Card */

.card {
  background: var(--color-card);
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .card {
  background: var(--color-gray-900);
  border-color: var(--color-border);
}

/* Card Variants */

.card-default {
  background: var(--color-card);
  color: var(--color-foreground);
}

.card-outline {
  background: transparent;
  border: 1px solid var(--color-border);
}

.card-elevated {
  background: var(--color-card);
  box-shadow: var(--shadow-lg);
  border: none;
}

.card-elevated:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .card-elevated {
  background: var(--color-gray-900);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.card-accent {
  background: rgba(4, 102, 200, 0.05);
  border: 1px solid rgba(4, 102, 200, 0.2);
}

[data-theme="dark"] .card-accent {
  background: rgba(4, 102, 200, 0.1);
  border-color: rgba(4, 102, 200, 0.3);
}

/* Card Sizes */

.card-sm .card-body {
  padding: var(--space-4);
}

.card-md .card-body,
.card .card-body {
  padding: var(--space-6);
}

.card-lg .card-body {
  padding: var(--space-8);
}

/* Card Subcomponents */

.card-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: transparent;
}

[data-theme="dark"] .card-header {
  background: transparent;
  border-color: var(--color-border);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-snug);
  margin: 0;
  color: var(--color-foreground);
}

.card-text,
.card-description {
  color: var(--color-foreground-muted);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-2);
}

[data-theme="dark"] .card-text,
[data-theme="dark"] .card-description {
  color: var(--color-gray-400);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: transparent;
}

[data-theme="dark"] .card-footer {
  background: transparent;
  border-color: var(--color-border);
}

/* Card List Items */

.card .list-unstyled {
  margin: 0;
  padding: 0;
}

.card .list-unstyled li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  color: var(--color-foreground);
  font-size: var(--font-size-sm);
}

.card .list-unstyled li i {
  color: var(--color-vivid-blue);
  width: 20px;
  text-align: center;
}

/* Card with Image */

.card-image,
.card-img-top {
  width: 100%;
  height: auto;
  display: block;
}

.card-img-top {
  border-top-left-radius: calc(var(--radius-xl) - 1px);
  border-top-right-radius: calc(var(--radius-xl) - 1px);
}

/* Clickable Card */

.card-clickable,
.card.h-100 {
  cursor: pointer;
  transition: all var(--transition-normal);
}

.card-clickable:hover,
.card.h-100:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-vivid-blue);
}

[data-theme="dark"] .card-clickable:hover,
[data-theme="dark"] .card.h-100:hover {
  box-shadow: 0 10px 40px rgba(4, 102, 200, 0.2);
}

/* Card Loading State */

.card-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.card-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-background);
  opacity: 0.5;
}

/* Module Cards (Specific) */

.col-md-6.col-lg-4 .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.col-md-6.col-lg-4 .card .card-body {
  flex: 1;
}

.col-md-6.col-lg-4 .card .card-footer {
  margin-top: auto;
}

/* Alert Cards */

.alert {
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid;
}

.alert-warning {
  background: rgba(238, 195, 90, 0.1);
  border-color: rgba(238, 195, 90, 0.3);
  color: var(--color-yellow);
}

.alert-danger {
  background: rgba(231, 49, 52, 0.1);
  border-color: rgba(231, 49, 52, 0.3);
  color: var(--color-dark-red);
}

.alert-success {
  background: rgba(3, 191, 164, 0.1);
  border-color: rgba(3, 191, 164, 0.3);
  color: var(--color-evergreen);
}

.alert-info {
  background: rgba(4, 102, 200, 0.1);
  border-color: rgba(4, 102, 200, 0.3);
  color: var(--color-vivid-blue);
}

[data-theme="dark"] .alert-warning,
[data-theme="dark"] .alert-danger,
[data-theme="dark"] .alert-success,
[data-theme="dark"] .alert-info {
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   MODULE CARDS - Mini vs Full Analysis Cards
   ========================================================================== */

.module-selector {
  padding: var(--space-4) 0;
}

.module-selector__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.module-selector__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-foreground);
  margin: 0 0 var(--space-2);
}

.module-selector__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-foreground-muted);
  margin: 0;
}

.module-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

/* Base Module Card */

.module-card {
  background: var(--color-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-4px);
}

/* Standard Module Card (Mini Analysis) */

.module-card--standard {
  border: 1px solid rgba(4, 102, 200, 0.2);
  box-shadow: var(--shadow-sm);
}

.module-card--standard:hover {
  border-color: var(--color-vivid-blue);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(4, 102, 200, 0.1);
}

/* Featured Module Card (Full Analysis) */

.module-card--featured {
  border: 1px solid rgba(4, 102, 200, 0.3);
  box-shadow: 0 0 15px rgba(4, 102, 200, 0.08);
}

.module-card--featured:hover {
  border-color: var(--color-vivid-blue);
  box-shadow: 0 0 20px rgba(4, 102, 200, 0.15);
}

[data-theme="dark"] .module-card--standard {
  border-color: rgba(4, 102, 200, 0.3);
}

[data-theme="dark"] .module-card--featured {
  border-color: rgba(4, 102, 200, 0.4);
  box-shadow: 0 0 15px rgba(4, 102, 200, 0.15);
}

[data-theme="dark"] .module-card--featured:hover {
  box-shadow: 0 0 25px rgba(4, 102, 200, 0.25);
}

/* Card Header */

.module-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Card Icon */

.module-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(4, 102, 200, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .module-card__icon {
  background: rgba(4, 102, 200, 0.15);
}

.module-card__icon svg,
.module-card__icon [data-lucide] {
  color: var(--color-vivid-blue);
}

.module-card--featured .module-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(4, 102, 200, 0.15);
}

[data-theme="dark"] .module-card--featured .module-card__icon {
  background: rgba(4, 102, 200, 0.2);
}

.module-card:hover .module-card__icon {
  transform: scale(1.1);
  background: rgba(4, 102, 200, 0.15);
}

/* Card Badge */

.module-card__badge {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.module-card__badge--outline {
  background: rgba(4, 102, 200, 0.1);
  border: 1px solid rgba(4, 102, 200, 0.25);
  color: var(--color-vivid-blue);
}

[data-theme="dark"] .module-card__badge--outline {
  background: rgba(4, 102, 200, 0.2);
  border-color: rgba(4, 102, 200, 0.4);
}

.module-card__badge--gradient {
  background: rgba(4, 102, 200, 0.1);
  border: 1px solid rgba(4, 102, 200, 0.25);
  color: var(--color-vivid-blue);
}

[data-theme="dark"] .module-card__badge--gradient {
  background: rgba(4, 102, 200, 0.2);
  border-color: rgba(4, 102, 200, 0.4);
}

/* Card Title */

.module-card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-foreground);
  margin: 0;
  line-height: var(--leading-snug);
}

/* Card Description */

.module-card__description {
  font-size: var(--font-size-base);
  color: var(--color-foreground-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
  flex-grow: 1;
}

/* Card Stats */

.module-card__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}

.module-card__stats li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-foreground-muted);
}

.module-card__stats li svg,
.module-card__stats li [data-lucide] {
  width: 16px;
  height: 16px;
  color: var(--color-vivid-blue);
}

/* Card Button */

.module-card__button {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid rgba(4, 102, 200, 0.3);
  background: rgba(4, 102, 200, 0.05);
  color: var(--color-vivid-blue);
}

.module-card__button:hover:not(:disabled) {
  background: var(--color-vivid-blue);
  border-color: var(--color-vivid-blue);
  color: white;
}

.module-card__button--primary {
  background: rgba(4, 102, 200, 0.08);
  color: var(--color-vivid-blue);
  border: 1px solid rgba(4, 102, 200, 0.3);
}

.module-card__button--primary:hover:not(:disabled) {
  background: var(--color-vivid-blue);
  border-color: var(--color-vivid-blue);
  color: white;
}

[data-theme="dark"] .module-card__button {
  background: rgba(4, 102, 200, 0.1);
  border-color: rgba(4, 102, 200, 0.4);
}

[data-theme="dark"] .module-card__button--primary {
  background: rgba(4, 102, 200, 0.15);
  border-color: rgba(4, 102, 200, 0.4);
}

.module-card__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Adjustments */

@media (max-width: 768px) {
  .module-cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .module-card__stats {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* ==========================================================================
   LANDING PAGE STYLES
   ========================================================================== */

.landing-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-4) 0;
}

/* Module Selection Section */

.module-selection {
  margin-bottom: var(--space-10);
}

.module-selection__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.module-selection__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-foreground);
  margin: 0 0 var(--space-2);
}

.module-selection__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-foreground-muted);
  margin: 0;
}

/* Module Cards Row (side by side) */

.module-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .module-cards-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PAST JOBS SECTION
   ========================================================================== */

.past-jobs {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.past-jobs__header {
  margin-bottom: var(--space-4);
}

.past-jobs__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-foreground);
  margin: 0;
}

.past-jobs__title svg,
.past-jobs__title [data-lucide] {
  width: 20px;
  height: 20px;
  color: var(--color-foreground-muted);
}

/* Jobs List */

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Job Item */

.job-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.job-item:hover {
  border-color: var(--color-vivid-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

[data-theme="dark"] .job-item {
  background: var(--color-gray-900);
}

.job-item__icon {
  width: 40px;
  height: 40px;
  background: var(--color-icon-bg-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .job-item__icon {
  background: var(--color-icon-bg-dark);
}

.job-item__icon svg,
.job-item__icon [data-lucide] {
  width: 20px;
  height: 20px;
  color: var(--color-vivid-blue);
}

.job-item__content {
  flex: 1;
  min-width: 0;
}

.job-item__title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-foreground);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-item__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-foreground-muted);
}

.job-item__divider {
  color: var(--color-border);
}

.job-item__status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
  flex-shrink: 0;
}

.job-item__time {
  font-size: var(--font-size-xs);
  color: var(--color-foreground-muted);
}

/* Status Badge */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  text-transform: capitalize;
}

.status-badge--success {
  background: rgba(3, 191, 164, 0.15);
  color: var(--color-evergreen);
}

.status-badge--primary {
  background: rgba(4, 102, 200, 0.15);
  color: var(--color-vivid-blue);
}

.status-badge--danger {
  background: rgba(231, 49, 52, 0.15);
  color: var(--color-dark-red);
}

.status-badge--secondary {
  background: var(--color-muted);
  color: var(--color-foreground-muted);
}

/* Responsive */

@media (max-width: 640px) {
  .job-item {
    flex-wrap: wrap;
    gap: var(--space-3);
  }
  
  .job-item__status {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
  }
}

/* ==========================================================================
   CHAT COMPONENT STYLES - Full Screen Layout (ChatGPT-style)
   Aligned with aurumai-website-frontend design patterns
   ========================================================================== */

/* Chat Container - Full width, fills viewport */

.chat-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 var(--space-4);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Progress Bar */

.chat-container .progress {
  background-color: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.chat-container .progress-bar {
  background: linear-gradient(90deg, var(--color-vivid-blue), var(--color-medium-blue));
  border-radius: var(--radius-full);
  transition: width 0.5s ease-out;
}

/* Step Indicator */

.chat-container .text-muted.small {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-sm);
}

/* Chat Messages Container - Full screen, scrollable */

.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Chat Message */

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 85%;
  animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.assistant,
.chat-message.chat-message--assistant {
  align-self: flex-start;
  flex-direction: row;
}

.chat-message.user,
.chat-message.chat-message--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

/* Message Avatar */

.chat-message__avatar,
.message-avatar {
  flex-shrink: 0;
}

.chat-message__avatar .avatar-fallback,
.chat-message .avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
}

/* Assistant Avatar */

.chat-message--assistant .avatar-fallback,
.chat-message.assistant .avatar-fallback {
  background: linear-gradient(135deg, var(--color-vivid-blue), var(--color-medium-blue));
  color: white;
}

/* User Avatar */

.chat-message--user .avatar-fallback,
.chat-message.user .avatar-fallback {
  background: var(--color-muted);
  color: var(--color-foreground);
}

[data-theme="dark"] .chat-message--user .avatar-fallback,
[data-theme="dark"] .chat-message.user .avatar-fallback {
  background: var(--color-gray-800);
  color: var(--color-foreground);
}

/* Aurum Logo in Avatar */

.avatar-logo {
  width: 24px;
  height: 24px;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: var(--radius-sm);
}

.avatar-fallback--assistant {
  background: linear-gradient(135deg, var(--color-vivid-blue), var(--color-medium-blue));
  color: white;
}

.avatar-fallback-text {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
}

/* Message Bubble */

.chat-message__bubble,
.message-bubble {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xl);
  word-wrap: break-word;
  line-height: 1.5;
  font-size: var(--font-size-base);
  transition: background-color var(--transition-normal);
  max-width: -moz-fit-content;
  max-width: fit-content;
}

/* Assistant Bubble - Light background, readable in both modes */

.chat-message.assistant .message-bubble,
.chat-message.chat-message--assistant .chat-message__bubble,
.chat-message--assistant .message-bubble {
  background-color: var(--color-card);
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: var(--radius-sm);
}

[data-theme="dark"] .chat-message.assistant .message-bubble,
[data-theme="dark"] .chat-message.chat-message--assistant .chat-message__bubble,
[data-theme="dark"] .chat-message--assistant .message-bubble {
  background-color: var(--color-gray-900);
  border-color: var(--color-border);
}

/* User Bubble - Primary blue */

.chat-message.user .message-bubble,
.chat-message.chat-message--user .chat-message__bubble,
.chat-message--user .message-bubble {
  background: linear-gradient(135deg, var(--color-vivid-blue), var(--color-medium-blue));
  color: white;
  border-bottom-right-radius: var(--radius-sm);
}

/* Override Bootstrap bg-light for dark mode */

.chat-message .bg-light {
  background-color: var(--color-card) !important;
  color: var(--color-foreground) !important;
}

[data-theme="dark"] .chat-message .bg-light {
  background-color: var(--color-gray-900) !important;
  color: var(--color-foreground) !important;
  border: 1px solid var(--color-border);
}

/* Chat Input Area - Centered at bottom */

.chat-input {
  margin-top: auto;
  padding: var(--space-4) var(--space-6);
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.chat-input form,
.chat-input .d-flex {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
}

.chat-input .form-control,
.chat-input input[type="text"] {
  flex: 1;
  height: 52px;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  background-color: var(--color-card);
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
}

.chat-input .form-control:focus,
.chat-input input[type="text"]:focus {
  border-color: var(--color-vivid-blue);
  box-shadow: 0 0 0 4px rgba(4, 102, 200, 0.15);
  outline: none;
}

.chat-input .form-control::-moz-placeholder, .chat-input input[type="text"]::-moz-placeholder {
  color: var(--color-foreground-muted);
}

.chat-input .form-control::placeholder,
.chat-input input[type="text"]::placeholder {
  color: var(--color-foreground-muted);
}

[data-theme="dark"] .chat-input .form-control,
[data-theme="dark"] .chat-input input[type="text"] {
  background-color: var(--color-gray-900);
  border-color: var(--color-border);
}

[data-theme="dark"] .chat-input .form-control:focus,
[data-theme="dark"] .chat-input input[type="text"]:focus {
  border-color: var(--color-vivid-blue);
  box-shadow: 0 0 0 4px rgba(4, 102, 200, 0.25);
}

/* Send Button */

.chat-input .btn-primary,
.chat-input button[type="submit"] {
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-vivid-blue), var(--color-medium-blue));
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.chat-input .btn-primary:hover,
.chat-input button[type="submit"]:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-blue-hover);
}

.chat-input .btn-primary:active,
.chat-input button[type="submit"]:active {
  transform: scale(0.98);
}

.chat-input .btn-primary i,
.chat-input button[type="submit"] i {
  font-size: 18px;
}

/* Option Buttons (Single/Multi Select) */

.chat-input .option-btn,
.chat-input .multi-option-btn,
.chat-input .btn-outline-primary {
  padding: var(--space-3) var(--space-6) !important;
  border-radius: var(--radius-full) !important;
  font-weight: var(--font-weight-medium) !important;
  font-size: var(--font-size-sm) !important;
  transition: all var(--transition-normal) !important;
  border: 2px solid var(--color-vivid-blue) !important;
  background: transparent !important;
  color: var(--color-vivid-blue) !important;
  height: auto !important;
  min-width: auto !important;
  white-space: nowrap;
}

.chat-input .option-btn:hover,
.chat-input .multi-option-btn:hover,
.chat-input .btn-outline-primary:hover {
  background: rgba(4, 102, 200, 0.15) !important;
  transform: translateY(-2px);
  color: var(--color-vivid-blue) !important;
}

.chat-input .option-btn.active,
.chat-input .multi-option-btn.active,
.chat-input .btn-outline-primary.active {
  background: var(--color-vivid-blue) !important;
  color: white !important;
  border-color: var(--color-vivid-blue) !important;
}

[data-theme="dark"] .chat-input .option-btn,
[data-theme="dark"] .chat-input .multi-option-btn,
[data-theme="dark"] .chat-input .btn-outline-primary {
  border-color: var(--color-vivid-blue) !important;
  color: var(--color-vivid-blue) !important;
  background: transparent !important;
}

[data-theme="dark"] .chat-input .option-btn:hover,
[data-theme="dark"] .chat-input .multi-option-btn:hover,
[data-theme="dark"] .chat-input .btn-outline-primary:hover {
  background: rgba(4, 102, 200, 0.25) !important;
}

[data-theme="dark"] .chat-input .option-btn.active,
[data-theme="dark"] .chat-input .multi-option-btn.active,
[data-theme="dark"] .chat-input .btn-outline-primary.active {
  background: var(--color-vivid-blue) !important;
  color: white !important;
}

/* Multi-Select Container */

.multi-select-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.multi-select-container .d-flex {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.multi-select-container .text-muted,
.multi-select-container .small {
  color: var(--color-foreground-muted) !important;
  font-size: var(--font-size-sm);
}

/* Confirm Selection Button */

.multi-select-container .btn-primary,
#multi-submit {
  padding: var(--space-3) var(--space-6) !important;
  border-radius: var(--radius-full) !important;
  background: var(--color-vivid-blue) !important;
  color: white !important;
  border: none !important;
  font-weight: var(--font-weight-semibold) !important;
  min-width: 160px !important;
  height: 44px !important;
}

.multi-select-container .btn-primary:hover:not(:disabled),
#multi-submit:hover:not(:disabled) {
  background: var(--color-medium-blue) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue-hover);
}

.multi-select-container .btn-primary:disabled,
#multi-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Execute Button (Ready State) */

.chat-input .text-center {
  padding: var(--space-6);
  background: var(--color-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .chat-input .text-center {
  background: var(--color-gray-900);
}

.chat-input .text-success {
  color: var(--color-evergreen) !important;
  font-weight: var(--font-weight-medium);
}

.chat-input .btn-success {
  background: linear-gradient(135deg, var(--color-evergreen), #02a08a);
  border: none;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-normal);
}

.chat-input .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(3, 191, 164, 0.35);
}

/* Typing Indicator */

.typing-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  max-width: -moz-fit-content;
  max-width: fit-content;
}

[data-theme="dark"] .typing-indicator {
  background-color: var(--color-gray-900);
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-vivid-blue);
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* Scrollbar Styling */

/* Modern thin scrollbar */

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
  margin: var(--space-2) 0;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: padding-box;
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid transparent;
  background-clip: padding-box;
}

[data-theme="dark"] .chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid transparent;
  background-clip: padding-box;
}

[data-theme="dark"] .chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Firefox scrollbar */

.chat-messages {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

[data-theme="dark"] .chat-messages {
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Loading State */

.chat-container .loading-message {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-foreground-muted);
  font-size: var(--font-size-sm);
}

.chat-container .loading-message i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   BREADCRUMB PROGRESS TRAIL
   ========================================================================== */

.chat-breadcrumb {
  margin-bottom: var(--space-3);
  padding: 0;
  overflow-x: auto;
}

/* Override mt-4 margin on chat panel view */

#chat-panel-view.mt-4 {
  margin-top: 0 !important;
}

/* Hide footer when chat panel is visible */

#chat-panel-view[style*="block"] ~ .footer,
body:has(#chat-panel-view[style*="block"]) .footer {
  display: none !important;
}

.breadcrumb-trail {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  position: relative;
  min-width: 64px;
}

.breadcrumb-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.breadcrumb-icon svg,
.breadcrumb-icon [data-lucide] {
  width: 16px;
  height: 16px;
}

/* Pending State */

.breadcrumb-step--pending .breadcrumb-icon {
  background: var(--color-muted);
  color: var(--color-foreground-muted);
  border: 2px solid var(--color-border);
}

[data-theme="dark"] .breadcrumb-step--pending .breadcrumb-icon {
  background: var(--color-gray-800);
  border-color: var(--color-gray-700);
}

/* Active State */

.breadcrumb-step--active .breadcrumb-icon {
  background: var(--color-vivid-blue);
  color: white;
  box-shadow: 0 0 0 4px rgba(4, 102, 200, 0.2);
  border: none;
}

.breadcrumb-step--active .breadcrumb-label {
  color: var(--color-vivid-blue);
  font-weight: var(--font-weight-semibold);
}

/* Completed State */

.breadcrumb-step--completed .breadcrumb-icon {
  background: var(--color-evergreen);
  color: white;
  border: none;
}

.breadcrumb-step--completed .breadcrumb-label {
  color: var(--color-evergreen);
}

/* Label */

.breadcrumb-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-foreground-muted);
  text-align: center;
  transition: color 0.3s ease;
}

/* Connector Line */

.breadcrumb-connector {
  width: 40px;
  height: 3px;
  background: var(--color-border);
  position: absolute;
  left: calc(50% + 22px);
  top: 20px;
  border-radius: var(--radius-full);
  transition: background 0.3s ease;
}

[data-theme="dark"] .breadcrumb-connector {
  background: var(--color-gray-700);
}

.breadcrumb-connector--completed {
  background: var(--color-evergreen);
}

/* Status Text */

.breadcrumb-status {
  text-align: center;
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-foreground-muted);
}

/* ==========================================================================
   FULL-PAGE CHAT LAYOUT
   ========================================================================== */

/* Chat Panel View - Full screen height */

#chat-panel-view {
  height: calc(100vh - 160px);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* Full-width chat container - fills available space */

#chat-panel-view .chat-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* When sidebar is open - no change needed, container is already full width */

body.sidebar-open #chat-panel-view .chat-container {
  max-width: 100%;
}

/* Messages area - fills available space with centered content */

#chat-panel-view .chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Chat Input Form */

.chat-input-form {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
}

/* Chat Options (select buttons) */

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ==========================================================================
   EXECUTE SECTION - Colorful Confirmation Bar
   ========================================================================== */

.chat-execute {
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.08) 0%, rgba(3, 191, 164, 0.06) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(4, 102, 200, 0.2);
  box-shadow: 0 4px 20px rgba(4, 102, 200, 0.1);
  margin: var(--space-4) 0;
}

[data-theme="dark"] .chat-execute {
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.15) 0%, rgba(3, 191, 164, 0.08) 100%);
  border-color: rgba(4, 102, 200, 0.3);
  box-shadow: 0 4px 24px rgba(4, 102, 200, 0.15);
}

.chat-execute__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.chat-execute__info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.chat-execute__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-vivid-blue), var(--color-evergreen));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(4, 102, 200, 0.3);
}

.chat-execute__icon svg,
.chat-execute__icon [data-lucide] {
  width: 24px;
  height: 24px;
  color: white;
}

.chat-execute__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-execute__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-foreground);
  line-height: 1.2;
}

.chat-execute__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-vivid-blue);
  font-weight: var(--font-weight-medium);
}

[data-theme="dark"] .chat-execute__meta {
  color: var(--color-evergreen);
}

.chat-execute__meta svg,
.chat-execute__meta [data-lucide] {
  width: 14px;
  height: 14px;
}

.chat-execute__divider {
  margin: 0 var(--space-1);
  color: var(--color-foreground-muted);
  opacity: 0.5;
}

/* CTA Button */

.chat-execute__button {
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, var(--color-vivid-blue), var(--color-evergreen));
  border: none;
  border-radius: var(--radius-xl);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  color: white;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(4, 102, 200, 0.25);
}

.chat-execute__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4, 102, 200, 0.4);
}

.chat-execute__button:active {
  transform: translateY(0);
}

.chat-execute__button svg,
.chat-execute__button [data-lucide] {
  width: 18px;
  height: 18px;
}

/* Responsive */

@media (max-width: 540px) {
  .chat-execute {
    padding: var(--space-4);
  }
  
  .chat-execute__row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }
  
  .chat-execute__button {
    justify-content: center;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .chat-container {
    padding: 0 var(--space-3);
    max-width: 100%;
  }
  
  .chat-message {
    max-width: 95%;
  }
  
  .chat-messages {
    padding: var(--space-3);
  }
  
  .chat-input {
    padding: var(--space-3);
  }
  
  .chat-input .form-control,
  .chat-input input[type="text"] {
    height: 48px;
  }
  
  .chat-input .btn-primary,
  .chat-input button[type="submit"] {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
  
  #chat-panel-view {
    height: calc(100vh - 140px);
  }
  
  .breadcrumb-step {
    min-width: 60px;
  }
  
  .breadcrumb-icon {
    width: 36px;
    height: 36px;
  }
  
  .breadcrumb-icon svg,
  .breadcrumb-icon [data-lucide] {
    width: 16px;
    height: 16px;
  }
  
  .breadcrumb-connector {
    width: 24px;
    left: calc(50% + 18px);
    top: 16px;
  }
  
  .breadcrumb-label {
    font-size: 10px;
  }
  
  #chat-panel-view {
    min-height: auto;
    padding: var(--space-2);
  }
  
  .chat-messages {
    max-height: 50vh;
  }
}

/* ==========================================================================
   FORM ELEMENTS - Input, Select, Checkbox, Radio
   Aligned with aurumai-website-frontend design patterns
   ========================================================================== */

/* Input */

.form-control,
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"] {
  height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  font-size: var(--font-size-base);
  color: var(--color-foreground);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  width: 100%;
}

.form-control::-moz-placeholder, .input::-moz-placeholder, input::-moz-placeholder {
  color: var(--color-foreground-muted);
}

.form-control::placeholder,
.input::placeholder,
input::placeholder {
  color: var(--color-foreground-muted);
}

.form-control:focus,
.input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--color-vivid-blue);
  box-shadow: 0 0 0 4px rgba(4, 102, 200, 0.15);
  outline: none;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .input,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"] {
  background: var(--color-gray-900);
  border-color: var(--color-border);
  color: var(--color-foreground);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .input:focus,
[data-theme="dark"] input:focus {
  border-color: var(--color-vivid-blue);
  box-shadow: 0 0 0 4px rgba(4, 102, 200, 0.25);
}

/* Textarea */

textarea.form-control,
textarea.input,
textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
  padding: var(--space-3) var(--space-4);
}

/* Checkbox */

.form-check-input,
.checkbox,
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  cursor: pointer;
  transition: all var(--transition-normal);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-check-input:checked,
.checkbox:checked,
input[type="checkbox"]:checked {
  background: var(--color-vivid-blue);
  border-color: var(--color-vivid-blue);
}

.form-check-input:checked::after,
.checkbox:checked::after,
input[type="checkbox"]:checked::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.form-check-input:focus,
.checkbox:focus,
input[type="checkbox"]:focus {
  box-shadow: 0 0 0 4px rgba(4, 102, 200, 0.2);
  outline: none;
}

[data-theme="dark"] .form-check-input,
[data-theme="dark"] .checkbox,
[data-theme="dark"] input[type="checkbox"] {
  background: var(--color-gray-900);
  border-color: var(--color-border);
}

/* Radio */

input[type="radio"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-card);
  cursor: pointer;
  transition: all var(--transition-normal);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

input[type="radio"]:checked {
  border-color: var(--color-vivid-blue);
  background: var(--color-vivid-blue);
  box-shadow: inset 0 0 0 4px var(--color-card);
}

input[type="radio"]:focus {
  box-shadow: 0 0 0 4px rgba(4, 102, 200, 0.2);
  outline: none;
}

[data-theme="dark"] input[type="radio"] {
  background: var(--color-gray-900);
  border-color: var(--color-border);
}

[data-theme="dark"] input[type="radio"]:checked {
  box-shadow: inset 0 0 0 4px var(--color-gray-900);
}

/* Select */

.form-select,
select {
  height: 44px;
  padding: 0 var(--space-10) 0 var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717A' d='M2.5 4.5l3.5 3.5 3.5-3.5'/%3E%3C/svg%3E") no-repeat right var(--space-4) center;
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 100%;
}

.form-select:focus,
select:focus {
  border-color: var(--color-vivid-blue);
  box-shadow: 0 0 0 4px rgba(4, 102, 200, 0.15);
  outline: none;
}

[data-theme="dark"] .form-select,
[data-theme="dark"] select {
  background-color: var(--color-gray-900);
  border-color: var(--color-border);
}

/* Custom Select Trigger */

.select-trigger {
  height: 44px;
  padding: 0 var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  color: var(--color-foreground);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  cursor: pointer;
  transition: border-color var(--transition-normal);
}

.select-trigger:hover {
  border-color: var(--color-vivid-blue);
}

.select-content {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  max-height: 300px;
  overflow-y: auto;
}

[data-theme="dark"] .select-content {
  background: var(--color-gray-900);
}

.select-item {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.select-item:hover {
  background: var(--color-muted);
}

.select-item.selected {
  background: rgba(4, 102, 200, 0.1);
  color: var(--color-vivid-blue);
}

/* Form Group */

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-medium);
  color: var(--color-foreground);
}

.form-help,
.form-text {
  font-size: var(--font-size-sm);
  color: var(--color-foreground-muted);
  margin-top: var(--space-1);
}

/* Validation States */

.form-control.is-invalid,
.input.is-invalid,
.was-validated .form-control:invalid {
  border-color: var(--color-dark-red);
}

.form-control.is-invalid:focus,
.input.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(231, 49, 52, 0.2);
}

.form-control.is-valid,
.input.is-valid,
.was-validated .form-control:valid {
  border-color: var(--color-evergreen);
}

.form-control.is-valid:focus,
.input.is-valid:focus {
  box-shadow: 0 0 0 4px rgba(3, 191, 164, 0.2);
}

.invalid-feedback {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-dark-red);
  margin-top: var(--space-1);
}

.valid-feedback {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-evergreen);
  margin-top: var(--space-1);
}

/* Input Group */

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  border-radius: 0;
}

.input-group .form-control:first-child {
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.input-group .form-control:last-child {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  background: var(--color-muted);
  border: 2px solid var(--color-border);
  color: var(--color-foreground-muted);
}

[data-theme="dark"] .input-group-text {
  background: var(--color-gray-800);
}

/* Form Check (Bootstrap Override) */

.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-left: 0;
}

.form-check-label {
  color: var(--color-foreground);
  cursor: pointer;
}

/* Already included in dashboard.css */

/* ==========================================================================
   RESPONSIVE GRID SYSTEM
   ========================================================================== */

.grid {
  display: grid;
}

/* Column Counts with Responsive Defaults */

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-5 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-6 {
  grid-template-columns: repeat(1, 1fr);
}

/* Small screens (640px+) */

@media (min-width: 640px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium screens (768px+) */

@media (min-width: 768px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large screens (1024px+) */

@media (min-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Gap Sizes */

.gap-none {
  gap: 0;
}

.gap-sm {
  gap: var(--space-4);
}

.gap-md {
  gap: var(--space-6);
}

.gap-lg {
  gap: var(--space-8);
}

.gap-xl {
  gap: var(--space-10);
}

/* Responsive Gap Sizes */

@media (min-width: 768px) {
  .gap-sm {
    gap: var(--space-6);
  }
  
  .gap-md {
    gap: var(--space-8);
  }
  
  .gap-lg {
    gap: var(--space-10);
  }
  
  .gap-xl {
    gap: var(--space-12);
  }
}

/* Auto-fit and Auto-fill */

.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Alignment */

.grid-items-start {
  align-items: start;
}

.grid-items-center {
  align-items: center;
}

.grid-items-end {
  align-items: end;
}

.grid-content-start {
  justify-content: start;
}

.grid-content-center {
  justify-content: center;
}

.grid-content-end {
  justify-content: end;
}

/* Grid layouts */

.metric-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.swot-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .swot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Icons CSS - Aurum AI Dashboard */

/* Custom icon styling and overrides */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-md {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

/* ==========================================================================
   LIST STYLES - Light & Dark Mode Support
   ========================================================================== */

/* Base List Group */

.list-group {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.list-group-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  color: var(--color-foreground);
  padding: var(--space-3) var(--space-4);
  transition: all var(--transition-normal);
}

.list-group-item + .list-group-item {
  border-top: none;
}

.list-group-item:first-child {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.list-group-item:last-child {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.list-group-item:hover {
  border-left-color: var(--color-vivid-blue);
  background: var(--color-muted);
}

.list-group-item.active {
  background: var(--color-vivid-blue);
  border-color: var(--color-vivid-blue);
  color: white;
}

/* Dark Mode */

[data-theme="dark"] .list-group-item {
  background: var(--color-gray-900);
  border-color: var(--color-border);
  color: var(--color-foreground);
}

[data-theme="dark"] .list-group-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--color-vivid-blue);
}

[data-theme="dark"] .list-group-item.active {
  background: var(--color-vivid-blue);
  color: white;
}

/* List Group Flush (no borders) */

.list-group-flush .list-group-item {
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.list-group-flush .list-group-item:first-child {
  border-top: none;
}

.list-group-flush .list-group-item:last-child {
  border-bottom: none;
}

/* List Unstyled */

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-unstyled li {
  color: var(--color-foreground);
  padding: var(--space-2) 0;
}

/* Inline List */

.list-inline {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.list-inline-item {
  color: var(--color-foreground);
}

/* ==========================================================================
   RESULTS DASHBOARD - Asymmetric Bento Grid Layout
   ========================================================================== */

/* Results Dashboard Container */

.results-dashboard {
  padding: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.results-header__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-foreground);
  margin: 0 0 var(--space-1) 0;
}

.results-header__meta {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

.results-header__action {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, var(--color-vivid-blue), var(--color-medium-blue));
  border: none;
  border-radius: var(--radius-xl);
  font-weight: var(--font-weight-semibold);
  transition: all var(--duration-normal) var(--easing-smooth);
}

.results-header__action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4, 102, 200, 0.3);
}

.results-header__action i {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   BENTO GRID
   ========================================================================== */

.results-bento {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.bento-row {
  display: grid;
  gap: var(--space-4);
}

/* Hero row: Score card (2/3) + Position card (1/3) */

.bento-row--hero {
  grid-template-columns: 2fr 1fr;
}

/* Stats row: 4 equal cards */

.bento-row--stats {
  grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   BENTO CARDS
   ========================================================================== */

.bento-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  transition: all var(--duration-normal) var(--easing-smooth);
}

.bento-card:hover {
  border-color: rgba(4, 102, 200, 0.3);
  box-shadow: 0 8px 32px rgba(4, 102, 200, 0.08);
}

[data-theme="dark"] .bento-card {
  background: var(--color-gray-900);
  border-color: var(--color-border);
}

[data-theme="dark"] .bento-card:hover {
  border-color: rgba(4, 102, 200, 0.4);
  box-shadow: 0 8px 32px rgba(4, 102, 200, 0.15);
}

.bento-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-foreground-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bento-card__header i {
  width: 16px;
  height: 16px;
  color: var(--color-vivid-blue);
}

/* ==========================================================================
   SCORE CARD
   ========================================================================== */

.bento-card--score {
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.05) 0%, rgba(3, 191, 164, 0.03) 100%);
}

[data-theme="dark"] .bento-card--score {
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.1) 0%, rgba(3, 191, 164, 0.05) 100%);
}

.bento-score {
  display: flex;
  align-items: baseline;
  margin-bottom: var(--space-4);
}

.bento-score__value {
  font-size: 4rem;
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, var(--color-vivid-blue), var(--color-evergreen));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.bento-score__max {
  font-size: var(--font-size-2xl);
  color: var(--color-foreground-muted);
  margin-left: var(--space-1);
}

.bento-score__bar {
  height: 8px;
  background: var(--color-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

[data-theme="dark"] .bento-score__bar {
  background: var(--color-gray-800);
}

.bento-score__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-vivid-blue), var(--color-evergreen));
  border-radius: var(--radius-full);
  transition: width 1s var(--easing-smooth);
}

.bento-score__label {
  font-size: var(--font-size-sm);
  color: var(--color-evergreen);
  font-weight: var(--font-weight-medium);
}

/* ==========================================================================
   POSITION CARD
   ========================================================================== */

.bento-card--position {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(3, 191, 164, 0.05) 0%, rgba(4, 102, 200, 0.03) 100%);
}

[data-theme="dark"] .bento-card--position {
  background: linear-gradient(135deg, rgba(3, 191, 164, 0.1) 0%, rgba(4, 102, 200, 0.05) 100%);
}

.bento-card--position .bento-card__header {
  justify-content: center;
}

.bento-position {
  margin-bottom: var(--space-3);
}

.bento-position__badge {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  background: linear-gradient(135deg, var(--color-evergreen), var(--color-vivid-blue));
  color: white;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(3, 191, 164, 0.3);
}

.bento-position__desc {
  font-size: var(--font-size-sm);
  color: var(--color-foreground-muted);
}

/* ==========================================================================
   INSIGHTS CARD
   ========================================================================== */

.bento-card--insights {
  padding: var(--space-6);
}

.bento-insights {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bento-insight {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-muted);
  border-radius: var(--radius-xl);
  border-left: 3px solid var(--color-vivid-blue);
  animation: slideInLeft 0.4s ease-out both;
}

[data-theme="dark"] .bento-insight {
  background: rgba(255, 255, 255, 0.03);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.bento-insight__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.1), rgba(3, 191, 164, 0.1));
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.bento-insight__icon i {
  width: 18px;
  height: 18px;
  color: var(--color-vivid-blue);
}

.bento-insight__text {
  color: var(--color-foreground);
  font-size: var(--font-size-base);
}

/* ==========================================================================
   STAT CARDS
   ========================================================================== */

.bento-stat {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--easing-smooth);
}

.bento-stat:hover {
  transform: translateY(-2px);
}

[data-theme="dark"] .bento-stat {
  background: var(--color-gray-900);
}

.bento-stat__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.bento-stat__icon i {
  width: 22px;
  height: 22px;
}

.bento-stat--blue .bento-stat__icon {
  background: rgba(4, 102, 200, 0.1);
  color: var(--color-vivid-blue);
}

.bento-stat--teal .bento-stat__icon {
  background: rgba(3, 191, 164, 0.1);
  color: var(--color-evergreen);
}

.bento-stat--purple .bento-stat__icon {
  background: rgba(139, 92, 246, 0.1);
  color: #8B5CF6;
}

.bento-stat--orange .bento-stat__icon {
  background: rgba(249, 115, 22, 0.1);
  color: #F97316;
}

.bento-stat__value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-foreground);
  line-height: 1;
}

.bento-stat__label {
  font-size: var(--font-size-xs);
  color: var(--color-foreground-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   DETAILS CARD (Expandable)
   ========================================================================== */

.bento-card--details {
  overflow: hidden;
}

.bento-card__header--collapsible {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bento-card__header-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bento-card__chevron {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-normal) var(--easing-smooth);
}

.bento-card--details.expanded .bento-card__chevron {
  transform: rotate(180deg);
}

.bento-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--easing-smooth);
}

.bento-card--details.expanded .bento-details {
  max-height: 2000px;
}

/* ==========================================================================
   LEGACY STYLES (for schema-based rendering)
   ========================================================================== */

/* Results Header - Legacy */

.results-dashboard h4 {
  color: var(--color-foreground);
  font-weight: var(--font-weight-semibold);
}

.results-dashboard .text-muted {
  color: var(--color-foreground-muted) !important;
}

/* Card Overrides for Results */

.results-dashboard .card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

[data-theme="dark"] .results-dashboard .card {
  background: var(--color-gray-900);
  border-color: var(--color-border);
}

.results-dashboard .card-header {
  background: transparent;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-6);
}

[data-theme="dark"] .results-dashboard .card-header {
  background: rgba(255, 255, 255, 0.02);
}

.results-dashboard .card-header h5 {
  color: var(--color-foreground);
  margin: 0;
  font-weight: var(--font-weight-semibold);
}

.results-dashboard .card-body {
  padding: var(--space-6);
}

.results-dashboard .card-title {
  color: var(--color-foreground);
}

.results-dashboard .card-text {
  color: var(--color-foreground-muted);
}

/* List Group for Results */

.results-dashboard .list-group {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.results-dashboard .list-group-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  color: var(--color-foreground);
  padding: var(--space-4);
  transition: all var(--transition-normal);
}

.results-dashboard .list-group-item + .list-group-item {
  border-top: none;
}

.results-dashboard .list-group-item:first-child {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.results-dashboard .list-group-item:last-child {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.results-dashboard .list-group-item:hover {
  background: var(--color-muted);
  border-left-color: var(--color-vivid-blue);
}

[data-theme="dark"] .results-dashboard .list-group-item {
  background: var(--color-gray-900);
  border-color: var(--color-border);
  color: var(--color-foreground);
}

[data-theme="dark"] .results-dashboard .list-group-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Progress Bars */

.results-dashboard .progress {
  background: var(--color-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

[data-theme="dark"] .results-dashboard .progress {
  background: var(--color-gray-800);
}

.results-dashboard .progress-bar {
  border-radius: var(--radius-full);
}

/* Gauge Labels */

.results-dashboard .fw-bold {
  color: var(--color-foreground);
}

/* Agent Results */

.results-dashboard .agent-results {
  padding: var(--space-4);
}

.results-dashboard .agent-results h6 {
  color: var(--color-foreground);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
}

.results-dashboard .agent-results p {
  color: var(--color-foreground-muted);
}

/* Tab Content */

.results-dashboard .tab-content {
  padding: var(--space-4) 0;
}

.results-dashboard .tab-pane {
  color: var(--color-foreground);
}

/* Nav Tabs in Results */

.results-dashboard .nav-tabs {
  border-bottom: 1px solid var(--color-border);
  gap: var(--space-2);
}

.results-dashboard .nav-tabs .nav-link {
  color: var(--color-foreground-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--space-3) var(--space-4);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal);
}

.results-dashboard .nav-tabs .nav-link:hover {
  color: var(--color-vivid-blue);
  border-bottom-color: var(--color-gray-300);
}

.results-dashboard .nav-tabs .nav-link.active {
  color: var(--color-foreground);
  border-bottom-color: var(--color-vivid-blue);
  background: transparent;
}

[data-theme="dark"] .results-dashboard .nav-tabs .nav-link {
  color: var(--color-foreground-muted);
}

[data-theme="dark"] .results-dashboard .nav-tabs .nav-link:hover {
  color: var(--color-vivid-blue);
}

[data-theme="dark"] .results-dashboard .nav-tabs .nav-link.active {
  color: var(--color-foreground);
}

/* Badges in Results */

.results-dashboard .badge {
  font-weight: var(--font-weight-medium);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.results-dashboard .badge.bg-primary {
  background: var(--color-vivid-blue) !important;
  color: white;
}

.results-dashboard .badge.bg-success {
  background: var(--color-evergreen) !important;
  color: white;
}

.results-dashboard .badge.bg-warning {
  background: var(--color-yellow) !important;
  color: var(--color-black);
}

.results-dashboard .badge.bg-danger {
  background: var(--color-dark-red) !important;
  color: white;
}

.results-dashboard .badge.bg-info {
  background: var(--color-vivid-blue) !important;
  color: white;
}

.results-dashboard .badge.bg-secondary {
  background: var(--color-gray-500) !important;
  color: white;
}

/* Text Colors */

.results-dashboard .text-success {
  color: var(--color-evergreen) !important;
}

.results-dashboard .text-warning {
  color: var(--color-yellow) !important;
}

.results-dashboard .text-danger {
  color: var(--color-dark-red) !important;
}

/* Pre/Code blocks for JSON */

.results-dashboard pre {
  background: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  color: var(--color-foreground);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  overflow-x: auto;
}

[data-theme="dark"] .results-dashboard pre {
  background: var(--color-gray-900);
  border-color: var(--color-border);
}

/* Small/Muted Text */

.results-dashboard small,
.results-dashboard .small {
  color: var(--color-foreground-muted);
}

/* Icons in Results */

.results-dashboard [data-lucide="lightbulb"] {
  color: var(--color-yellow) !important;
}

.results-dashboard [data-lucide="database"] {
  color: var(--color-vivid-blue);
}

/* Nested Cards */

.results-dashboard .card .card {
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .results-dashboard .card .card {
  background: rgba(255, 255, 255, 0.02);
}

/* Headings */

.results-dashboard h6 {
  color: var(--color-foreground);
  font-weight: var(--font-weight-semibold);
}

/* Spans and Labels */

.results-dashboard span {
  color: var(--color-foreground);
}

.results-dashboard span.text-muted {
  color: var(--color-foreground-muted) !important;
}

/* Loading State */

.results-dashboard .spinner-border {
  color: var(--color-vivid-blue);
}

.results-dashboard .text-center p {
  color: var(--color-foreground-muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .bento-row--hero {
    grid-template-columns: 1fr 1fr;
  }
  
  .bento-row--stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .results-dashboard {
    padding: var(--space-4);
  }
  
  .bento-row--hero {
    grid-template-columns: 1fr;
  }
  
  .bento-row--stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .bento-score__value {
    font-size: 3rem;
  }
  
  .results-dashboard .card-body {
    padding: var(--space-4);
  }
}

@media (max-width: 480px) {
  .bento-row--stats {
    grid-template-columns: 1fr;
  }
  
  .bento-insight {
    flex-direction: column;
    text-align: center;
  }
  
  .bento-insight__icon {
    margin-bottom: var(--space-2);
  }
}

/* ==========================================================================
   SKELETON LOADING STATES
   ========================================================================== */

.skeleton {
  background: var(--color-muted);
  border-radius: var(--radius-md);
  animation: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  position: relative;
  overflow: hidden;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Skeleton Variants */

.skeleton-text {
  height: 16px;
  width: 100%;
  margin-bottom: var(--space-2);
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: var(--space-3);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}

.skeleton-avatar-sm {
  width: 32px;
  height: 32px;
}

.skeleton-avatar-lg {
  width: 48px;
  height: 48px;
}

.skeleton-button {
  height: 44px;
  width: 120px;
}

.skeleton-card {
  height: 200px;
  width: 100%;
}

.skeleton-line {
  height: 12px;
  width: 100%;
  margin-bottom: var(--space-2);
}

.skeleton-line-short {
  width: 75%;
}

.skeleton-line-long {
  width: 90%;
}

/* Shimmer Effect (Optional Enhancement) */

.skeleton-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Dark Mode Adjustments */

[data-theme="dark"] .skeleton {
  background: var(--color-gray-800);
}

[data-theme="dark"] .skeleton-shimmer::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
}

/* Table styles */

.table {
  font-family: var(--font-family-primary);
}

.table thead th {
  background-color: var(--color-gray-100);
  color: var(--color-foreground);
  font-weight: var(--font-weight-semibold);
  border-bottom: 2px solid var(--color-border);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--color-gray-50);
}

.table-hover tbody tr:hover {
  background-color: var(--color-gray-100);
}

/* ==========================================================================
   TABS COMPONENT - All Variants
   ========================================================================== */

/* Default Tabs */

.tabs-default .tabs-list {
  display: flex;
  gap: var(--space-2);
  background: var(--color-muted);
  padding: var(--space-1);
  border-radius: var(--radius-lg);
}

.tabs-default .tab-trigger {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-foreground-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tabs-default .tab-trigger:hover {
  color: var(--color-foreground);
}

.tabs-default .tab-trigger.active {
  background: var(--color-background);
  color: var(--color-foreground);
  box-shadow: var(--shadow-sm);
}

/* Underlined Tabs */

.tabs-underlined .tabs-list,
.nav-tabs {
  display: flex;
  gap: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.tabs-underlined .tab-trigger,
.nav-tabs .nav-link {
  padding: var(--space-2) var(--space-4);
  border-bottom: 2px solid transparent;
  color: var(--color-foreground-muted);
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal);
}

.tabs-underlined .tab-trigger:hover,
.nav-tabs .nav-link:hover {
  color: var(--color-vivid-blue);
  border-bottom-color: var(--color-gray-300);
}

.tabs-underlined .tab-trigger.active,
.nav-tabs .nav-link.active {
  border-bottom-color: var(--color-vivid-blue);
  color: var(--color-foreground);
  background-color: transparent;
}

/* Pills Tabs */

.tabs-pills .tabs-list {
  display: flex;
  gap: var(--space-2);
}

.tabs-pills .tab-trigger {
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-3);
  color: var(--color-foreground-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal);
}

.tabs-pills .tab-trigger:hover {
  background: var(--color-muted);
}

.tabs-pills .tab-trigger.active {
  background: var(--color-vivid-blue);
  color: white;
}

/* Outline Tabs */

.tabs-outline .tabs-list {
  display: flex;
  gap: var(--space-2);
}

.tabs-outline .tab-trigger {
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  color: var(--color-foreground-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal);
}

.tabs-outline .tab-trigger:hover {
  border-color: var(--color-border);
}

.tabs-outline .tab-trigger.active {
  border-color: var(--color-border);
  color: var(--color-foreground);
  background: var(--color-background);
}

/* Tab Content */

.tab-content,
.tabs-content {
  padding: var(--space-4) 0;
}

/* Tab Sizes */

.tabs-sm .tab-trigger {
  font-size: var(--font-size-sm);
  padding: var(--space-1) var(--space-2);
}

.tabs-lg .tab-trigger {
  font-size: var(--font-size-lg);
  padding: var(--space-3) var(--space-4);
}

/* Trend indicator styles */

.trend-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--font-weight-semibold);
}

.trend-up { color: var(--color-success); }

.trend-down { color: var(--color-error); }

.trend-stable { color: var(--color-gray-500); }

/* 5. Utilities (last) */

/**
 * Consolidated animations for Aurum AI Dashboard
 * Adapted from marketing website with dashboard-specific optimizations
 */

/* --------------------------------
   General Animation Utilities
-------------------------------- */

.animate-fade {
  animation: fadeIn var(--transition-normal) var(--ease-standard) both;
}

.hover-float {
  transition: transform var(--transition-normal) var(--ease-standard);
}

.hover-float:hover { 
  transform: translateY(-4px); 
}

/* Disable animations for users who prefer reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, 
  *::before, 
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------
   Fade Animations
-------------------------------- */

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(6px); }
}

.fade-in {
  animation: fadeIn var(--transition-normal) var(--ease-standard) both;
}

.fade-out {
  animation: fadeOut var(--transition-normal) var(--ease-standard) both;
}

/* --------------------------------
   Button Animations
-------------------------------- */

@keyframes button-shine {
  0% {
    opacity: 0;
    background-position: 200% 0;
  }
  5% {
    opacity: 1;
  }
  30% {
    background-position: -200% 0;
    opacity: 0;
  }
  100% {
    opacity: 0;
    background-position: -200% 0;
  }
}

/* Apply shine to primary buttons */

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 25%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
  pointer-events: none;
  opacity: 0;
  animation: button-shine 4s infinite;
  transition: all 0.3s ease;
}

/* --------------------------------
   Card Animations
-------------------------------- */

/* Card lift effect on hover */

.card-hover-lift {
  transition: transform var(--transition-normal) var(--ease-standard), 
              box-shadow var(--transition-normal) var(--ease-standard);
}

.card-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Card gradient overlay */

.card-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-vivid-blue) 0%, var(--color-teal) 100%);
  opacity: 0.05;
  transition: opacity var(--transition-normal) var(--ease-standard);
}

.card:hover .card-gradient-overlay {
  opacity: 0.1;
}

/* --------------------------------
   Progress Animations
-------------------------------- */

/* Progress bar animation */

.progress-bar {
  height: 0.5rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.1);
}

.progress-value {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(to right, var(--color-vivid-blue), var(--color-teal));
  transition: width var(--transition-slow) var(--ease-standard);
}

/* Spinner animation */

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* --------------------------------
   Pulse Animations
-------------------------------- */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --------------------------------
   Shimmer Effect
-------------------------------- */

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

/* --------------------------------
   Floating Elements Animation
-------------------------------- */

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(var(--rotation, 0deg));
  }
  50% {
    transform: translateY(-20px) rotate(calc(var(--rotation, 0deg) + 5deg));
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  --rotation: var(--rotation, 0deg);
}

/* --------------------------------
   Slide Animations
-------------------------------- */

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft var(--transition-normal) var(--ease-standard) both;
}

.slide-in-right {
  animation: slideInRight var(--transition-normal) var(--ease-standard) both;
}

/* --------------------------------
   Mobile Optimizations
-------------------------------- */

@media (max-width: 768px) {
  /* Simplified animations for mobile */
  .animate-float {
    animation-duration: 8s; /* Slower float */
  }
  
  .shimmer-effect::after {
    animation-duration: 3s; /* Slower shimmer */
  }
  
  /* Add hardware acceleration for smoother animations */
  .animate-mobile {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
  }
}

/**
 * Utility classes for Aurum AI Dashboard
 * Includes iOS fixes, accessibility helpers, and responsive utilities
 */

/* --------------------------------
   iOS-specific fixes
-------------------------------- */

/* Fix for momentum scrolling behavior on iOS */

@supports (-webkit-touch-callout: none) {
  html, body {
    /* Prevent scrolling bounce effect that can happen on iOS */
    -webkit-overflow-scrolling: touch;
    /* Prevent text size adjustment on orientation change */
    -webkit-text-size-adjust: 100%;
  }
  
  /* Fix for input fields and buttons */
  input, 
  button, 
  textarea, 
  select {
    /* Disable iOS styling on form elements */
    -webkit-appearance: none;
    -moz-appearance: none;
         appearance: none;
    border-radius: var(--radius-md);
  }
  
  /* Fix for iOS hover states - use active instead */
  button:active,
  a:active {
    opacity: 0.8;
  }
  
  /* Fix for position:fixed elements on iOS Safari */
  .fixed {
    transform: translateZ(0);
    backface-visibility: hidden;
  }
  
  /* Fix for 100vh issue in iOS Safari */
  .h-screen {
    height: 100vh; /* Use the viewport height */
    height: -webkit-fill-available; /* Fallback for iOS */
  }
  
  /* Smooth scroll polyfill for iOS */
  .smooth-scroll {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix sticky positioning in iOS Safari */
  .sticky {
    position: sticky;
  }
  
  /* Fix iOS tap highlight color */
  * {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
}

/* Fix for notched iPhones - ensure content doesn't get hidden under the notch */

@supports (padding: max(0px)) {
  .notch-padding {
    padding-left: max(env(safe-area-inset-left), 16px);
    padding-right: max(env(safe-area-inset-right), 16px);
    padding-top: max(env(safe-area-inset-top), 16px);
    padding-bottom: max(env(safe-area-inset-bottom), 16px);
  }
  
  .header {
    padding-top: max(env(safe-area-inset-top), 0px);
  }
  
  .fixed-bottom {
    padding-bottom: max(env(safe-area-inset-bottom), 16px);
  }
}

/* Improve touch area size for better interaction */

.touch-target {
  min-height: 44px;
  min-width: 44px;
}

/* --------------------------------
   Accessibility Utilities
-------------------------------- */

/* Screen reader only text */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles */

.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-vivid-blue);
}

/* Better keyboard focus indication */

.focus-visible:focus-visible {
  outline: 2px solid var(--color-vivid-blue);
  outline-offset: 2px;
}

/* Skip link for keyboard navigation */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px;
  background-color: var(--color-background);
  color: var(--color-foreground);
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Make focus ring visible only when using keyboard */

body:not(.user-is-tabbing) button:focus,
body:not(.user-is-tabbing) input:focus,
body:not(.user-is-tabbing) select:focus,
body:not(.user-is-tabbing) textarea:focus {
  outline: none;
}

/* --------------------------------
   Responsive Layout Utilities
-------------------------------- */

/* Mobile layout utilities */

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
  
  .mobile-text-center {
    text-align: center;
  }
  
  .mobile-full-width {
    width: 100%;
  }
  
  .mobile-stack {
    display: flex;
    flex-direction: column;
  }
  
  .mobile-p-4 {
    padding: var(--space-4);
  }
  
  .mobile-my-4 {
    margin-top: var(--space-4);
    margin-bottom: var(--space-4);
  }
}

/* Desktop layout utilities */

@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
}

/* --------------------------------
   Display Utilities
-------------------------------- */

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

/* --------------------------------
   Text Utilities
-------------------------------- */

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------
   Overflow Utilities
-------------------------------- */

.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.overflow-scroll {
  overflow: scroll;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* --------------------------------
   Position Utilities
-------------------------------- */

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

/* --------------------------------
   Z-Index Utilities
-------------------------------- */

.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

/* --------------------------------
   Width/Height Utilities
-------------------------------- */

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.w-screen {
  width: 100vw;
}

.h-screen {
  height: 100vh;
}

/* --------------------------------
   Pointer Events
-------------------------------- */

.pointer-events-none {
  pointer-events: none;
}

.pointer-events-auto {
  pointer-events: auto;
}

/* --------------------------------
   User Select
-------------------------------- */

.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.select-text {
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}

.select-all {
  -webkit-user-select: all;
     -moz-user-select: all;
          user-select: all;
}

/* --------------------------------
   Cursor Utilities
-------------------------------- */

.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-default {
  cursor: default;
}

/* --------------------------------
   Opacity Utilities
-------------------------------- */

.opacity-0 {
  opacity: 0;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-100 {
  opacity: 1;
}

/* ==========================================================================
   ADDITIONAL DASHBOARD-SPECIFIC STYLES
   ========================================================================== */

/* Loading overlay */

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* View containers */

.view-container {
  min-height: 500px;
}

/* Animate fade in */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn var(--transition-normal) ease-out;
}

/* Theme transition */

body {
  transition: background-color var(--transition-normal), color var(--transition-normal);
}
