/* Claude Control — Command Center Dashboard */

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

body {
  background: #0f172a;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #3b82f6;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timestamp {
  font-size: 12px;
  color: #64748b;
}

.btn-icon {
  background: none;
  border: 1px solid #334155;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: #334155;
  color: #e2e8f0;
}

/* Blockers bar */
.blockers-bar {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #334155;
  transition: background 0.3s;
}

.blockers-bar.clear {
  background: #064e3b;
  color: #6ee7b7;
}

.blockers-bar.active {
  background: #7f1d1d;
  color: #fca5a5;
}

/* Main grid */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  padding: 16px 24px;
  gap: 24px;
}

.left-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.right-col {
  display: flex;
  flex-direction: column;
}

/* Sections */
.section {
  background: #1e293b;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #334155;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #64748b;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.full-width {
  margin: 0 24px 16px;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.agent-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  transition: box-shadow 0.3s, border-color 0.3s;
  min-height: 100px;
}

.agent-card.status-active {
  border-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}

.agent-card.status-review {
  border-color: #eab308;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.15);
}

.agent-card.status-blocked {
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.agent-card.status-queued {
  border-color: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.1);
}

.agent-card.status-idle {
  border-color: #334155;
  opacity: 0.6;
}

.agent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.agent-name {
  font-size: 14px;
  font-weight: 700;
}

.agent-emoji {
  font-size: 18px;
}

.agent-role {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
}

.agent-task {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.agent-project {
  font-size: 10px;
  font-weight: 600;
  color: #3b82f6;
  margin-top: 4px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.status-dot.active { background: #22c55e; }
.status-dot.review { background: #eab308; }
.status-dot.blocked { background: #ef4444; animation: pulse-red 1.5s infinite; }
.status-dot.queued { background: #3b82f6; }
.status-dot.idle { background: #475569; }

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.agent-status {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 6px;
}

.agent-status.active { color: #22c55e; }
.agent-status.review { color: #eab308; }
.agent-status.blocked { color: #ef4444; }
.agent-status.queued { color: #3b82f6; }
.agent-status.idle { color: #475569; }

/* Projects row */
.projects-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.project-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 160px;
  flex-shrink: 0;
}

.project-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.project-stat {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.6;
}

.project-stat .count {
  font-weight: 700;
}

.project-stat .count.active { color: #22c55e; }
.project-stat .count.blocked { color: #ef4444; }
.project-stat .count.review { color: #eab308; }

/* Jimmy's tasks */
.tasks-section {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.task-input-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.task-input-row input[type="text"] {
  background: #0f172a;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.task-input-row input[type="text"]:focus {
  border-color: #3b82f6;
}

#task-input {
  flex: 1;
}

.task-project-input {
  width: 80px;
}

.btn-add {
  background: #3b82f6;
  color: white;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-add:hover {
  background: #2563eb;
}

.task-list {
  flex: 1;
  overflow-y: auto;
  max-height: 420px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid #1e293b;
  transition: opacity 0.2s;
}

.task-item.done {
  opacity: 0.4;
}

.task-item.done .task-text {
  text-decoration: line-through;
}

.task-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #3b82f6;
  flex-shrink: 0;
}

.task-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
}

.task-tag {
  font-size: 10px;
  background: #334155;
  color: #94a3b8;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.task-delete {
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.task-delete:hover {
  color: #ef4444;
}

/* Activity list */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  font-size: 13px;
  border-radius: 4px;
}

.activity-item:hover {
  background: #0f172a;
}

.activity-icon {
  flex-shrink: 0;
}

.activity-assignee {
  font-weight: 600;
  color: #e2e8f0;
  min-width: 70px;
}

.activity-title {
  flex: 1;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-time {
  color: #475569;
  font-size: 11px;
  flex-shrink: 0;
}

/* Kanban embed */
.kanban-section {
  margin-bottom: 24px;
}

.kanban-frame-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #334155;
}

.kanban-iframe {
  width: 100%;
  height: 60vh;
  background: #0f172a;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Loading state */
.loading {
  color: #475569;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* Empty state */
.empty-state {
  color: #475569;
  font-size: 13px;
  text-align: center;
  padding: 30px 10px;
  font-style: italic;
}
