body {
  margin: 0;
  background: #111;
  color: #fff;
  font-family: system-ui, sans-serif;
  min-height: 100vh;
  padding-bottom: 2rem;
}
main {
  width: 90vw;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
h1 { font-size: 3rem; margin-bottom: 1rem; }
#reader {
  width: 100%;
  max-width: 500px;
  margin: 1rem auto;
  border: 4px solid #444;
  border-radius: 1rem;
  overflow: hidden;
}
.result {
  background: #222;
  padding: 1rem;
  margin: 0.5rem 0;
  border-radius: 0.5rem;
  cursor: pointer;
}
.result:hover { background: #333; }
.card {
  background: #222;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1rem;
}
.card h2 { margin-top: 0; }
button {
  font-size: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  background: #4caf50;
  color: #fff;
  cursor: pointer;
}
button.checkin { background: #4caf50; }
button.checkout { background: #f44336; }
.actions { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }
.action { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.action select { font-size: 1.25rem; padding: 0.5rem; border-radius: 0.5rem; border: none; flex: 1; }
#status { margin-top: 1rem; font-size: 1.5rem; }

.manual-search {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 100;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background: #2196f3;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-content {
  background: #222;
  padding: 1.5rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  text-align: left;
}

.card-modal {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1rem;
  text-align: center;
}

.card-modal .card {
  margin: 0;
  padding: 1rem;
  font-size: 1.15rem;
}

.card-modal h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.card-modal p {
  margin: 0.35rem 0;
}

.card-modal .actions {
  margin-top: 1rem;
  gap: 1.5rem;
}

.card-modal .action button {
  font-size: 1.15rem;
  padding: 0.5rem 1rem;
}

.card-modal .action select {
  font-size: 1rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 { margin: 0; }

.close {
  background: transparent;
  font-size: 1.5rem;
  padding: 0.25rem 0.5rem;
  color: #fff;
  line-height: 1;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tab {
  flex: 1;
  background: #444;
  font-size: 1rem;
  padding: 0.5rem;
}

.tab.active { background: #2196f3; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.tab-content label {
  display: block;
  margin-top: 0.75rem;
  font-size: 1rem;
}

.tab-content input {
  display: block;
  width: 100%;
  margin: 0.25rem 0 0 0;
  font-size: 1.25rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: none;
  box-sizing: border-box;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.field-error {
  display: block;
  color: #ff6b6b;
  font-size: 0.95rem;
  min-height: 1.2rem;
  margin-bottom: 0.25rem;
}

.tab-content button {
  width: 100%;
  margin-top: 0.75rem;
}

button.back { background: #757575; }
.secondary-title { font-weight: 600; margin: 0.75rem 0 0.25rem; }

#kioskPending { z-index: 1000; }
#kioskPending .modal-content { text-align: center; }
.kiosk-id {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.1rem;
  margin: 1rem 0;
  word-break: break-all;
}
.spinner {
  width: 3rem;
  height: 3rem;
  border: 0.4rem solid #e0e0e0;
  border-top-color: #43a047;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
