/* Modern Calendar Styles - Glassmorphism & Refined FullCalendar */

.calendar-modern-container {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.calendar-header-section {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calendar-header-section h2 {
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.calendar-header-section::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 32px;
  background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
  border-radius: 10px;
}

/* FullCalendar Overrides */
.fc {
  font-family: inherit;
}

.fc .fc-toolbar-title {
  font-weight: 700;
  color: #495057;
  font-size: 1.25rem !important;
}

.fc .fc-button {
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: #495057 !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.75rem !important;
  text-transform: capitalize !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
}

.fc .fc-button:hover {
  background: #f8f9fa !important;
  color: #0d6efd !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.fc .fc-button-active {
  background: #0d6efd !important;
  border-color: #0d6efd !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2) !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active:focus, 
.fc .fc-button-primary:not(:disabled):active:focus {
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2) !important;
}

/* DayGrid Month Overrides */
.fc-theme-standard td, .fc-theme-standard th {
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.fc .fc-col-header-cell {
  background: rgba(0, 0, 0, 0.02);
  padding: 0.75rem 0 !important;
}

.fc .fc-col-header-cell-cushion {
  font-weight: 700;
  color: #adb5bd;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-decoration: none !important;
}

.fc-daygrid-day-number {
  font-weight: 600;
  color: #6c757d;
  padding: 8px 12px !important;
  text-decoration: none !important;
}

.fc-day-today {
  background: rgba(13, 110, 253, 0.03) !important;
}

.fc-day-today .fc-daygrid-day-number {
  color: #0d6efd;
  font-weight: 800;
}

/* Event Styling */
.fc-event {
  border-radius: 6px !important;
  padding: 2px 4px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease !important;
}

.fc-event:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  filter: brightness(1.05);
}

.fc-daygrid-event-dot {
  border-width: 4px !important;
}

/* List View Styling */
.fc-list {
  border: none !important;
  border-radius: 1rem !important;
  overflow: hidden;
}

.fc-list-day-cushion {
  background: rgba(0, 0, 0, 0.02) !important;
  padding: 1rem !important;
}

.fc-list-day-text, .fc-list-day-side-text {
  font-weight: 700 !important;
  color: #495057 !important;
}

.fc-list-event {
  cursor: pointer;
  transition: background 0.2s ease;
}

.fc-list-event:hover td {
  background-color: rgba(13, 110, 253, 0.02) !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .calendar-modern-container {
    padding: 1rem;
    border-radius: 1rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    margin-bottom: 1.5rem;
  }

  .calendar-header-section {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }

  .calendar-header-section h2 {
    font-size: 1.4rem;
  }

  .fc .fc-toolbar {
    flex-direction: column;
    gap: 1rem;
  }

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

  .fc .fc-button {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.85rem !important;
  }
}
