body {
  background: #ffffff !important;
  font-family: Arial, sans-serif;
}

/* Calendar container */
.calendar-container {
  display: flex;
  justify-content: center;
  margin: 100px auto 50px; /* account for navbar */
}

.calendar {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12); /* match camps page */
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-header h2 {
  margin: 0;
  font-size: 1.4rem;
  text-align: center;
  flex: 1;
}

.calendar-header button {
  background-color: #3a84ff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.calendar-header button:hover {
  background-color: #007bff;
}

.days-of-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-weight: bold;
  margin-bottom: 5px;
  text-align: center;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.day-cell {
  aspect-ratio: 1 / 1;     /* keeps perfect squares */
  width: 100%;             /* allows shrinking on mobile */
  max-width: 60px;         /* keeps your desktop size */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4f4f4;
  border-radius: 5px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.3s, transform 0.2s;
}

.day-cell.disabled {
  background-color: #e0e0e0;
  color: #888;
  cursor: not-allowed;
}

.current-day {
  border: 2px solid #006400; /* dark green border */
}

.day-cell.busy-day {
  background-color: #dc3545;
  color: white;
  cursor: not-allowed;
}

.day-cell.busy-day:hover {
  background-color: #c82333;
}

.day-cell.available {
  background-color: #4CAF50;
  color: white;
}

/* UPDATED to avoid overriding selected days */
.day-cell.available:not(.selected):hover {
  background-color: #388E3C;
  transform: scale(1.05);
}

.day-cell.selected {
  background-color: #3a84ff;
  color: white;
}

/* NEW — ensure hover never overrides selected color */
.day-cell.selected,
.day-cell.selected:hover {
  background-color: #3a84ff !important;
  color: white !important;
}

/* Calendar Submit & Reset buttons */
#calendar-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

#submit-calendar,
#reset-calendar {
  background-color: #3a84ff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s, transform 0.2s;
}

#submit-calendar:hover,
#reset-calendar:hover {
  background-color: #007bff;
  transform: scale(1.05);
}
