/* Pinnacle check-in — minimal styling, matches the screenshot.
   Mobile-first; the card stays narrow on desktop so it looks consistent
   whether volunteers use phones or laptops. */

:root {
  --maroon: #7c1d3f;
  --maroon-hover: #621531;
  --grey-bg: #1f1f1f;
  --grey-border: #d8d8d8;
  --grey-text: #6b6b6b;
  --grey-subtle: #efefef;
  --green: #2e7d4f;
  --red: #b3261e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: var(--grey-bg);
  color: #111;
  -webkit-font-smoothing: antialiased;
}

/* Top bar — dark strip with the page title, like the screenshot */
.topbar {
  color: #d4d4d4;
  font-size: 14px;
  padding: 14px 18px;
  background: var(--grey-bg);
}

/* White card that holds the actual UI */
.card {
  background: #fff;
  max-width: 440px;
  margin: 0 auto;
  min-height: calc(100vh - 50px);
  padding: 20px 18px 80px;
}

/* Desktop: lift the card off the dark background so it doesn't look
   like a tiny island in a void. Widen, add breathing room and shadow. */
@media (min-width: 640px) {
  html, body { background: #ececec; }
  .card {
    max-width: 620px;
    min-height: auto;
    margin: 28px auto 60px;
    padding: 28px 32px 48px;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  }
}

/* Back arrow row */
.back-row {
  border-bottom: 1px solid var(--grey-subtle);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.back-row a {
  color: #111;
  text-decoration: none;
  font-size: 22px;
  display: inline-block;
}

/* Search input */
.search {
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--grey-border);
  font-size: 15px;
  outline: none;
}
.search:focus { border-color: #999; }

/* Counter */
.count {
  text-align: center;
  margin: 22px 0 6px;
  font-size: 30px;
  font-weight: 700;
}
.count-label {
  text-align: center;
  color: var(--grey-text);
  font-size: 14px;
  margin-bottom: 18px;
}

/* Attendee list */
.list { list-style: none; padding: 0; margin: 0; }
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--grey-subtle);
}
.row .name-block { flex: 1; min-width: 0; }
.row .name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .type {
  font-size: 12px;
  color: var(--grey-text);
  margin-top: 2px;
  text-transform: capitalize;
}

/* Check-in button */
.btn-checkin {
  background: var(--maroon);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-width: 90px;
}
.btn-checkin:hover { background: var(--maroon-hover); }
.btn-checkin.checked {
  background: var(--green);
}

/* Icon button (delete) */
.icon-btn {
  background: none;
  border: 1px solid var(--grey-border);
  border-radius: 5px;
  padding: 6px 8px;
  cursor: pointer;
  color: #555;
  font-size: 14px;
  line-height: 1;
}
.icon-btn:hover { background: var(--grey-subtle); color: var(--red); }

/* Add walk-in section */
.walkin-add {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--grey-subtle);
}
.walkin-add summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--maroon);
  list-style: none;
  padding: 6px 0;
}
.walkin-add summary::-webkit-details-marker { display: none; }
.walkin-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}
.walkin-form input,
.walkin-form select {
  padding: 10px 12px;
  border: 1px solid var(--grey-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.walkin-form button {
  background: var(--maroon);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.walkin-form button:hover { background: var(--maroon-hover); }

/* Status / error messages */
.status {
  text-align: center;
  font-size: 13px;
  color: var(--grey-text);
  padding: 10px;
}
.status.error { color: var(--red); }

/* ---- Admin page ---- */

.admin-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--grey-subtle);
}
.admin-section h2 {
  font-size: 16px;
  margin: 0 0 10px;
}
.admin-section p {
  font-size: 13px;
  color: var(--grey-text);
  margin: 0 0 12px;
}

.btn-primary {
  background: var(--maroon);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { background: var(--maroon-hover); }
.btn-primary:disabled { background: #aaa; cursor: not-allowed; }

.btn-danger {
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-danger:hover { background: #fdecec; }

input[type="file"] { font-size: 13px; }

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}
.preview-table th,
.preview-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--grey-subtle);
}
.preview-table th { background: var(--grey-subtle); font-weight: 600; }

.row-error { color: var(--red); }
