.calendar-section {
  font-family: sans-serif;
  padding: 20px;
  text-align: center;
  
  /* display: flex;
  justify-content: space-between; */
}

.calendar {
  display: flex;
  flex-direction: column;
  border: 3px solid #36ba98;
  max-width: 1000px;
  margin: 0 auto;
}

.calendar-header {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);

  font-weight: bold;
  text-align: center;
}

.calendar-body {
  display: flex;
  flex-direction: column;
}

.calendar-row {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  border-top: 3px solid #36ba98;
  min-height: 40px;
}

.time-label {
  padding: 10px;
  background-color: transparent;
  text-align: center;
  font-size: 20px;
}

.cell {
  border-left: 3px solid #36ba98;
  cursor: pointer;
  position: relative;
}

.cell:hover {
  background-color: #f9f9f9;
}

.class-block {
  position: absolute;
  background-color: rgba(100, 149, 237, 0.8);
  padding: 2px 4px;
  font-size: 12px;
  border-radius: 4px;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

#classForm {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #ccc;
  padding: 15px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hidden {
  display: none !important;
}

.cell.highlight {
    background-color: rgba(25, 190, 122, 0.3);
}

.club-card {
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  background-color: transparent;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.club-card:hover {
  background-color: #36ba98;
}

#calendarContainer {
  display: flex;
  align-items: flex-start;
}

#clubCardPanel {
  flex: 1;
  max-width: 300px;
}

#calendarBody {
  flex: 3;
}

#committedClubsSection {
  margin-top: 2rem;
  border-top: 1px solid #ccc;
  padding-top: 1rem;
}

#filterButton,
#commitButton {
  padding: 0.6rem 1.2rem;
  margin-top: 1rem;
  margin-right: 0.5rem;
  border: none;
  border-radius: 8px;
  background-color: #3b82f6; /* Tailwind's blue-500 */
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

#filterButton:hover,
#commitButton:hover {
  background-color: #2563eb; /* blue-600 */
  transform: translateY(-1px);
}

#filterButton:active,
#commitButton:active {
  background-color: #1d4ed8; /* blue-700 */
  transform: translateY(0);
}

#calendarContainer {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.calendar {
  flex: 2;
  min-width: 600px;
}

#clubCardPanel {
  flex: 1;
  max-height: 800px;
  overflow-y: auto;
  border-left: 2px solid #ccc;
  padding-left: 1rem;
}


.club-panel {
  flex: 1;
  max-height: 800px;
  overflow-y: auto;
  border-left: 2px solid #ccc;
  padding-left: 1rem;
}

#clubList {
  max-height: 600px;
  overflow-y: auto;
  margin-bottom: 1rem;
}
