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

:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f8fafc;
  --text2: #94a3b8;
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --danger: #ef4444;
  --ok: #10b981;
  --border: #334155;
}

body {
  font-family: -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  line-height: 1.6;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
  margin-bottom: 1.5rem;
}

.card.wide { max-width: 760px; }

h1 { font-size: 1.4rem; margin-bottom: .5rem; }
h2 { font-size: 1.1rem; margin: 1.2rem 0 .6rem; color: var(--accent2); }
p.sub { color: var(--text2); margin-bottom: 1.5rem; font-size: .92rem; }

label { display: block; font-size: .85rem; color: var(--text2); margin: .8rem 0 .3rem; }

input[type=text], input[type=password], textarea, select {
  width: 100%;
  padding: .65rem .8rem;
  background: rgba(15,23,42,.6);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
}
textarea { min-height: 260px; resize: vertical; font-family: 'Courier New', monospace; }

button, .btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: .7rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button:hover, .btn:hover { background: var(--accent2); }
.btn.danger, button.danger { background: var(--danger); }
.btn.ghost, button.ghost { background: transparent; border: 1px solid var(--border); color: var(--text2); }

.error { background: rgba(239,68,68,.15); border: 1px solid var(--danger); color: #fecaca; padding: .7rem .9rem; border-radius: 6px; margin-bottom: 1rem; font-size: .9rem; }
.ok { background: rgba(16,185,129,.15); border: 1px solid var(--ok); color: #a7f3d0; padding: .7rem .9rem; border-radius: 6px; margin-bottom: 1rem; font-size: .9rem; }

table { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .88rem; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--text2); font-weight: 600; }

.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.row-actions form { display: inline; }
.row-actions button { margin-top: 0; padding: .35rem .6rem; font-size: .8rem; }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.topbar a { color: var(--text2); font-size: .85rem; text-decoration: none; }
.topbar a:hover { color: var(--accent2); }

.badge { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; background: rgba(59,130,246,.2); color: var(--accent2); }
.badge.mod { background: rgba(16,185,129,.2); color: #6ee7b7; }

.muted { color: var(--text2); font-size: .85rem; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.3rem 0; }
code { background: rgba(15,23,42,.6); padding: .1rem .4rem; border-radius: 4px; font-size: .85em; }
