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

body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  background-color: #f5f5f5;
}

h1{
  font-size: 28px;
  margin-bottom: 5px;
}

/* Main container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 5rem;
}

.container p {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Seat Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(30px, 40px));
  gap: 8px;
  justify-content: center;
  margin: 30px auto;
  max-width: 100%;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 6px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.05);
}

.seat {
  width: 100%;
  aspect-ratio: 1;
  background: #ffcc00; /* For available */
  border: 1px solid #888;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.seat:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.seat:focus {
  outline: 3px solid #5d4777;
  z-index: 1;
}

.seat.reserved {
  background: #003366; /* For reserved */
  cursor: default;
}

.seat.selected {
  background: #00ff48; /* Green for selected */
  border: 2px solid #333;
}

/* Error popup */
.error-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideUp 0.3s ease-out;
}

.popup-content h3 {
  color: #f44336;
  margin-bottom: 15px;
}

.close-popup {
  background: #5d4777;
  color: white;
  border: none;
  padding: 8px 30px;
  margin-top: 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.close-popup:hover {
  background: #4a3661;
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
  padding: 10px;
  background-color: #f8f6fb;
  border-radius: 6px;
}

.filters label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #e8e2f0;
  transition: all 0.2s;
}

.filters label:hover {
  background: #f0ebf7;
  border-color: #d1c6e0;
}

.filters input {
  cursor: pointer;
}

/* Navigation buttons */
.navigation-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  background-color: #f5f5f5;
  border: 2px solid #ddd;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-button:hover {
  background-color: #e0e0e0;
  border-color: #ccc;
}

.nav-button .color-box {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.nav-button span {
  font-weight: 500;
}

.color-box.colorblind {
  background-color: #9eb9ff;
}

.color-box.blindness {
  background-color: #333;
}

/* FAQ Section */
.faq {
  margin: 30px auto;
  max-width: 700px;
}

.faq-item {
  margin-bottom: 10px;
  background: #6b4b7d;
  border-radius: 4px;
  overflow: hidden;
}

.faq-item summary {
  padding: 15px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  outline: none;
  color: white;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-content {
  padding: 15px;
  line-height: 1.6;
  background: #f2f2f2;
  color: #333;
}

/* Next button */
.next {
  display: block;
  margin: 30px auto;
  padding: 12px 40px;
  background: #009b4d;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.next:hover {
  background: #007a3d;
}

.next:focus {
  outline: 3px solid rgba(0, 155, 77, 0.4);
}

/* Reserve button */
.reserveren {
  display: block;
  margin: 30px auto;
  padding: 12px 30px;
  background: #009b4d;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.reserveren:hover {
  background: #007a3d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reserveren:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Colorblind filters */
body.protanopia {
  filter: url("#protanopia-filter");
}

body.tritanopia {
  filter: url("#tritanopia-filter");
}

body.achromatopsia {
  filter: grayscale(100%);
}

/* SVG filters for colorblindness simulation */
.filters-svg {
  position: absolute;
  width: 0;
  height: 0;
}

/* Success popup */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.popup-content.success {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border-top: 5px solid #009b4d;
}

.popup-content.success h3 {
  color: #009b4d;
  margin-bottom: 15px;
  font-size: 24px;
}

/* Tabs CSS */
.tabs {
  margin-bottom: 20px;
  display: flex;
  background-color: #e6f7ea;
  max-width: fit-content;
  padding: 0.5rem 0rem;
  border-radius: 5px;
}

.tab {
  padding: 4px 14px;
  border-radius: 5px;
  cursor: pointer;
}

.tab:hover {
  background-color: #c8e6c9;
  color: #005700;
  transition: background-color 0.3s ease;
}

.tab.active {
  background-color: #009b4d;
  color: white;
}

/* Form Instruction */
.form-instruction {
  background-color: #e8f5e9;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
