/* app.css — the few styles Bootstrap does not already give us. */

/* Make the "hidden" attribute always win, even over Bootstrap's d-flex etc. */
[hidden] { display: none !important; }

.demo-banner {
  background: #fff3cd;
  color: #664d03;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.25rem 0.75rem;
}

/* Keep the content narrow on big screens and clear of the bottom menu. */
.app-main {
  max-width: 720px;
  padding-bottom: 5rem;
}

/* Filter chips scroll sideways on a phone instead of wrapping. */
.chip-row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.chip-row .btn { white-space: nowrap; flex: 0 0 auto; }

/* Booking cards: a coloured edge shows the status at a glance. */
.booking-card { border-left: 4px solid var(--bs-secondary); }
.booking-card.status-requested { border-left-color: var(--bs-warning); }
.booking-card.status-accepted  { border-left-color: var(--bs-info); }
.booking-card.status-ongoing   { border-left-color: var(--bs-primary); }
.booking-card.status-cleared   { border-left-color: var(--bs-success); }
.booking-card.status-declined  { border-left-color: var(--bs-danger); }
.booking-card.status-no_bed    { border-left-color: var(--bs-dark); }

.card-top, .status-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.card-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* Detail screen: label above value on phones, side by side on wider screens. */
.detail-list dt { font-size: 0.8rem; font-weight: 400; color: var(--bs-secondary-color); }
.detail-list dd { margin-bottom: 0.6rem; overflow-wrap: anywhere; }
.detail-list dd:last-child { margin-bottom: 0; }
@media (min-width: 576px) {
  .detail-list { display: grid; grid-template-columns: 11rem 1fr; column-gap: 1rem; }
  .detail-list dt { padding-top: 0.15rem; }
}

/* Audit trail: a simple vertical timeline. */
.trail li {
  border-left: 2px solid var(--bs-border-color);
  padding: 0 0 0.9rem 0.9rem;
  position: relative;
}
.trail li:last-child { padding-bottom: 0; }
.trail li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bs-primary);
}

/* Bottom menu, like a phone app. */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
  z-index: 1030;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 0.8rem 0.25rem;
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
  text-decoration: none;
}
.bottom-nav a.active { color: var(--bs-primary); font-weight: 600; }

.toast-container { bottom: 3.5rem; z-index: 1080; }

/* Admin staff list */
.user-row { border-bottom: 1px solid var(--bs-border-color); padding-bottom: 0.75rem; }
.user-row:last-child { border-bottom: 0; padding-bottom: 0; }

/* Statistics summary on the Admin screen */
.kpi-list { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; row-gap: 0.25rem; }
.kpi-list dt { font-weight: 400; color: var(--bs-secondary-color); }
.kpi-list dd { margin: 0; text-align: right; font-weight: 600; }
