/* --------------------------------------------------
   Admin cards + layout (pairs with forms-dark.css)
   -------------------------------------------------- */

:root {
  color-scheme: dark;

  --bg: #020617;        /* page background */
  --panel: #0b1220;     /* card bg */
  --panel-2: #0f172a;   /* slightly brighter panel */
  --border: #334155;    /* slate border */
  --text: #e5e7eb;      /* main text */
  --muted: #94a3b8;     /* secondary text */
  --link: #93c5fd;      /* link */
  --shadow: 0 15px 35px rgba(0,0,0,.45);

  --btn-bg: #111827;
  --btn-border: #334155;
  --btn-hover: #0b1220;

  --primary: #2563eb;
  --primary-hover: #3b82f6;
}

/* Page base */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

/* Breadcrumbs */
.crumbs {
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--link);
  text-decoration: underline;
}

/* Cards / panels */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.card h1,
.card h2,
.card h3 {
  margin-top: 0;
}

/* Titles */
h1 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

/* Utility text */
.muted,
.hint {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Simple layout helpers */
.grid {
  display: grid;
  gap: 14px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; }
}

/* Top header row inside cards */
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:hover {
  background: var(--btn-hover);
  border-color: #475569;
}

.btn-primary {
  background: var(--primary);
  border-color: #1d4ed8;
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--btn-bg);
}

/* Make buttons look good inside <button> too */
button.btn {
  appearance: none;
}

/* Toolbar container if you want it */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
