
/* ============================================
   TVO Org Dashboard — Design System
   Inspired by: Linear, Vercel, Stripe
   ============================================ */

/* ============================================
   1. DESIGN TOKENS
   ============================================ */

:root {
  /* — Color Palette — */
  
  /* Primary - Vibrant purple/blue gradient base */
  --color-primary-50: #f5f3ff;
  --color-primary-100: #ede9fe;
  --color-primary-200: #ddd6fe;
  --color-primary-300: #c4b5fd;
  --color-primary-400: #a78bfa;
  --color-primary-500: #8b5cf6;
  --color-primary-600: #7c3aed;
  --color-primary-700: #6d28d9;
  --color-primary-800: #5b21b6;
  --color-primary-900: #4c1d95;
  
  /* Secondary - Cool blue */
  --color-secondary-50: #eff6ff;
  --color-secondary-100: #dbeafe;
  --color-secondary-200: #bfdbfe;
  --color-secondary-300: #93c5fd;
  --color-secondary-400: #60a5fa;
  --color-secondary-500: #3b82f6;
  --color-secondary-600: #2563eb;
  --color-secondary-700: #1d4ed8;
  --color-secondary-800: #1e40af;
  --color-secondary-900: #1e3a8a;
  
  /* Neutrals - Slate gray scale */
  --color-neutral-0: #ffffff;
  --color-neutral-50: #f8fafc;
  --color-neutral-100: #f1f5f9;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-400: #94a3b8;
  --color-neutral-500: #64748b;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1e293b;
  --color-neutral-900: #0f172a;
  --color-neutral-950: #020617;
  
  /* Semantic Colors */
  --color-success-50: #ecfdf5;
  --color-success-100: #d1fae5;
  --color-success-200: #a7f3d0;
  --color-success-400: #34d399;
  --color-success-500: #10b981;
  --color-success-600: #059669;
  --color-success-700: #047857;
  
  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-200: #fde68a;
  --color-warning-400: #fbbf24;
  --color-warning-500: #f59e0b;
  --color-warning-600: #d97706;
  --color-warning-700: #b45309;
  
  --color-danger-50: #fef2f2;
  --color-danger-100: #fee2e2;
  --color-danger-200: #fecaca;
  --color-danger-400: #f87171;
  --color-danger-500: #ef4444;
  --color-danger-600: #dc2626;
  --color-danger-700: #b91c1c;
  
  /* — Typography — */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: "SF Mono", "Fira Code", "Fira Mono", Consolas, monospace;
  
  /* Font sizes with line heights */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 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 */
  --text-5xl: 3rem;        /* 48px */
  
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* — Spacing Scale — */
  --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 */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  
  /* — Border Radius — */
  --radius-none: 0;
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-full: 9999px;
  
  /* — Shadows — */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  
  /* Colored shadows for cards */
  --shadow-primary: 0 4px 14px 0 rgb(139 92 246 / 0.15);
  --shadow-glow: 0 0 20px rgb(139 92 246 / 0.3);
  
  /* — Transitions — */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* — Z-Index Scale — */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;
  
  /* — Layout — */
  --container-max: 1280px;
  --container-padding: var(--space-6);
}


/* ===========================================
   2. BASE STYLES
   ============================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-neutral-800);
  background-color: var(--color-neutral-50);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--color-neutral-900);
}

p {
  margin: 0;
}

a {
  color: var(--color-primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-700);
}


/* ===========================================
   3. LAYOUT SYSTEM
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-6);
}

@media (max-width: 640px) {
  .container {
    padding: var(--space-4);
  }
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

/* Auto-fit responsive grid */
.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

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

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

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Section spacing */
.section {
  margin-bottom: var(--space-8);
}

.section:last-child {
  margin-bottom: 0;
}


/* ===========================================
   4. CARD COMPONENT
   ============================================ */

.card {
  background: var(--color-neutral-0);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-neutral-200);
  padding: var(--space-6);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-neutral-300);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-neutral-100);
}

.card-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-neutral-900);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.card-title-icon {
  font-size: var(--text-lg);
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
  margin-top: var(--space-1);
}

.card-body {
  flex: 1;
}

.card-footer {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-neutral-100);
}

/* Card variants */
.card-compact {
  padding: var(--space-4);
}

.card-flush {
  padding: 0;
}

.card-flush .card-header {
  padding: var(--space-5) var(--space-5) var(--space-4);
  margin-bottom: 0;
}

.card-flush .card-body {
  padding: 0 var(--space-5) var(--space-5);
}


/* ===========================================
   5. HERO / NORTH STAR CARD
   ============================================ */

.hero-card {
  background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-secondary-600) 100%);
  color: var(--color-neutral-0);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  border: none;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.hero-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-neutral-0);
  margin-bottom: var(--space-8);
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .hero-card {
    padding: var(--space-8) var(--space-5);
  }
  
  .hero-title {
    font-size: var(--text-2xl);
  }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero-stats {
    gap: var(--space-6);
  }
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.hero-stat-value {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-none);
}

@media (max-width: 640px) {
  .hero-stat-value {
    font-size: var(--text-2xl);
  }
}

.hero-stat-value.positive {
  color: var(--color-success-200);
}

.hero-stat-value.negative {
  color: var(--color-danger-200);
}

.hero-quote {
  font-size: var(--text-lg);
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-6);
}


/* ===========================================
   6. PROGRESS BARS
   ============================================ */

.progress {
  width: 100%;
  height: 8px;
  background: var(--color-neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-lg {
  height: 12px;
}

.progress-xl {
  height: 20px;
}

.progress-bar {
  min-width: 1%;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-600));
  transition: width var(--transition-slow);
}

.progress-bar-success {
  background: linear-gradient(90deg, var(--color-success-400), var(--color-success-500));
}

.progress-bar-warning {
  background: linear-gradient(90deg, var(--color-warning-400), var(--color-warning-500));
}

.progress-bar-danger {
  background: linear-gradient(90deg, var(--color-danger-400), var(--color-danger-500));
}

/* Hero progress (white on gradient) */
.progress-hero {
  background: rgba(255, 255, 255, 0.2);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.progress-hero .progress-bar {
  background: var(--color-neutral-0);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  min-width: 4px; /* Always visible even at tiny percentages */
}

/* Milestone markers for hero progress */
.progress-hero::before {
  content: '';
  position: absolute;
  left: 10%; /* $100M marker */
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
}

.progress-hero::after {
  content: '';
  position: absolute;
  left: 1%; /* $10M marker */
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
}

.progress-hero + .progress-labels {
  max-width: 600px;
  margin: var(--space-2) auto 0;
  color: rgba(255, 255, 255, 0.7);
}

.progress-milestones {
  position: relative;
}

.milestone-marker {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  transform: translateX(-50%);
  white-space: nowrap;
}

.hero-milestone {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.hero-milestone strong {
  color: var(--color-neutral-0);
}

/* Progress with label inside */
.progress-labeled {
  position: relative;
}

.progress-labeled .progress-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-neutral-0);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}


/* ===========================================
   7. STATUS BADGES
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Status badges */
.badge-online {
  background: var(--color-success-100);
  color: var(--color-success-700);
}

.badge-online::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success-500);
  animation: pulse 2s infinite;
}

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

.badge-offline {
  background: var(--color-neutral-100);
  color: var(--color-neutral-600);
}

.badge-offline::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-neutral-400);
}

/* Project status badges */
.badge-shipped {
  background: var(--color-success-100);
  color: var(--color-success-700);
}

.badge-active {
  background: var(--color-secondary-100);
  color: var(--color-secondary-700);
}

.badge-building {
  background: linear-gradient(135deg, var(--color-secondary-100), var(--color-primary-100));
  color: var(--color-secondary-700);
  position: relative;
  overflow: hidden;
}

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

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

.badge-paused {
  background: var(--color-warning-100);
  color: var(--color-warning-700);
}

.badge-idea {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}

/* Priority badges */
.badge-high {
  background: var(--color-danger-100);
  color: var(--color-danger-700);
}

.badge-medium {
  background: var(--color-warning-100);
  color: var(--color-warning-700);
}

.badge-low {
  background: var(--color-neutral-100);
  color: var(--color-neutral-600);
}


/* ===========================================
   8. DATA DISPLAYS / STATS
   ============================================ */

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-neutral-500);
}

.stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-neutral-900);
  line-height: var(--leading-tight);
}

.stat-value-lg {
  font-size: var(--text-4xl);
}

.stat-change {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.stat-change.positive {
  color: var(--color-success-600);
}

.stat-change.negative {
  color: var(--color-danger-600);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-6);
}

/* Summary metrics */
.summary-metrics {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

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

.summary-metric h3 {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.summary-metric p {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-neutral-900);
}

/* Chart container */
.chart-container {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: var(--space-4);
}


/* ===========================================
   9. ACTIVITY ITEMS
   ============================================ */

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

.activity-list-scroll {
  max-height: 300px;
  overflow-y: auto;
  padding: var(--space-1);
  margin: calc(var(--space-1) * -1);
}

/* Custom scrollbar */
.activity-list-scroll::-webkit-scrollbar {
  width: 6px;
}

.activity-list-scroll::-webkit-scrollbar-track {
  background: var(--color-neutral-100);
  border-radius: var(--radius-full);
}

.activity-list-scroll::-webkit-scrollbar-thumb {
  background: var(--color-neutral-300);
  border-radius: var(--radius-full);
}

.activity-list-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--color-neutral-400);
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-neutral-50);
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast);
}

.activity-item:hover {
  background: var(--color-neutral-100);
}

.activity-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary-100), var(--color-secondary-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-agent {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-neutral-900);
}

.activity-action {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  margin-top: var(--space-1);
}

.activity-action strong {
  color: var(--color-neutral-800);
  font-weight: var(--font-medium);
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
}

.activity-timestamp {
  color: var(--color-neutral-400);
}


/* ===========================================
   10. BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: var(--leading-tight);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-200);
}

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

/* Primary button */
.btn-primary {
  background: var(--color-primary-600);
  color: var(--color-neutral-0);
  border-color: var(--color-primary-600);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-700);
  border-color: var(--color-primary-700);
}

/* Secondary button */
.btn-secondary {
  background: var(--color-neutral-0);
  color: var(--color-neutral-700);
  border-color: var(--color-neutral-300);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-neutral-50);
  border-color: var(--color-neutral-400);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--color-neutral-600);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--color-neutral-100);
  color: var(--color-neutral-800);
}

/* Button sizes */
.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}


/* ===========================================
   11. INPUT FIELDS
   ============================================ */

.input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: inherit;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-neutral-800);
  background: var(--color-neutral-0);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input::placeholder {
  color: var(--color-neutral-400);
}

.input:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.input:disabled {
  background: var(--color-neutral-100);
  cursor: not-allowed;
}

/* Input with icon */
.input-group {
  position: relative;
}

.input-group .input {
  padding-left: var(--space-10);
}

.input-group-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-neutral-400);
  pointer-events: none;
}

/* Input sizes */
.input-sm {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
}

/* Filters container */
.filters {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.filters .input {
  flex: 1;
  min-width: 160px;
}


/* ===========================================
   12. LISTS
   ============================================ */

.list {
  display: flex;
  flex-direction: column;
}

/* Constrain Team Roster height to balance with other cards */
#team-roster {
  max-height: 320px;
  overflow-y: auto;
}

#team-roster::-webkit-scrollbar {
  width: 6px;
}

#team-roster::-webkit-scrollbar-track {
  background: var(--color-neutral-100);
  border-radius: var(--radius-full);
}

#team-roster::-webkit-scrollbar-thumb {
  background: var(--color-neutral-300);
  border-radius: var(--radius-full);
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-neutral-100);
}

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

.list-item-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
}

.list-item-icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.list-item-text {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-neutral-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-subtitle {
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
  margin-top: var(--space-1);
}

.list-item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}


/* ===========================================
   13. IDEA CARDS
   ============================================ */

.idea-card {
  background: var(--color-neutral-0);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  transition: all var(--transition-fast);
}

.idea-card:last-child {
  margin-bottom: 0;
}

.idea-card:hover {
  border-color: var(--color-primary-300);
  box-shadow: var(--shadow-sm);
}

.idea-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.idea-header .badge {
  flex-shrink: 0;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idea-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-neutral-900);
  flex: 1;
}

.idea-meta {
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
  margin-bottom: var(--space-2);
}

.idea-description {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  line-height: var(--leading-relaxed);
}

#idea-bucket {
    max-height: 400px;
    overflow-y: auto;
}


/* ===========================================
   14. UTILITY CLASSES
   ============================================ */

/* Text utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

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

.text-primary { color: var(--color-primary-600); }
.text-secondary { color: var(--color-neutral-500); }
.text-muted { color: var(--color-neutral-400); }
.text-success { color: var(--color-success-600); }
.text-warning { color: var(--color-warning-600); }
.text-danger { color: var(--color-danger-600); }

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

/* Spacing utilities */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }

/* Link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-primary-600);
  transition: gap var(--transition-fast);
}

.link-arrow:hover {
  gap: var(--space-2);
}

.link-arrow::after {
  content: '→';
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-8);
  color: var(--color-neutral-500);
}

.empty-state-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-3);
}

/* Last updated */
.last-updated {
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
  text-align: right;
  margin-top: var(--space-4);
}


/* ===========================================
   15. RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .summary-metrics {
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
  }
  
  .filters {
    flex-direction: column;
  }
  
  .filters .input {
    width: 100%;
  }
  
  .activity-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
}
