/* events.css */
/* Global Styles */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1e1e2f, #2b2b3f);
  color: #f0f0f0;
  line-height: 1.6;
}

.header {
  text-align: center;
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #6dd5ed, #2193b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.glass {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.event-card h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #a6e1fa;
}

.event-details strong {
  color: #c7d2fe;
}

.registration-type {
  margin: 1rem 0;
  display: flex;
  gap: 2rem;
  font-weight: 600;
}

.registration-type label {
  cursor: pointer;
}

.glass-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.glass-form input {
  padding: 0.6rem 0.8rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
}

.glass-form button {
  margin-top: 0.5rem;
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(45deg, #6dd5ed, #2193b0);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.glass-form button:hover {
  transform: translateY(-2px);
}

.admin-panel {
  padding: 1rem;
}

.admin-panel button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #4b4b6a;
  color: #fff;
  cursor: pointer;
}

.admin-panel button:hover {
  background: #5c5c80;
}

@media (max-width: 600px) {
  .header h1 { font-size: 2rem; }
  .event-card h2 { font-size: 1.5rem; }
}

/* Modal overlay */
/* Flex layout for flyer and event content */
.event-flex {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
}

/* Ensure container (holds the form) stretches and has no internal padding */
.event-flex > * {
  flex: 1;
}


/* Make flyer image fill its flex space and match height */
.event-flex img.flyer-image {
  width: 100%;
  height: 100%;
  max-width: none;
  flex: 1;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  margin: 0;
}

/* Ensure event card takes remaining space */
.event-card {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Remove left padding from container inside flex layout */
.event-flex .container {
  padding-left: 0;
  padding-right: 0;
}

/* Remove any default margins on the form within the flex layout */
.event-flex .glass-form {
  margin-top: 0;
}


.event-flex .container {
  flex: 1;
}

.flyer-image {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 0; /* remove default margin for tighter layout */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: #fff;
  width: 90%;
  max-width: 320px;
  z-index: 1000;
}

.modal input {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.modal button {
  margin-top: 0.8rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(45deg, #6dd5ed, #2193b0);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

#modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 999;
}
