/**
 * Stella.Support — Design Token System
 * Modern, AI-first design language
 */

:root {
  /* ═══════════════════════════════════════════
     COLOR SYSTEM
     ═══════════════════════════════════════════ */

  /* Primary Brand */
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-primary-dark: #4f46e5;
  --color-primary-50: rgba(99, 102, 241, 0.08);
  --color-primary-100: rgba(99, 102, 241, 0.15);
  --color-primary-text: #ffffff;

  /* AI Accent (Violet) */
  --color-ai: #8b5cf6;
  --color-ai-light: #a78bfa;
  --color-ai-dark: #7c3aed;
  --color-ai-glow: rgba(139, 92, 246, 0.3);
  --color-ai-surface: rgba(139, 92, 246, 0.06);
  --color-ai-border: rgba(139, 92, 246, 0.2);

  /* Cyan Accent */
  --color-accent: #06b6d4;
  --color-accent-light: #22d3ee;
  --color-accent-dark: #0891b2;

  /* Secondary */
  --color-secondary: #64748b;
  --color-secondary-light: #94a3b8;
  --color-secondary-dark: #475569;
  --color-secondary-bg: rgba(100, 116, 139, 0.1);

  /* Surface & Background (Rich Dark) */
  --color-bg-base: #0b0f1a;
  --color-bg-elevated: #111827;
  --color-bg-surface: #1e293b;
  --color-bg-surface-hover: #263348;
  --color-bg-overlay: rgba(0, 0, 0, 0.6);
  --color-bg-input: #0f172a;

  /* Text Hierarchy */
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-tertiary: #64748b;
  --color-text-muted: #475569;
  --color-text-inverse: #0f172a;

  /* Borders */
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-subtle: rgba(255, 255, 255, 0.04);
  --color-border-strong: rgba(255, 255, 255, 0.12);
  --color-border-focus: var(--color-primary);

  /* Status / Semantic Colors */
  --color-success: #10b981;
  --color-success-light: #34d399;
  --color-success-dark: #059669;
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-success-border: rgba(16, 185, 129, 0.25);

  --color-warning: #f59e0b;
  --color-warning-light: #fbbf24;
  --color-warning-dark: #d97706;
  --color-warning-bg: rgba(245, 158, 11, 0.1);
  --color-warning-border: rgba(245, 158, 11, 0.25);

  --color-danger: #ef4444;
  --color-danger-light: #f87171;
  --color-danger-dark: #dc2626;
  --color-danger-bg: rgba(239, 68, 68, 0.1);
  --color-danger-border: rgba(239, 68, 68, 0.25);

  --color-info: #3b82f6;
  --color-info-light: #60a5fa;
  --color-info-dark: #2563eb;
  --color-info-bg: rgba(59, 130, 246, 0.1);
  --color-info-border: rgba(59, 130, 246, 0.25);

  /* Ticket Status Colors */
  --status-new: #6366f1;
  --status-open: #3b82f6;
  --status-pending: #f59e0b;
  --status-resolved: #10b981;
  --status-closed: #64748b;

  /* Ticket Priority Colors */
  --priority-low: #10b981;
  --priority-medium: #f59e0b;
  --priority-high: #f97316;
  --priority-urgent: #ef4444;


  /* ═══════════════════════════════════════════
     TYPOGRAPHY
     ═══════════════════════════════════════════ */

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.8125rem;    /* 13px */
  --text-base: 0.875rem;   /* 14px */
  --text-md: 1rem;         /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;


  /* ═══════════════════════════════════════════
     SPACING
     ═══════════════════════════════════════════ */

  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */


  /* ═══════════════════════════════════════════
     BORDERS & RADIUS
     ═══════════════════════════════════════════ */

  --radius-sm: 0.375rem;    /* 6px */
  --radius-md: 0.5rem;      /* 8px */
  --radius-lg: 0.75rem;     /* 12px */
  --radius-xl: 1rem;        /* 16px */
  --radius-2xl: 1.5rem;     /* 24px */
  --radius-full: 9999px;


  /* ═══════════════════════════════════════════
     SHADOWS (Layered for depth)
     ═══════════════════════════════════════════ */

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  --shadow-glow-primary: 0 0 20px rgba(99, 102, 241, 0.15);
  --shadow-glow-ai: 0 0 20px rgba(139, 92, 246, 0.15);


  /* ═══════════════════════════════════════════
     TRANSITIONS & ANIMATIONS
     ═══════════════════════════════════════════ */

  --transition-fast: 100ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);


  /* ═══════════════════════════════════════════
     Z-INDEX SCALE
     ═══════════════════════════════════════════ */

  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-sidebar: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-command-palette: 800;


  /* ═══════════════════════════════════════════
     LAYOUT
     ═══════════════════════════════════════════ */

  --sidebar-width: 256px;
  --sidebar-collapsed: 68px;
  --topbar-height: 56px;
  --content-max-width: 1200px;


  /* ═══════════════════════════════════════════
     BREAKPOINTS (for reference, used in media queries)
     ═══════════════════════════════════════════ */
  /* sm: 640px, md: 768px, lg: 1024px, xl: 1280px, 2xl: 1536px */
}


/* ═══════════════════════════════════════════
   BADGE STYLES FOR TICKET STATUSES
   ═══════════════════════════════════════════ */

.badge-status-new {
  background-color: var(--status-new);
  color: #fff;
}
.badge-status-open {
  background-color: var(--status-open);
  color: #fff;
}
.badge-status-pending {
  background-color: var(--status-pending);
  color: #000;
}
.badge-status-resolved {
  background-color: var(--status-resolved);
  color: #fff;
}
.badge-status-closed {
  background-color: var(--status-closed);
  color: #fff;
}

/* Ticket Priority Badges */
.badge-priority-low {
  background-color: var(--priority-low);
  color: #fff;
}
.badge-priority-medium {
  background-color: var(--priority-medium);
  color: #000;
}
.badge-priority-high {
  background-color: var(--priority-high);
  color: #fff;
}
.badge-priority-urgent {
  background-color: var(--priority-urgent);
  color: #fff;
}
