* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #0f1115;
  color: #e6e6e6;
  margin: 0;
}
header {
  background: #161a22;
  padding: 14px 24px;
  border-bottom: 1px solid #2a2f3a;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.brand {
  color: #7cc4ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  justify-self: start;
}
.header-spacer {
  justify-self: end;
}
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.nav-pill {
  color: #cfe8ff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 999px;
  background: #1d2230;
  border: 1px solid #2a2f3a;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.nav-pill:hover {
  background: #24304a;
  border-color: #3b7dd8;
  transform: translateY(-1px);
}
.nav-donate {
  color: #d8f5df;
  background: linear-gradient(135deg, #1e5c3a, #237a4a);
  border-color: #2e8f57;
}
.nav-donate:hover {
  background: linear-gradient(135deg, #237a4a, #2a9660);
  border-color: #3fb372;
}
.table-scroll {
  overflow-x: auto;
}
.example {
  margin-bottom: 18px;
}
.example-title {
  font-weight: 600;
  color: #f0f0f0;
  margin-bottom: 4px;
}
.code-block {
  background: #0f1115;
  border: 1px solid #2a2f3a;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: pre;
}
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}
h1, h2, h3 { color: #f0f0f0; }
.panel {
  background: #161a22;
  border: 1px solid #2a2f3a;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}
.sidebar ul { list-style: none; padding-left: 0; }
.sidebar li { padding: 4px 0; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
input[type="text"] {
  background: #0f1115;
  border: 1px solid #2a2f3a;
  color: #e6e6e6;
  padding: 8px 10px;
  border-radius: 6px;
}
textarea {
  width: 100%;
  background: #0f1115;
  color: #e6e6e6;
  border: 1px solid #2a2f3a;
  border-radius: 6px;
  padding: 10px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
}
button {
  background: #3b7dd8;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
button.danger { background: #c0392b; }
button:hover { opacity: 0.9; }
a { color: #7cc4ff; }
a.secondary { font-size: 0.85rem; margin-left: 10px; }
.db-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid #2a2f3a;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0 16px;
}
th, td {
  border: 1px solid #2a2f3a;
  padding: 6px 10px;
  text-align: left;
  font-size: 0.9rem;
}
th { background: #1d2230; }
.result { margin-bottom: 14px; }
.result-error { border-left: 3px solid #c0392b; padding-left: 10px; }
.stmt code {
  color: #9fd3ff;
  font-size: 0.85rem;
}
.error { color: #ff8a80; margin-top: 4px; }
.info { color: #8bd39a; margin-top: 4px; }
.muted { color: #888; }
.flashes { margin-bottom: 16px; }
.flash {
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.flash-success { background: #1e3a2a; color: #8bd39a; }
.flash-error { background: #3a1e1e; color: #ff8a80; }
