/* TrackFlow Production Replica — Design Tokens & Shared Styles */

/* Dark mode color variables (matching globals.css oklch values) */
:root {
  --bg: #0d1117;
  --fg: #f0f0f5;
  --card: #161b22;
  --card-fg: #f0f0f5;
  --popover: #0d0f14;
  --popover-fg: #f0f0f5;
  --primary: #7c5bf0;
  --primary-fg: #f5f0ff;
  --secondary: #1c2028;
  --secondary-fg: #f0f0f5;
  --muted: rgba(28, 32, 40, 0.5);
  --muted-fg: #8b8fa3;
  --accent: rgba(60, 40, 120, 0.4);
  --accent-fg: #f0e8ff;
  --destructive: #dc3545;
  --border: rgba(255, 255, 255, 0.08);
  --input: rgba(255, 255, 255, 0.10);
  --ring: #7c5bf0;
  --chart-1: #8b6cf0;
  --chart-2: #c060d0;
  --chart-3: #a030a0;
  --chart-4: #b0b8d4;
  --chart-5: #6088c0;
  --radius: 0.625rem;
  --sidebar-bg: rgba(14, 16, 24, 0.8);
  --sidebar-fg: #f0f0f5;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-accent: rgba(60, 40, 120, 0.4);
}

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

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100vh;
}

/* Glass effect */
.glass {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-morphism {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(to right, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 256px;
  min-width: 256px;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  z-index: 20;
}

.sidebar-header {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.sidebar-logo-icon {
  display: flex;
  height: 20px;
  width: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  color: white;
  background: var(--primary);
}

.sidebar-logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 8px 0;
}

.sidebar-separator {
  height: 1px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.05);
}

/* Nav items */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-fg);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}

.nav-item.active {
  background: rgba(124, 91, 240, 0.1);
  color: var(--primary);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 9999px;
  background: var(--primary);
}

.nav-item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Zone B: Recent/Starred */
.zone-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-fg);
  cursor: pointer;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 16px;
  font-size: 12px;
  color: var(--muted-fg);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
}

.recent-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}

.project-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* Section labels */
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
}

/* Project switcher */
.project-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.project-switcher:hover { background: rgba(255, 255, 255, 0.06); }

.project-switcher-text { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sub-nav */
.sub-nav {
  display: flex;
  flex-direction: column;
  padding-right: 8px;
  margin-top: 8px;
  margin-bottom: 4px;
  padding-left: 12px;
  margin-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-nav:hover { border-left-color: rgba(255, 255, 255, 0.1); }

.sub-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted-fg);
  text-decoration: none;
  transition: all 0.15s;
}

.sub-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}

.sub-nav-item.active {
  background: rgba(124, 91, 240, 0.1);
  color: var(--primary);
}

.sub-nav-item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Sidebar footer */
.sidebar-footer {
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar-user:hover { background: rgba(255, 255, 255, 0.05); }

.user-avatar {
  display: flex;
  height: 24px;
  width: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  background: var(--primary);
  flex-shrink: 0;
}

.user-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

/* Edge toggle */
.sidebar-edge-toggle {
  position: fixed;
  top: 14px;
  left: 242px;
  z-index: 30;
  display: flex;
  height: 28px;
  width: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 2px solid rgba(124, 91, 240, 0.6);
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-edge-toggle:hover {
  transform: scale(1.1);
  background: rgba(124, 91, 240, 0.9);
}

/* Main content area */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* Top nav */
.top-nav {
  display: flex;
  height: 64px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-create {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 91, 240, 0.2);
  transition: all 0.15s;
}

.btn-create:hover { transform: scale(1.05); }

.icon-btn {
  display: flex;
  height: 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted-fg);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.icon-btn:hover { color: var(--fg); }

.avatar-sm {
  display: flex;
  height: 28px;
  width: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  background: var(--primary);
  cursor: pointer;
  transition: opacity 0.15s;
}

.avatar-sm:hover { opacity: 0.8; }

/* Page content */
.page-content {
  flex: 1;
  overflow: auto;
  padding: 24px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.card-glass {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.card-header {
  padding: 16px 24px 12px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-content { padding: 0 24px 24px; }

/* Stat card */
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(24px);
  padding: 16px;
  transition: transform 0.3s;
}

.stat-card:hover { transform: scale(1.02); }

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.stat-card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.stat-card-icon {
  display: flex;
  padding: 8px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card-value {
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-card-desc {
  font-size: 12px;
  font-weight: 500;
  color: rgba(139, 143, 163, 0.8);
  margin-top: 8px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}

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

/* Status badges */
.badge-in-progress { background: rgba(192, 96, 208, 0.15); color: var(--chart-2); border: none; }
.badge-todo { background: var(--muted); color: var(--muted-fg); border: none; }
.badge-done { background: rgba(176, 184, 212, 0.15); color: var(--chart-4); border: none; }

/* Priority dots */
.dot-critical { background: var(--destructive); }
.dot-major { background: rgba(220, 53, 69, 0.8); }
.dot-minor { background: var(--chart-2); }
.dot-trivial { background: rgba(139, 143, 163, 0.4); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { opacity: 0.9; }

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

.btn-outline:hover { background: rgba(255, 255, 255, 0.05); }

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

.btn-ghost:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }

.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }

/* Project header bar */
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--muted-fg);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--fg); text-decoration: underline; }

.breadcrumb-separator { color: var(--muted-fg); }

.breadcrumb-current {
  color: var(--fg);
  font-weight: 500;
}

/* Tab bar */
.tab-bar {
  display: flex;
  align-items: center;
  height: 40px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  flex-shrink: 0;
  overflow-x: auto;
}

.tab-item {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  color: var(--muted-fg);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.tab-item:hover { color: var(--fg); }

.tab-item.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

/* Table */
.table-wrapper {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 24px;
  text-align: center;
}

.empty-state-icon {
  display: flex;
  height: 56px;
  width: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--muted);
}

/* Aurora background (dashboard) */
.aurora-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.aurora-base {
  position: absolute;
  inset: 0;
  background: #020617;
}

.aurora-primary {
  position: absolute;
  right: -15%;
  top: -15%;
  height: 900px;
  width: 1100px;
  border-radius: 9999px;
  filter: blur(120px);
  opacity: 0.4;
  background: radial-gradient(circle, #7c3aed 0%, #4338ca 50%, transparent 100%);
  animation: pulse 4s ease-in-out infinite alternate;
}

.aurora-secondary {
  position: absolute;
  left: -10%;
  bottom: -10%;
  height: 700px;
  width: 900px;
  border-radius: 9999px;
  filter: blur(100px);
  opacity: 0.3;
  background: radial-gradient(circle, #0ea5e9 0%, #1e40af 50%, transparent 100%);
}

.aurora-tertiary {
  position: absolute;
  left: 20%;
  top: 10%;
  height: 500px;
  width: 600px;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.2;
  background: radial-gradient(circle, #db2777 0%, transparent 70%);
}

@keyframes pulse {
  from { opacity: 0.35; }
  to { opacity: 0.5; }
}

/* Kanban board */
.board-columns {
  display: flex;
  gap: 12px;
  height: 100%;
  overflow-x: auto;
  padding: 16px;
  align-items: flex-start;
}

.board-column {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  max-height: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.board-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 8px;
}

.board-column-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.board-column-count {
  font-size: 11px;
  color: var(--muted-fg);
  margin-left: 6px;
}

.board-column-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Kanban card */
.kanban-card {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.kanban-card:hover {
  border-color: rgba(124, 91, 240, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.kanban-card-key {
  font-size: 11px;
  font-family: monospace;
  color: var(--muted-fg);
  margin-bottom: 4px;
}

.kanban-card-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Pipeline stage chip */
.stage-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 96px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.stage-chip-pass { background: rgba(176, 184, 212, 0.12); color: var(--chart-4); }
.stage-chip-block { background: rgba(220, 53, 69, 0.1); color: var(--destructive); }
.stage-chip-running { background: rgba(192, 96, 208, 0.12); color: var(--chart-2); }
.stage-chip-pending { background: rgba(255, 255, 255, 0.04); color: var(--muted-fg); }

/* Filter tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-fg);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-tab:hover { background: var(--muted); color: var(--fg); }
.filter-tab.active { background: var(--fg); color: var(--bg); }

.filter-tab-count {
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

/* Health bar */
.health-bar-track {
  display: flex;
  height: 8px;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--muted);
}

/* Select / Input mock */
.select-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 14px;
  color: var(--fg);
  min-width: 160px;
  cursor: pointer;
}

.input-mock {
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 14px;
  color: var(--fg);
  min-width: 160px;
}

.input-mock::placeholder { color: var(--muted-fg); }

/* Agent card */
.agent-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s;
}

.agent-row:hover { background: rgba(255, 255, 255, 0.02); }
.agent-row:last-child { border-bottom: none; }

.agent-avatar {
  display: flex;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.agent-info { flex: 1; min-width: 0; }
.agent-name { font-size: 14px; font-weight: 600; }

.agent-slug {
  font-size: 10px;
  font-family: monospace;
  color: rgba(139, 143, 163, 0.7);
  margin-top: 2px;
}

.status-dot {
  display: inline-flex;
  height: 8px;
  width: 8px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.status-dot-online { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
.status-dot-idle { background: #fbbf24; }
.status-dot-offline { background: rgba(139, 143, 163, 0.4); }

/* Message row */
.message-row {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-left: 16px;
}

.message-priority-bar {
  position: absolute;
  inset: 0;
  width: 2px;
  left: 0;
}

.message-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px;
}

/* Quick actions grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.quick-action-tile:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.06);
}

.quick-action-icon {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.quick-action-icon-default {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted-fg);
}

.quick-action-icon-primary {
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: white;
  box-shadow: 0 4px 12px rgba(124, 91, 240, 0.3);
}

.quick-action-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.quick-action-desc {
  font-size: 10px;
  color: rgba(139, 143, 163, 0.7);
  margin-top: 4px;
}

/* Sprint card */
.sprint-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.sprint-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }

.sprint-card-active {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.1);
}

/* Report card */
.report-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
}

.report-card:hover {
  border-color: rgba(124, 91, 240, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.report-preview {
  height: 140px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), var(--card));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-body { padding: 16px; }

/* Backlog row */
.backlog-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.backlog-row:hover { background: rgba(255, 255, 255, 0.03); }

/* Progress bar */
.progress-bar-track {
  height: 6px;
  border-radius: 9999px;
  background: var(--muted);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* Activity row */
.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.activity-avatar {
  display: flex;
  height: 28px;
  width: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Agent status card (dashboard) */
.agent-status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(24px);
  transition: all 0.3s;
}

.agent-status-card:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.04);
}

/* Utility */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-muted { color: var(--muted-fg); }
.text-primary { color: var(--primary); }
.text-destructive { color: var(--destructive); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-mono { font-family: 'Geist Mono', 'JetBrains Mono', monospace; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.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: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.p-4 { padding: 16px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.w-full { width: 100%; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }

/* Grid helpers */
.grid { display: grid; }
.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); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
