/* admin-page.css — styles for the /basketball/admin/ landing dashboard. */

.wrap { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
.card {
  background: var(--surface, #fff);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border, #e4e7ec);
  margin-bottom: 1rem;
}
/* Button rules now live in admin-shared.css; this file no longer
   redefines them so all admin pages stay in sync. */

/* "Create a new run" row: input + help + button laid out as a single
   left-aligned flex row so the Create button sits flush-left like the
   Master Dashboard button in its own card. */
.create-run-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.create-run-row input { flex: 0 1 240px; }
input, select {
  padding: 0.5rem;
  border: 1px solid var(--border, #e4e7ec);
  border-radius: 6px;
  font-size: 1rem;
  margin: 0.25rem;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5rem; text-align: left; border-bottom: 1px solid var(--border, #e4e7ec); }
.muted { color: var(--muted, #596575); font-size: 0.9rem; }
.token-box {
  background: var(--bg, #f8f9fa);
  padding: 0.75rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  word-break: break-all;
  margin: 0.5rem 0;
}
.msg { padding: 0.75rem; border-radius: 6px; margin: 1rem 0; }
.msg-ok { background: #d4edda; color: #155724; }
.msg-err { background: #f8d7da; color: #721c24; }
.msg-warn { background: #fff3cd; color: #856404; }
details summary { padding: 0.5rem 0; font-weight: 600; }
details[open] summary { margin-bottom: 0.5rem; }

/* Help popover */
.help {
  cursor: pointer;
  color: var(--muted, #596575);
  border: 1px solid var(--border, #e4e7ec);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  user-select: none;
}
.help:hover {
  background: var(--primary, #0096cc);
  color: #fff;
  border-color: var(--primary, #0096cc);
}
.help-popover {
  position: absolute;
  z-index: 1000;
  background: #1a2028;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  max-width: 280px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: normal;
}
