/*
 * Stylesheet der Control-Plane-Seiten.
 *
 * Bewusst als eigene Datei statt inline im <style>: nur so kommt die
 * Content-Security-Policy dieser Seiten ohne 'unsafe-inline' aus.
 */

:root {
  --bg: #0d1117;
  --card: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --blurple: #5865F2;
  --green: #3fb950;
  --amber: #d29922;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 3rem 1rem;
}

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; }

h1 { font-size: 1.5rem; margin: 0 0 .35rem; }
.sub { color: var(--muted); margin: 0 0 2rem; font-size: .9rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1.25rem;
}

.btn {
  display: inline-block;
  background: var(--blurple);
  color: #fff;
  border: 0;
  border-radius: .5rem;
  padding: .7rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .5; cursor: default; filter: none; }

.error {
  background: rgba(248, 81, 73, .1);
  border: 1px solid rgba(248, 81, 73, .4);
  color: #ff7b72;
  border-radius: .5rem;
  padding: .7rem 1rem;
  margin-bottom: 1rem;
  font-size: .9rem;
}

.muted { color: var(--muted); }

.bot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }

.bot {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: .9rem 1rem;
}
.bot.active { border-color: var(--blurple); }
.bot form { margin: 0 0 0 auto; }

.avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #21262d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--muted);
  object-fit: cover;
  flex-shrink: 0;
}

.bot-name { font-weight: 600; }
.bot-meta { font-size: .8rem; color: var(--muted); margin-top: .15rem; }

.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; margin-right: .35rem; }
.dot.on { background: var(--green); }
.dot.off { background: var(--muted); }
.dot.warn { background: var(--amber); }

.empty-hint { margin: .5rem 0 0; font-size: .9rem; }
.no-margin { margin: 0; }
