/* scanner-style.css — styling specific to the scanner page.
   Reuses tokens from /static/style.css and admin-style.css. */

.checkin-counter {
  text-align: center;
  margin-bottom: 20px;
}
.checkin-counter #checkin-count {
  font-size: 40px;
  font-weight: 700;
  color: var(--sage);
}
.checkin-counter-divider {
  font-size: 24px;
  color: var(--gray-600);
  margin: 0 4px;
}
#checkin-total {
  font-size: 24px;
  color: var(--gray-600);
}
.checkin-counter-label {
  display: block;
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scanner-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.scanner-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scanner-overlay {
  position: absolute;
  inset: 12%;
  border: 3px solid var(--coral);
  border-radius: var(--radius-md);
  pointer-events: none;
  box-shadow: 0 0 0 2000px rgba(0,0,0,0.35);
}

.scan-result {
  max-width: 400px;
  margin: 0 auto 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  animation: pop-in 0.3s var(--ease-bounce);
}
.scan-result.success {
  background: #DDF0E7;
  color: var(--sage);
}
.scan-result.error {
  background: var(--coral-light);
  color: var(--coral);
}
.scan-result-name {
  font-size: 18px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.scan-result-detail {
  font-size: 13px;
  opacity: 0.85;
}