/*
 * The live hall diagram on the login screens.
 * Markup: app/Views/pages/auth/partials/_floorplan.php
 * Behaviour: common/js/auth/floorplan.js
 *
 * Both login screens draw the same card over very different panels, so every
 * colour resolves through a custom property. Defaults land on :root so a page
 * can override them on any ancestor of .fp — a default declared on .fp itself
 * would outrank an inherited override and quietly win.
 */
:root {
  --fp-accent: #0369a1;
  --fp-accent-rgb: 3, 105, 161;
  --fp-ink-rgb: 246, 244, 239;
  --fp-success: #7bd389;
}

.fp {
  position: relative;
  width: min(340px, 100%);
  border: 1px solid rgba(var(--fp-ink-rgb), .16);
  border-radius: 14px;
  background: rgba(var(--fp-ink-rgb), .03);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fp-caption {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(var(--fp-ink-rgb), .5);
}

.fp-stage {
  height: 8px;
  border-radius: 4px;
  background: rgba(var(--fp-ink-rgb), .22);
}

.fp-blocks {
  display: flex;
  gap: 18px;
}

.fp-block {
  display: grid;
  grid-template-columns: repeat(4, 9px);
  gap: 6px;
}

.fp-seat {
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  background: rgba(var(--fp-ink-rgb), .13);
  transition: background-color .5s ease, box-shadow .5s ease;
}

.fp-seat.is-on {
  background: var(--fp-accent);
  box-shadow: 0 0 9px rgba(var(--fp-accent-rgb), .7);
}

.fp-scanning {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: rgba(var(--fp-ink-rgb), .55);
}

.fp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fp-success);
  flex: none;
}

.fp-dot-pulse {
  animation: fp-pulse 2s ease-in-out infinite;
}

@keyframes fp-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(123, 211, 137, .18); }
  50%      { box-shadow: 0 0 0 8px rgba(123, 211, 137, .18); }
}

@media (prefers-reduced-motion: reduce) {
  .fp-dot-pulse {
    animation: none;
  }

  .fp-seat {
    transition: none;
  }
}
