* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

header {
  text-align: center;
  color: white;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 8px;
}

.logout-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: rgba(255,255,255,0.3);
}

.venue-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.venue {
  position: relative;
  width: 700px;
  height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  padding: 20px;
}

.venue-element {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #333;
  border-radius: 8px;
  font-weight: 600;
  color: #333;
  background: #f5f5f5;
}

.venue-element span {
  text-align: center;
  padding: 5px;
  font-size: 14px;
}

/* Window - top (full width) */
.window {
  top: 10px;
  left: 3%;
  width: 94%;
  height: 30px;
  border-top: 6px solid #333;
}

/* Stage - center left */
.stage {
  top: 80px;
  left: 15%;
  width: 35%;
  height: 180px;
  background: #e8e8e8;
}

/* Table - center right */
.table {
  top: 180px;
  right: 10%;
  width: 25%;
  height: 120px;
}

/* BOSS - bottom center */
.boss {
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 40px;
  font-weight: 700;
}

/* Entrance - bottom left (same thickness as window) */
.entrance {
  bottom: 10px;
  left: 15%;
  width: 29%;
  height: 30px;
  border-bottom: 6px solid #333;
}

/* Seats */
#seats-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.seat {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 3px solid #333;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.seat:hover:not(.booked) {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.seat.available {
  background: white;
}

.seat.booked {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
}

.seat.selected {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: scale(1.1);
}

/* All seats: white when available, blue (#667eea) when selected */

/* Legend */
.legend {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 180px;
}

.legend h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.legend-color {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 2px solid #333;
}

.legend-color.available {
  background: white;
}

.legend-color.booked {
  background: #ccc;
  opacity: 0.6;
}

.legend-color.selected {
  background: #667eea;
  border-color: #667eea;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.close-btn:hover {
  color: #333;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.form-note {
  margin-top: 15px;
  font-size: 13px;
  color: #888;
  text-align: center;
}

/* Success Modal */
.modal-content.success {
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #16a34a;
  margin: 0 auto 20px;
}

/* Loading */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loading.hidden {
  display: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #ddd;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .venue {
    width: 100%;
    height: 450px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .seat {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }
}
