/* Modern Calendar Section Styles */
.calendar-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(115, 56, 160, 0.1);
  transition: all 0.3s ease;
}

.calendar-section:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.calendar-section h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-section h3::before {
  content: '\f073';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #7338A0;
  font-size: 1.2rem;
}

/* Modern FullCalendar Styling */
#calendar {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Calendar Header/Toolbar */
.fc .fc-toolbar {
  background: linear-gradient(135deg, #7338A0 0%, #581845 100%);
  padding: 15px 20px;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}

.fc .fc-toolbar-title {
  color: white !important;
  font-size: 1.3em !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Modern Calendar Buttons */
.fc .fc-button {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase;
  font-size: 0.85em !important;
  letter-spacing: 0.5px;
}

.fc .fc-button:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fc .fc-button:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
}

.fc .fc-button-active {
  background: rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Today Button Special Styling */
.fc .fc-today-button {
  background: linear-gradient(45deg, #28a745, #20c997) !important;
  border-color: #28a745 !important;
}

.fc .fc-today-button:hover {
  background: linear-gradient(45deg, #218838, #1ea67c) !important;
  border-color: #1e7e34 !important;
}

/* Calendar Body */
.fc .fc-view-container {
  background: white;
  border-radius: 0 0 10px 10px;
}

/* Day Cells */
.fc .fc-day {
  background: white;
  border-color: #e9ecef !important;
  transition: all 0.2s ease;
}

.fc .fc-day:hover {
  background: #f8f9fa;
}

/* Today's Date Highlighting */
.fc .fc-day-today {
  background: linear-gradient(135deg, rgba(115, 56, 160, 0.1), rgba(88, 24, 69, 0.1)) !important;
  border-color: #7338A0 !important;
}

/* Day Numbers */
.fc .fc-day-number,
.fc .fc-daygrid-day-number {
  color: #495057;
  font-weight: 500;
  padding: 8px;
  font-size: 0.9em;
}

.fc .fc-day-today .fc-day-number,
.fc .fc-day-today .fc-daygrid-day-number {
  color: #7338A0;
  font-weight: 700;
}

/* Events - Let FullCalendar handle colors, then enhance with gradients via JavaScript */
.fc .fc-event {
  border: none !important;
  border-radius: 6px !important;
  padding: 3px 8px !important;
  font-size: 0.85em !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.fc .fc-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.fc .fc-event .fc-event-title {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* List View Text Styling for Homepage */
.fc .fc-list-event-title a {
  color: #333 !important;
  text-shadow: none;
  font-weight: 500;
}

.fc .fc-list-event-time {
  color: #666 !important;
  text-shadow: none;
}

.fc .fc-list-event {
  background: none !important;
}

.fc .fc-list-event-graphic {
  background: inherit !important;
}

/* Custom Day Tooltip Styles */
.day-tooltip {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 220px;
  max-width: 320px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  cursor: default;
  margin-top: 5px;
  border: 1px solid rgba(115, 56, 160, 0.1);
}

.day-tooltip::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
  filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, 0.1));
}

.day-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-event {
  padding: 8px 12px;
  font-size: 0.9em;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin: 3px 0;
  position: relative;
}

.tooltip-event:hover {
  background: linear-gradient(135deg, rgba(115, 56, 160, 0.1), rgba(88, 24, 69, 0.1));
  transform: translateX(3px);
}

.tooltip-event:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.tooltip-event:first-child {
  margin-top: 0;
}

/* Mobile-specific styles */
@media screen and (max-width: 767px) {
  .calendar-section {
    padding: 15px;
    margin: 10px 0;
    border-radius: 12px;
  }

  .calendar-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  /* Responsive FullCalendar mobile view */
  .fc {
    font-size: 14px;
  }

  .fc .fc-toolbar {
    flex-direction: column;
    gap: 10px;
    padding: 12px 15px;
  }

  .fc .fc-toolbar-title {
    font-size: 1.1em !important;
  }

  .fc .fc-button {
    padding: 6px 12px !important;
    font-size: 0.8em !important;
  }

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

  .fc .fc-list-event-title a {
    font-size: 0.95em;
    padding: 6px 0;
  }

  .fc .fc-list-day-cushion {
    padding: 6px 12px;
  }

  .fc .fc-list-day-text,
  .fc .fc-list-day-side-text {
    font-size: 0.9em;
  }

  /* Remove unnecessary spacing */
  .fc .fc-list-table {
    border-spacing: 0;
  }

  .fc .fc-list-event-graphic {
    padding: 6px;
  }

  /* Make events more compact */
  .fc .fc-list-event {
    padding: 6px 0;
  }

  /* Simplify the header */
  .fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 12px;
  }

  /* Adjust list view styling */
  .fc .fc-list {
    border: none;
    border-radius: 0 0 12px 12px;
  }

  .fc .fc-list-day > * {
    padding: 6px 12px;
  }

  /* Mobile tooltip adjustments */
  .day-tooltip {
    min-width: 180px;
    max-width: 280px;
    font-size: 0.9em;
    padding: 10px 14px;
    border-radius: 10px;
  }

  .tooltip-event {
    padding: 10px 12px;
    margin: 4px 0;
  }
} 