/* Calendar Styles */
.calendar-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Dark theme overrides for FullCalendar */
.fc {
  --fc-page-bg-color: #1e1e1e;
  --fc-neutral-bg-color: #2c2c2c;
  --fc-border-color: #444;
  --fc-button-bg-color: #bb86fc;
  --fc-button-border-color: #bb86fc;
  --fc-button-hover-bg-color: #a166e0;
  --fc-button-hover-border-color: #a166e0;
  --fc-button-active-bg-color: #a166e0;
  --fc-today-bg-color: rgba(187, 134, 252, 0.1);
  --fc-event-bg-color: #bb86fc;
  --fc-event-border-color: #bb86fc;
  --fc-event-text-color: #121212;
  --fc-list-event-hover-bg-color: #2c2c2c;
}

.fc-theme-standard .fc-list {
  border-color: #444;
}

.fc .fc-list-sticky .fc-list-day > * {
  background: #2c2c2c;
}

.fc .fc-list-event:hover td {
  background: #333;
}

.fc-direction-ltr .fc-list-day-text,
.fc-direction-rtl .fc-list-day-side-text,
.fc-direction-ltr .fc-list-day-side-text,
.fc-direction-rtl .fc-list-day-text {
  color: #e0e0e0;
}

.fc-theme-standard .fc-list-day-cushion {
  background-color: #2c2c2c;
}

.fc .fc-toolbar-title {
  color: #e0e0e0;
}

.fc .fc-button {
  color: #121212;
  font-weight: bold;
}

.fc .fc-button:disabled {
  opacity: 0.6;
}

.fc .fc-daygrid-day-frame, .fc .fc-list-event-title a {
  color: #e0e0e0;
  text-decoration: none; /* Also prevent underlines inside the calendar */
}

.fc-daygrid-day-number,
.fc-col-header-cell-cushion {
  color: #e0e0e0;
}

/* Mobile Responsiveness */
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background-color: #1e1e1e;
  margin: 15% auto;
  padding: 2rem;
  border: 1px solid #444;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  color: #e0e0e0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  color: #a0a0a0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #ffffff;
}

.event-details {
  margin: 1.5rem 0;
}

.event-details p {
  margin: 0.5rem 0;
}

.modal-footer {
  margin-top: 2rem;
  text-align: right;
}

.venue-button,
.map-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: #121212;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin: 0 0.5rem;
}

.venue-button {
  background-color: #bb86fc;
}

.venue-button:hover {
  background-color: #a166e0;
}

.map-button {
  background-color: #03dac6;
}

.map-button:hover {
  background-color: #00b3a4;
}

@media (max-width: 768px) {
  .fc .fc-toolbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .fc .fc-toolbar-title {
    font-size: 1.2em;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 90%;
    padding: 1.5rem;
  }
}