/* Mission Control Dashboard */

:root {
  --bg: #0a0e17;
  --surface: #111827;
  --surface-2: #1f2937;
  --primary: #3b82f6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #f3f4f6;
  --text-2: #9ca3af;
  --border: #1f2937;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: var(--surface);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}

header h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.subtitle { color: var(--text-2); font-size: 0.9rem; }

nav {
  background: var(--surface-2);
  padding: 0.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

nav a {
  color: var(--primary);
  text-decoration: none;
  margin-right: 1.5rem;
  font-weight: 500;
}

main {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

h2 { margin-bottom: 1rem; color: var(--text); }

/* Agent Status Grid */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.agent-card h3 {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.status-running { background: var(--success); }
.status-stopped { background: var(--danger); }

.agent-info {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}

/* Kanban Boards */
.kanban-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  overflow-x: auto;
}

.kanban-column {
  background: var(--surface);
  border-radius: 8px;
  padding: 1rem;
  min-width: 300px;
}

.kanban-column h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid;
}

.priority-p0 { border-color: var(--danger); }
.priority-p1 { border-color: var(--warning); }
.priority-p2 { border-color: var(--primary); }
.priority-p3 { border-color: var(--text-2); }
.priority-p4 { border-color: var(--surface-2); }

.task-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.task-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.task-meta {
  font-size: 0.8rem;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-todo { background: var(--surface-2); color: var(--text); }
.status-inprogress { background: var(--primary); color: white; }
.status-blocked { background: var(--danger); color: white; }
.status-review { background: #f59e0b; color: white; }
.status-done { background: var(--success); color: white; }

.assignee {
  color: var(--primary);
}

/* Logs Panel */
#logs-panel {
  margin-top: 2rem;
  background: var(--surface);
  border-radius: 8px;
  padding: 1rem;
}

.log-lines {
  background: #000;
  color: #0f0;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.8rem;
  padding: 1rem;
  border-radius: 6px;
  height: 500px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.log-line { margin-bottom: 0.25rem; }

/* Metrics */
#metrics {
  margin-top: 2rem;
  background: var(--surface);
  border-radius: 8px;
  padding: 1rem;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.metric-item:last-child { border-bottom: none; }
.metric-value { font-weight: bold; color: var(--primary); }

/* Loading */
.loading { color: var(--text-2); font-style: italic; }