* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1117;
  color: #e6e6e6;
}
header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #232633;
}
header h1 { margin: 0; font-size: 20px; flex: 1; }
.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #232633;
  color: #aab;
}
.badge.online { background: #1e3a2b; color: #6fdc8c; }
.badge.error { background: #3a1e1e; color: #dc6f6f; }
main { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.agent-card {
  border: 1px solid #232633;
  border-radius: 10px;
  overflow: hidden;
}
.agent-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #161925;
}
.agent-card-header h2 { margin: 0; font-size: 16px; flex: 1; }
.agent-card-header .url { color: #8b93a7; font-size: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 18px; border-bottom: 1px solid #1f2230; font-size: 14px; }
th { color: #9097ab; font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; }
tr:hover td { background: #1a1d2b; }
.status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  text-transform: capitalize;
}
.status-online { background: #1e3a2b; color: #6fdc8c; }
.status-stopped { background: #2a2d3a; color: #aab; }
.status-crashed, .status-errored { background: #3a1e1e; color: #dc6f6f; }
button {
  background: #232633;
  border: 1px solid #2f3344;
  color: #e6e6e6;
  border-radius: 6px;
  padding: 6px 12px;
  margin-right: 6px;
  cursor: pointer;
  font-size: 12px;
}
button:hover { background: #2f3344; }
button.active { background: #3a4a6b; border-color: #4f6491; }
button.danger:hover { background: #3a1e1e; border-color: #5b2b2b; }
button[disabled] { opacity: 0.4; cursor: not-allowed; }
#logs-panel { margin: 0 24px 24px; }
.logs-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#log-output {
  background: #05060a;
  border: 1px solid #232633;
  border-radius: 8px;
  padding: 16px;
  height: 320px;
  overflow-y: auto;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}
.empty { padding: 32px; text-align: center; color: #6b7280; }
code {
  background: #05060a;
  border: 1px solid #232633;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
}
