body { background:#f7f7f7; font-family:'Poppins',sans-serif; }
.card { background:#fff; border-radius:8px; padding:20px; margin-bottom:20px; box-shadow:0 2px 6px rgba(0,0,0,.1); }


h2,h3 { font-weight:700; margin-bottom:15px; color:#222; }
.alert-info { border-radius:8px; font-size:.95em; }

#legend { 
  display: flex; 
  gap: 16px; 
  align-items: center; 
  margin-bottom: 8px; 
  font-size: .9em; 
  flex-wrap: nowrap; /* default: én linje på desktop */
}

.pill { 
  display: inline-block; 
  min-width: 14px; 
  height: 14px; 
  border-radius: 3px; 
  border: 1px solid #ccc; 
}
.pill-free { background:#28a745; }
.pill-kids { background:orange }
.pill-selected { background:#007bff; }
.pill-booked { background:#dc3545; }
.pill-mine { background:#800080; }

/* Tablet */
@media (max-width: 992px) {
  #legend {
    font-size: .8em;
    gap: 10px;
  }
}

/* Mobil */
@media (max-width: 900px) {
  #legend {
    flex-wrap: wrap;        /* tillad at gå på flere linjer */
    justify-content: center;
    font-size: .8em;       /* lidt mindre tekst */
    gap: 10px;
  }
}

/* Mobil 2 borde pr række */
@media (max-width: 900px) {
  #seatWrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
  }

  #seatWrapper .board {
    flex: 0 0 calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
  }
}


#seatWrapper {
  display: flex;
  gap: 100px;        /* standard til desktop */
  justify-content: center;
  margin-top: 10px;
}

/* Tablet og ned */
@media (max-width: 992px) {
  #seatWrapper {
    gap: 80px;       /* mindre afstand */
  }
}
.board { display: flex; flex-direction: column; align-items: center; }
.board-title { font-weight: bold; margin-bottom: 10px; font-size: 1.1em; }
.board-grid { display: flex; flex-direction: column; gap: 4px; }
.seat-row { display: flex; justify-content: center; gap: 6px; }

.seat-input { display:none; }
.seat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 50px;
  margin: -1px;
  background: #28a745;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.seat-label.booked { background:#dc3545; cursor:not-allowed; }
.seat-input:checked + .seat-label { background:#007bff; }
.seat-label.mine { background:#800080 !important; }

.entrance-label { display:flex; flex-direction:column; align-items:center; margin-bottom:20px; }
.entrance-text { font-size:1.4em; color:#222; background:#f8f9fa; padding:4px 18px; border:2px solid #ccc; border-radius:8px; }

.d-flex.gap-2 {
  align-items: center;   /* centrer knap og input lodret */
}

.btn-narrow {
  width: 200px;       /* vælg den bredde du vil have fx 120, 150, 160px */
  padding: 8px 10px;  /* mindre padding */
  font-size: 0.9em;   /* lidt mindre tekst */
  margin: 0 6px; /* luft på siderne */
}

.code-input {
  max-width: 200px;   /* gør inputfelt smallere */
  margin-right: 5px;
}

/* Gør Print-knappen smallere og ensartet */
#printButton {
  width: 200px;
  padding: 10px 10px;
  font-size: 0.9em;
  margin: 0 6px;
  transition: background-color 0.2s ease;
}

/* Hover-effekt KUN for print-knappen */
#printButton:hover {
  background-color: #5a6268; /* mørkere grå */
  color: #fff;
}

/* Børnepladser */
.child-seat {
  background-color: orange !important;
}

/* Når børnepladsen er valgt */
.seat-input:checked + .child-seat {
  background-color: #007bff !important;
}

.child-seat.booked {
  background-color: #dc3545 !important;
}


.receipt-box {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 6px;
  background: #fff;
  max-width: 500px;
  margin: 20px auto;
}

.receipt-header {
  text-align: center;
  margin-bottom: 15px;
}

.receipt-header h3 {
  margin: 0;
  font-weight: bold;
}

.receipt-meta {
  margin-bottom: 15px;
}

.receipt-logo {
  max-width: 220px;
  margin-bottom: 20px;
}

.seat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  border-radius: 8px;
}

.seat-overlay.hidden {
  display: none;
}

.loader {
  border: 5px solid #eee;
  border-top: 5px solid #007bff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

.loader-text {
  color: #fff;
  font-size: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}