/* Jolt Dance — mobile-first, hand-rolled. Brand purple from the old app. */
:root {
  --brand: rgb(99, 46, 103);
  --brand-hover: rgb(140, 42, 99);
  --bg: #fff;
  --text: #222;
  --line: #ddd;
  --yes: rgb(144, 238, 144);
  --no: pink;
}

* { box-sizing: border-box; }

body {
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  font-size: 16px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 3px solid var(--brand);
}
.logo { max-height: 48px; display: block; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}
.site-nav a {
  color: var(--brand);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 10px;
  border-radius: 8px;
}
.site-nav a.active, .site-nav a:hover { background: var(--brand); color: #fff; }
.nav-spacer { flex: 1; }

main { padding: 12px; max-width: 900px; margin: 0 auto; }

h2 { margin-top: 8px; }
h2 small { font-weight: normal; font-size: 0.7em; color: #555; }

/* touch-friendly buttons, the old .mybutton look */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 100px;
  min-height: 48px;
  padding: 6px 18px;
  border: none;
  border-radius: 15px;
  background: var(--brand);
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .btn:focus { background: var(--brand-hover); }
.btn.secondary { background: #666; }
.btn.secondary:hover { background: #444; }
.btn.danger { background: #a33; }
.btn.small { min-height: 34px; min-width: 0; padding: 2px 12px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

/* forms */
form.stack { display: flex; flex-direction: column; gap: 10px; }
form.stack.narrow, .narrow { max-width: 420px; }
form.stack label { display: flex; flex-direction: column; gap: 4px; font-weight: bold; }
form.stack input[type=text], form.stack input[type=email],
form.stack input[type=password], form.stack input[type=date],
form.stack input[type=time], form.stack input[type=number],
form.stack input:not([type]), form.stack select, form.stack textarea {
  font-size: 16px;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 8px;
  font-family: inherit;
  font-weight: normal;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
legend { font-weight: bold; color: var(--brand); padding: 0 6px; }
.radio-row { display: flex; gap: 18px; }
.radio-row label { flex-direction: row; align-items: center; gap: 6px; }
label.agree { display: flex; flex-direction: row; gap: 8px; align-items: baseline; font-weight: bold; }

/* tables */
table { border-collapse: collapse; width: 100%; margin: 10px 0; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--brand); }
tr.selected_row { background: #f3e8f4; }
td a { color: var(--brand); font-weight: bold; }

.yes { background: var(--yes); }
.no { background: var(--no); }

.error { color: #a00; font-weight: bold; }
.warning { color: #a00; font-style: italic; }
.flash {
  background: var(--yes);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: bold;
}
.notice {
  border-left: 4px solid var(--brand);
  background: #f7f0f8;
  padding: 10px;
  margin: 8px 0;
  white-space: pre-wrap;
}

.muted { color: #777; }
img.dancer-photo { max-width: 200px; max-height: 260px; border-radius: 10px; }

@media (min-width: 700px) {
  fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  fieldset legend { grid-column: 1 / -1; }
  fieldset label:has(textarea), fieldset .radio-row, fieldset > label.wide { grid-column: 1 / -1; }
}
