:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --danger: #f87171;
  --ok: #4ade80;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #334155;
  text-align: center;
}

header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
}

header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem;
}

.card {
  background: var(--panel);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

button {
  font: inherit;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

button.secondary {
  background: transparent;
  border: 1px solid #475569;
  color: var(--text);
}

input, textarea, select {
  font: inherit;
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #0f172a;
  color: var(--text);
  margin-bottom: 0.75rem;
}

/* Checkboxes/radios shouldn't inherit the full-width text-input styling
   above - that was stretching each checkbox across the whole row and
   shoving its label off to the side. */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  flex-shrink: 0;
  margin-bottom: 0;
  accent-color: var(--accent);
}

.class-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
}

.status-item {
  border-bottom: 1px solid #334155;
  padding: 0.75rem 0;
}

.status-item:last-child { border-bottom: none; }

.status-item .time {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pill.ok { background: rgba(74, 222, 128, 0.15); color: var(--ok); }
.pill.warn { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.pill.muted { background: rgba(148, 163, 184, 0.15); color: var(--muted); }

.msg {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.msg.error { color: var(--danger); }
.msg.success { color: var(--ok); }

a { color: var(--accent); }

.top-link {
  text-align: center;
  margin-bottom: 1rem;
}
