@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

:root {
  --font-primary: "Bricolage Grotesque", "Segoe UI", sans-serif;
}

body,
button,
input,
select,
textarea,
.fc,
.fc * {
  font-family: var(--font-primary) !important;
}

/* Reset all time grid backgrounds to white */
.fc-timegrid-col {
  background-color: white !important;
}
.fc-timegrid-slot {
  background-color: white !important;
}

/* Remove white background in day view and apply pricing colors */
.fc-timeGridDay-view .fc-timegrid-slot {
  background-color: transparent !important;
}

/* Target the actual time slot elements */
.fc-timeGridDay-view .fc-timegrid-slot.off-peak-day,
.fc-timeGridDay-view .fc-timegrid-slot-lane.off-peak-day {
  background-color: #07EBED !important;
}

.fc-timeGridDay-view .fc-timegrid-slot.peak-day,
.fc-timeGridDay-view .fc-timegrid-slot-lane.peak-day {
  background-color: #FE01B3 !important;
}

.fc-timeGridDay-view .fc-timegrid-slot.standard-day,
.fc-timeGridDay-view .fc-timegrid-slot-lane.standard-day {
  background-color: #FFFF05 !important;
}

.fc-timeGridDay-view .fc-timegrid-slot.closed-day,
.fc-timeGridDay-view .fc-timegrid-slot-lane.closed-day {
  background-color: #1C2031 !important;
}

.fc-timegrid-body {
  background-color: white !important;
}

.fc-timegrid-col-frame {
  background-color: white !important;
}

.fc-timegrid-divider {
  background-color: white !important;
}

/* Only apply white background in week view, not day view */
.fc-timeGridWeek-view .fc-timegrid-slot-lane {
  background-color: white !important;
}

.fc-timeGridWeek-view .fc-timegrid-slot {
  background-color: white !important;
}

/* Apply colors only to day headers */
.fc-col-header-cell.off-peak {
  background-color: #07EBED !important;
  color: #0E186F !important;
}

.fc-col-header-cell.peak {
  background-color: #FE01B3 !important;
  color: white !important;
}

.fc-col-header-cell.standard {
  background-color: #FFFF05 !important;
  color: #0E186F !important;
}

.fc-col-header-cell.closed {
  background-color: #1C2031 !important;
  color: white !important;
}

.fc-col-header-cell.disabled-date {
  background-color: #EEEEEE !important;
  color: #999 !important;
}

/* Ensure the header text is visible */
.fc-col-header-cell.off-peak a,
.fc-col-header-cell.peak a,
.fc-col-header-cell.standard a,
.fc-col-header-cell.closed a {
  color: white !important;
}

.fc-col-header-cell.off-peak a,
.fc-col-header-cell.standard a {
  color: #0E186F !important;
}

/* Style all events to be white with black text */
.fc-event {
  background-color: rgba(255,255,255,0.25) !important;
  border-color: #ddd !important;
  color: black !important;
  text-align: center !important;
  padding-top: .125rem !important;
  padding-bottom: .125rem !important;
  font-size: .5rem !important;
  transition: opacity 0.2s ease;
}

.fc-event:hover {
  background-color: rgba(255,255,255,0.75) !important;
}

/* Mobile styles - 25% larger padding */
@media (max-width: 768px) {
  .fc-event {
    padding-top: .2rem !important;
    padding-bottom: .2rem !important;
  }
}

.fc .fc-daygrid-body-natural .fc-daygrid-day-events {
  padding-left: .25rem !important;
  padding-right: .25rem !important;
}

/* Hide the default FullCalendar v6 icons */
.fc-icon {
  display: none !important;
}

/* Month view day number positioning and sizing */
.fc-dayGridMonth-view .fc-daygrid-day-top {
  display: block !important;
  height: auto !important;
  width: 100% !important;
  position: relative !important;
}

.fc-dayGridMonth-view .fc-daygrid-day-number {
  font-size: 12px !important;
  top: 4px !important;
  left: 6px !important;
  text-align: left !important;
  display: inline-block !important;
}

/* Style the navigation buttons */
.fc-button {
  background-color: #9FC8FA !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 16px 16px !important;
  transition: all 0.3s ease !important;
  border: none !important;
}

/* Next button with your custom SVG */
.fc-next-button {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.293 17.293L12.707 18.707L19.414 12L12.707 5.29297L11.293 6.70697L15.586 11H6V13H15.586L11.293 17.293Z' fill='%23000'/%3E%3C/svg%3E") !important;
}

/* Previous button (reversed arrow) */
.fc-prev-button {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.707 6.70703L11.293 5.29303L4.586 12L11.293 18.707L12.707 17.293L8.414 13H18V11H8.414L12.707 6.70703Z' fill='%23000'/%3E%3C/svg%3E") !important;
}

/* View button styling */
.fc-dayGridMonth-button, .fc-timeGridWeek-button, .fc-timeGridDay-button {
  background-color: #f4f4f4 !important;
  color: black !important;
  width: auto !important;
  height: auto !important;
  border-radius: 15px !important;
  font: inherit !important;
  font-weight: bold !important;
  text-transform: capitalize !important;
}

/* Navigation button hover effects */
.fc-button:not(.fc-dayGridMonth-button):not(.fc-timeGridWeek-button):not(.fc-timeGridDay-button):hover {
  background-color: #7FA0C8 !important;
}

/* View button hover effects */
.fc-dayGridMonth-button:hover, .fc-timeGridWeek-button:hover, .fc-timeGridDay-button:hover {
  background-color: #FFE600 !important;
}

.fc-button:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  background-color: #ccc !important;
}

/* Color coding styles for MONTH VIEW ONLY */
.fc-daygrid-day.off-peak:not(.fc-day-disabled) {
  background-color: #07EBED !important;
  color: #0E186F !important;
}

.fc-daygrid-day.peak:not(.fc-day-disabled) {
  background-color: #FE01B3 !important;
  color: white !important;
}

.fc-daygrid-day.standard:not(.fc-day-disabled) {
  background-color: #FFFF05 !important;
  color: #0E186F !important;
}

.fc-daygrid-day.closed:not(.fc-day-disabled) {
  background-color: #1C2031 !important;
  color: white !important;
}

/* DISABLED STATE OVERRIDES */
.fc-daygrid-day.fc-day-disabled {
  background-color: #f5f5f5 !important;
  color: #ccc !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Disabled states for all views */
.fc-daygrid-day.disabled-date,
.fc-timegrid-col.disabled-date {
  background-color: #f5f5f5 !important;
  color: #ccc !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Specific overrides for disabled dates with color classes */
.fc-daygrid-day.fc-day-disabled.off-peak,
.fc-daygrid-day.fc-day-disabled.peak,
.fc-daygrid-day.fc-day-disabled.standard,
.fc-daygrid-day.fc-day-disabled.closed {
  background-color: #f5f5f5 !important;
  color: #ccc !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Ensure hover effects don't work on disabled dates */
.fc-daygrid-day.fc-day-disabled:hover {
  background-color: #f5f5f5 !important;
  color: #ccc !important;
}

/* Disabled day numbers should be grayed out */
.fc-day-disabled .fc-daygrid-day-number {
  color: #ccc !important;
}

/* Header styling */
.fc-toolbar-title {
  font-size: 1.5em !important;
  font-weight: bold !important;
}

@media (max-width: 768px) {
  .fc-toolbar-title {
    font-size: 0.9em !important;
    margin-left: 8px !important;
  }

  .fc-prev-button,
  .fc-next-button {
    width: 32px !important;
    height: 32px !important;
    background-size: 13px 13px !important;
  }

  .fc-dayGridMonth-button,
  .fc-timeGridWeek-button,
  .fc-timeGridDay-button {
    font-size: 0.7em !important;
  }
}

/* Today highlight (only if not disabled) */
.fc-day-today:not(.fc-day-disabled) {
  background-color: rgba(255, 255, 0, 0.15) !important;
}

/* Hover effects for colored dates (only for enabled dates) */
.fc-daygrid-day.off-peak:not(.fc-day-disabled):hover {
  background-color: #05C4C6 !important;
}

.fc-daygrid-day.peak:not(.fc-day-disabled):hover {
  background-color: #D4019A !important;
}

.fc-daygrid-day.standard:not(.fc-day-disabled):hover {
  background-color: #E0E000 !important;
}

.fc-daygrid-day.closed:not(.fc-day-disabled):hover {
  background-color: #0F121D !important;
}

/* Force calendar to show exactly 5 rows */
.fc-daygrid-body {
  height: auto !important;
}

/* Hide the 6th row if it appears */
.fc-daygrid-body .fc-scrollgrid tbody tr:nth-child(6) {
  display: none !important;
}

/* Hide the collection list */
.ec-col-list-wrap {
  display: none !important;
}

/* Ensure calendar container is visible */
#divCalendar {
  width: 100% !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: hidden !important;
}

/* Make sure the fullcalendar shows */
.fc {
  direction: ltr !important;
  text-align: left !important;
  display: block !important;
}

.fc table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.fc-view {
  overflow: hidden !important;
}

/* CENTER ALIGNMENT FOR DAY NUMBERS - FLEXBOX METHOD */
.fc-daygrid-day-top {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  position: relative !important;
}

.fc-daygrid-day-number {
  color: inherit !important;
  text-decoration: none !important;
  font-weight: bold !important;
  display: block !important;
  text-align: center !important;
}

/* DESKTOP HEIGHT SETTINGS - 64px for all day elements */
.fc-daygrid-day {
  height: 64px !important;
  min-height: 64px !important;
}

.fc-daygrid-day-frame {
  height: 64px !important;
  min-height: 64px !important;
  position: relative !important;
}

.fc-daygrid-week {
  min-height: 64px !important;
}

.fc-daygrid-day.fc-day-disabled {
  pointer-events: none;
  opacity: 0.2;
}

/* Style for December days that don't have any color class defined */
.fc-daygrid-day[data-date^="2025-12"]:not(.off-peak):not(.standard):not(.peak):not(.closed):not(.disabled-date),
.fc-daygrid-day[data-date^="2026-03"]:not(.off-peak):not(.standard):not(.peak):not(.closed):not(.disabled-date) {
  opacity: 0.3 !important;
}

/* Mobile calendar cell height adjustments */
@media (max-width: 768px) {
  .fc-daygrid-day {
    height: 40px !important;
    min-height: 40px !important;
  }

  .fc-daygrid-day-frame {
    height: 40px !important;
    min-height: 40px !important;
  }

  .fc-daygrid-week {
    min-height: 40px !important;
  }

  .fc-daygrid-day-number {
    padding: 4px !important;
    font-size: 14px !important;
  }

  .fc-daygrid-body {
    font-size: 14px !important;
  }

  /* Reduce header height too */
  .fc-col-header-cell {
    height: 30px !important;
    padding: 4px !important;
  }

  /* Reduce overall calendar height */
  .fc-daygrid {
    height: auto !important;
  }
}

/* MINIMUM HEIGHT FOR MONTH VIEW - 100px */
.fc-dayGridMonth-view .fc-daygrid-day {
  height: 130px !important;
  min-height: 130px !important;
}

/* Mobile styles - 25% larger padding */
@media (max-width: 768px) {
  .fc-dayGridMonth-view .fc-daygrid-day{
    height: 125px !important;
    min-height: 125px !important;
  }
}

.fc-dayGridMonth-view .fc-daygrid-day-frame {
  height: 100px !important;
  min-height: 100px !important;
}

.fc-dayGridMonth-view .fc-daygrid-week {
  min-height: 100px !important;
}

/* For very small screens, make it even more compact */
@media (max-width: 480px) {
  .fc-daygrid-day {
    height: 35px !important;
    min-height: 35px !important;
  }

  .fc-daygrid-day-frame {
    height: 35px !important;
    min-height: 35px !important;
  }

  .fc-daygrid-week {
    min-height: 35px !important;
  }

  .fc-daygrid-day-number {
    padding: 4px !important;
    font-size: 16px !important;
  }

  .fc-col-header-cell {
    height: 25px !important;
    padding: 2px !important;
    font-size: 12px !important;
  }
}

/* Remove hover effects for month view days */
.fc-dayGridMonth-view .fc-daygrid-day:hover {
  background-color: inherit !important;
}

/* Remove hover effects for colored dates in month view - override existing hover rules */
.fc-dayGridMonth-view .fc-daygrid-day.off-peak:not(.fc-day-disabled):hover {
  background-color: #05C4C6 !important;
}

.fc-dayGridMonth-view .fc-daygrid-day.peak:not(.fc-day-disabled):hover {
  background-color: #D4019A !important;
}

.fc-dayGridMonth-view .fc-daygrid-day.standard:not(.fc-day-disabled):hover {
  background-color: #E0E000 !important;
}

.fc-dayGridMonth-view .fc-daygrid-day.closed:not(.fc-day-disabled):hover {
  background-color: #0F121D !important;
}

/* Remove pointer cursor if you don't want it to look clickable */
.fc-dayGridMonth-view .fc-daygrid-day {
  cursor: default !important;
}

.fc table{
  font-size:.75rem !important;
}

.fc .fc-col-header-cell-cushion {
  padding: 4px !important;
}

.fc-scroller {
  scroll-padding-top: 100px !important;
}