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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
  background: #0d1117;
  color: #c9d1d9;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

header {
  border-bottom: 1px solid #21262d;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

h1 { color: #f0f6fc; font-size: 24px; }
.subtitle { color: #8b949e; font-size: 14px; margin-top: 4px; }

#status-bar {
  margin-top: 8px;
  font-size: 12px;
  color: #8b949e;
}

#auth-section {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

input, select, button {
  background: #161b22;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}

button {
  cursor: pointer;
  background: #21262d;
}

button:hover { background: #30363d; }

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid #21262d;
  padding-bottom: 8px;
}

.tab {
  border: none;
  background: transparent;
  color: #8b949e;
  padding: 8px 16px;
  border-radius: 6px 6px 0 0;
}

.tab.active {
  color: #f0f6fc;
  background: #21262d;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.task-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.task-card:hover { border-color: #388bfd; }

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

.task-id { color: #8b949e; font-size: 12px; }

.task-status {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-pending { background: #1f2937; color: #9ca3af; }
.status-running { background: #1e3a5f; color: #58a6ff; }
.status-completed { background: #0d2818; color: #3fb950; }
.status-failed { background: #3d1418; color: #f85149; }
.status-cancelled { background: #2d1f00; color: #d29922; }

.task-prompt {
  font-family: monospace;
  font-size: 13px;
  color: #e6edf3;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-meta {
  font-size: 12px;
  color: #8b949e;
  display: flex;
  gap: 12px;
}

.project-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 8px;
}

.project-name { color: #58a6ff; font-size: 16px; font-weight: 600; }
.project-desc { color: #8b949e; font-size: 13px; margin-top: 4px; }
.project-path { font-family: monospace; font-size: 12px; color: #6e7681; margin-top: 4px; }

#task-detail { background: #161b22; border-radius: 8px; padding: 20px; }
#back-btn { margin-bottom: 16px; }

.detail-section { margin-top: 16px; }
.detail-section h3 { color: #f0f6fc; font-size: 14px; margin-bottom: 8px; }

.log-entry {
  font-family: monospace;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid #21262d;
}

.log-type { color: #58a6ff; }
.log-time { color: #6e7681; }

pre {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
  font-size: 13px;
}
