/* Florida MVP Events — admin portal styles */
:root {
  --navy: #0b2545;
  --navy-light: #13315c;
  --accent: #d4a017;       /* gold */
  --accent-dark: #b8860b;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1a2233;
  --muted: #6b7686;
  --border: #d9dee7;
  --ok: #1e7e34;
  --warn: #b8860b;
  --err: #c0392b;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(11, 37, 69, 0.12), 0 4px 16px rgba(11, 37, 69, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--navy-light); }

/* ---------- Login page ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
}
.login-card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
}
.login-card h1 {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--navy);
}
.login-card .sub {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .brand { font-weight: 700; font-size: 16px; letter-spacing: 0.3px; }
.topbar .brand .gold { color: var(--accent); }
.topbar .who { font-size: 13px; color: #c7d0de; }
.topbar .who button { margin-left: 14px; }

/* ---------- Layout ---------- */
.shell { max-width: 980px; margin: 0 auto; padding: 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 20px;
}
.card h2 {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--navy);
}
.card h3 { margin: 18px 0 8px; font-size: 14px; color: var(--navy); }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- Forms ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 5px; }
label:first-of-type { margin-top: 0; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(19, 49, 92, 0.12);
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  transition: background 0.15s;
}
button:hover { background: var(--navy-light); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.gold { background: var(--accent-dark); }
button.gold:hover { background: var(--accent); }
button.ghost { background: transparent; color: var(--navy); border: 1px solid var(--border); }
button.ghost:hover { background: var(--bg); }
button.danger { background: var(--err); }
button.sm { padding: 6px 12px; font-size: 13px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.4px; }
tr:last-child td { border-bottom: none; }

/* ---------- Misc ---------- */
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tag.ok { background: #e3f4e8; color: var(--ok); }
.tag.warn { background: #fbf1d9; color: var(--warn); }
.tag.err { background: #fbe4e2; color: var(--err); }
.tag.muted { background: #eceff3; color: var(--muted); }

.notice {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin: 12px 0;
}
.notice.ok { background: #e3f4e8; color: var(--ok); }
.notice.err { background: #fbe4e2; color: var(--err); }
.notice.warn { background: #fbf1d9; color: #8a6400; }
.notice.info { background: #e7eef8; color: var(--navy-light); }
.hidden { display: none !important; }

.kv { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.kv:last-child { border-bottom: none; }
.kv .v { font-weight: 700; }

.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row > div { flex: 1; min-width: 200px; }

.pill-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.pill-toggle button {
  background: #fff; color: var(--navy); border-radius: 0; padding: 8px 16px;
}
.pill-toggle button.active { background: var(--navy); color: #fff; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(11, 37, 69, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 50;
}
.modal {
  background: #fff; border-radius: 12px; padding: 26px; max-width: 460px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.modal h3 { margin: 0 0 14px; color: var(--navy); }

.progress-bar { background: var(--bg); border-radius: 999px; height: 10px; overflow: hidden; margin: 10px 0; }
.progress-bar > div { background: var(--accent-dark); height: 100%; width: 0; transition: width 0.3s; }

.small-print { font-size: 12px; color: var(--muted); margin-top: 8px; }
