/* Simple styles for the check‑in app */
/* Base styles shared across pages. Uses CSS variables for easy theming. */
:root {
  --primary-color: #bf0057;
  --background-color: #000;
  --text-color: #ffffff;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  text-align: center;
  background: var(--primary-color);
  color: var(--text-color);
  padding: 1rem;
  width: 100%;
}

/*
 * Scanner container: we deliberately reduce the height so the result area
 * below remains visible on mobile screens. Previously the video area
 * consumed almost the full height, making it hard to see the scanned
 * attendee name and status. Adjust the height here to taste; 220px
 * provides a good balance between scan area and feedback space.
 */
#scanner-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 1rem auto;
  overflow: hidden;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  /* Reduce the height so that results and controls are visible below. */
  height: 220px;
}

#video {
  width: 100%;
  height: 100%;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-color);
  font-size: 1.2rem;
  pointer-events: none;
}

/* Status icon overlay styles. Hidden by default; will be shown with
   appropriate classes via JavaScript when a check‑in occurs. */
#status-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  pointer-events: none;
  display: none;
}
#status-icon.success {
  color: #00c853; /* green tick */
}
#status-icon.error {
  color: #d50000; /* red cross */
}

#result {
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
  min-height: 2rem;
}