:root {
  --bg: #0f172a;
  --card: #111827;
  --muted: #9ca3af;
  --fg: #e5e7eb;
  --accent: #22c55e;
  --danger: #ef4444;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px circle at 5% 5%, #0b1025, #0a0f23 40%, #070c1a 80%);
  color: var(--fg);
}

header {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 10;
}

.container { max-width: 1080px; margin: 0 auto; padding: 16px; }

nav a {
  color: var(--fg);
  text-decoration: none;
  margin-right: 16px;
  padding: 8px 10px;
  border-radius: 8px;
}
nav a.active, nav a:hover { background: #1f2937; }

h1, h2 { margin: 12px 0; }
h2 { color: #cbd5e1; font-size: 1.1rem; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 16px;
}

.muted { color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th, td { border-bottom: 1px solid #1f2937; padding: 8px; text-align: left; }
th { color: #cbd5e1; font-weight: 600; }

input, select, textarea, button {
  background: #0b1220;
  color: var(--fg);
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 8px 10px;
}
input::placeholder, textarea::placeholder { color: #6b7280; }
button { cursor: pointer; }
button.primary { background: #16a34a; border-color: #16a34a; }
button.danger { background: #dc2626; border-color: #dc2626; }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }
.right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.tag { background: #0b1220; border: 1px solid #1f2937; padding: 4px 8px; border-radius: 999px; font-size: 12px; }

.stat { font-size: 1.4rem; font-weight: 700; }
.success { color: #4ade80; }
.warn { color: #fbbf24; }
.error { color: #f87171; }

a.link { color: #60a5fa; text-decoration: none; }
a.link:hover { text-decoration: underline; }

.hr { height: 1px; background: #1f2937; border: 0; margin: 16px 0; }

.inline-form { display: inline; }


