/*
 * EventPass — additions on top of the verbatim reference stylesheet (styles.css).
 * Only for things the reference design does not have: accounts (sign-in / sign-out),
 * server states (loading, errors), staff management and the frameless gate scanner.
 * Uses the reference design tokens.
 */

/* Sidebar footer: "Gate Scanner" + sign-out icon button on one row */
.sidebar-footer-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Sign-in page: reference card on the device-selector background */
.auth-card-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0.5rem auto 3rem;
  padding: 0 1.5rem;
}

.auth-card-wrap .card {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.auth-alert {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--danger-50);
  border: 1px solid var(--danger-100);
  color: var(--danger-700);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.auth-alert.is-visible {
  display: block;
}

.auth-footnote {
  font-size: 0.75rem;
  color: var(--navy-500);
  text-align: center;
  margin-top: 1rem;
}

/* Pagination footer for API-paged lists (reference lists were unpaged) */
.ep-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--navy-100);
  font-size: 0.8125rem;
  color: var(--navy-500);
}

.ep-pagination-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ep-pagination-page {
  font-weight: 600;
  color: var(--navy-700);
}

/* Spinner used inside buttons and loading rows */
.ep-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ep-spin 0.7s linear infinite;
  vertical-align: -2px;
}

@keyframes ep-spin {
  to { transform: rotate(360deg); }
}

/* Gate scanner without the reference's smartphone mock-up: a plain app column on
   desktops (the reference already goes full screen below 600px). */
.scanner-app-frame {
  width: 440px;
  height: auto;
  min-height: 0;
  flex: 1;
  max-height: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

body[data-page="mobile"] .phone-demo-wrapper {
  height: 100vh;
  min-height: 0;
}

body[data-page="mobile"] .scanner-app-frame .phone-screen {
  padding-top: 0.75rem;
}

@media (max-width: 600px) {
  .scanner-app-frame {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  body[data-page="mobile"] .scanner-app-frame .phone-screen {
    padding-top: 0;
  }
}
