/* Staff admin page — builds on styles.css (palette, .btn, .modal, .bk-* helpers) */

[hidden] {
  display: none !important;
}

body.admin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header .logo img {
  height: 56px;
}

.admin-header {
  gap: 24px;
}

.back-link {
  color: #7a7376;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #c98a90;
}

.admin-nav {
  gap: 28px;
  margin-left: auto;
}

.admin-nav .btn-link {
  margin-right: 0;
  font-size: 1rem;
  color: #2b2b2e;
}

.admin-nav .btn-link:hover {
  color: #c98a90;
}

.admin-user {
  font-size: 0.9rem;
  color: #7a7376;
}

.admin-main {
  flex: 1;
  padding: 48px 40px 80px;
}

/* ---- auth cards (login, MFA, reset) */

.auth-card {
  max-width: 440px;
  margin: 40px auto 0;
  background-color: #ffffff;
  padding: 40px;
  border-top: 3px solid #c9a96e;
}

.auth-card h2,
.settings-card h2 {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 800;
  font-size: 1.7rem;
  margin-bottom: 20px;
  -webkit-text-stroke: 0.3px currentColor;
}

.auth-card label,
.settings-card label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.auth-card .optional,
.settings-card .optional {
  font-weight: 400;
  color: #7a7376;
}

.auth-card input,
.settings-card input {
  width: 100%;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #2b2b2e;
  background-color: #f7f4f2;
  border: 1px solid #e6e3e1;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.auth-card input:focus,
.settings-card input:focus {
  outline: none;
  border-color: #c9a96e;
}

.auth-card input[inputmode="numeric"] {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-align: center;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.auth-note {
  font-size: 0.9rem;
  color: #7a7376;
  margin-bottom: 18px;
  line-height: 1.6;
}

.auth-note code {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  word-break: break-all;
  color: #2b2b2e;
  user-select: all;
}

.turnstile {
  margin-bottom: 18px;
}

.turnstile:empty {
  display: none;
}

.enrol-open {
  margin-bottom: 14px;
}

.enrol-open .btn {
  display: block;
  text-align: center;
}

.copy-key {
  display: inline;
  margin: 0 0 0 8px;
  font-size: 0.85rem;
  color: #c98a90;
}

.qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.qr-wrap img {
  display: block;
  background: #ffffff;
  padding: 8px;
  border: 1px solid #e6e3e1;
}

/* ---- schedule */

.schedule-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-bottom: 32px;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-btn {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  background-color: #ffffff;
  border: 1px solid #e6e3e1;
  color: #2b2b2e;
  padding: 8px 14px;
  cursor: pointer;
}

.date-btn:hover {
  border-color: #c98a90;
  color: #c98a90;
}

#date-input {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.95rem;
  color: #2b2b2e;
  background-color: #ffffff;
  border: 1px solid #e6e3e1;
  padding: 7px 10px;
  margin-left: 6px;
}

.schedule h2 {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 800;
  font-size: 1.6rem;
  -webkit-text-stroke: 0.3px currentColor;
}

.tech-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.tech-tabs button {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.9rem;
  background: none;
  border: 1px solid #e6e3e1;
  color: #7a7376;
  padding: 7px 14px;
  cursor: pointer;
}

.tech-tabs button.active {
  background-color: #e8b4b8;
  border-color: #e8b4b8;
  color: #2b2b2e;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: start;
}

.column-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid #c9a96e;
}

.column-head h3 {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 800;
  font-size: 1.15rem;
  -webkit-text-stroke: 0.3px currentColor;
}

.column-head span {
  font-size: 0.85rem;
  color: #7a7376;
}

.booking-card {
  display: block;
  width: 100%;
  text-align: left;
  font-family: 'Lato', Arial, sans-serif;
  background-color: #ffffff;
  border: none;
  border-left: 3px solid #e8b4b8;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  color: #2b2b2e;
  transition: border-color 0.2s ease;
}

.booking-card:hover {
  border-left-color: #c98a90;
}

.booking-card.completed {
  border-left-color: #c9a96e;
}

.booking-card.cancelled {
  border-left-color: #e6e3e1;
  color: #7a7376;
}

.booking-card.cancelled .booking-name {
  text-decoration: line-through;
}

.booking-time {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7376;
  margin-bottom: 4px;
}

.booking-name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

.booking-service {
  display: block;
  font-size: 0.92rem;
  color: #4a4548;
  margin-top: 2px;
}

.booking-status {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c98a90;
}

.column-empty {
  font-size: 0.9rem;
  color: #7a7376;
  padding: 10px 0;
}

/* ---- booking detail modal */

.detail-panel {
  max-width: 480px;
}

.detail-panel h2 {
  overflow-wrap: anywhere;
  padding-right: 24px;
}

.detail-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 24px;
  font-size: 1rem;
  line-height: 1.6;
}

.detail-list dt {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a7376;
  padding-top: 3px;
}

.detail-list dd {
  color: #2b2b2e;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.detail-list a {
  color: #c98a90;
  font-weight: 700;
  text-decoration: none;
}

.detail-list a:hover {
  text-decoration: underline;
}

/* ---- settings */

.settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.settings-card {
  background-color: #ffffff;
  padding: 36px;
  border-top: 3px solid #c9a96e;
}

.factor-list {
  list-style: none;
  margin-bottom: 12px;
}

.factor-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e6e3e1;
  font-size: 0.95rem;
}

.factor-list li:last-child {
  border-bottom: 0;
}

.factor-list .btn-link {
  margin-right: 0;
  color: #b0413e;
}

@media (max-width: 640px) {
  .admin-main {
    padding: 24px 16px 60px;
  }

  .admin-header .logo img {
    height: 40px;
  }

  .admin-nav {
    gap: 14px;
  }

  .admin-nav .btn-link {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .back-link {
    font-size: 0.85rem;
  }

  .admin-user {
    display: none;
  }

  .auth-card {
    padding: 28px 20px;
    margin-top: 12px;
  }

  .schedule-bar {
    gap: 14px;
  }

  .schedule h2 {
    font-size: 1.3rem;
    width: 100%;
  }

  .tech-tabs {
    margin-left: 0;
  }

  .settings-card {
    padding: 28px 20px;
  }

  /* Phones: lead with the app button, tuck the QR away */
  .qr-wrap,
  .enrol-or {
    display: none;
  }
}
