/* Custom Calendar Event Colors - Schedule-X Style */

/* Legend styling */
.legend-color-box {
  display: inline-block;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  opacity: 0.15;
}

/* Search results dropdown styling */
.calendar-search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 400px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid rgba(231, 234, 243, 0.7);
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.calendar-search-results-dropdown .list-group {
  margin-bottom: 0;
}

.calendar-search-results-dropdown .list-group-item {
  border-left: none;
  border-right: none;
  border-top: none;
  padding: 0.75rem 1rem;
  transition: background-color 0.15s ease-in-out;
}

.calendar-search-results-dropdown .list-group-item:hover {
  background-color: rgba(55, 125, 255, 0.05);
}

.calendar-search-results-dropdown .list-group-item:first-child {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.calendar-search-results-dropdown .list-group-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.calendar-search-results-dropdown .badge {
  width: 10px;
  height: 10px;
  padding: 0 !important;
}

.calendar-search-results-dropdown .text-muted {
  font-size: 0.8125rem;
}

/* Base event styling with left border and lighter background */
.fc-event {
  border-radius: 4px !important;
  border-left-width: 4px !important;
  border-left-style: solid !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  padding: 4px 8px !important;
}

.fc-event-time {
  font-weight: 600 !important;
  font-size: 0.65rem !important;
  margin-bottom: 2px !important;
}

.fc-event-title {
  font-size: 0.75rem !important;
  line-height: 1.3 !important;
}

/* Erlebnispakete - Blau (Primary) */
.fullcalendar-custom-event-erlebnispaket {
  background-color: #eaf1ff !important;
  border-left-color: #377dff !important;
  color: #132144 !important;
}

.fullcalendar-custom-event-erlebnispaket .fc-event-time,
.fullcalendar-custom-event-erlebnispaket .fc-event-title {
  color: #132144 !important;
}

/* Touren - Grün (Success) */
.fullcalendar-custom-event-tour {
  background-color: #e7f7ed !important;
  border-left-color: #00c9a7 !important;
  color: #132144 !important;
}

.fullcalendar-custom-event-tour .fc-event-time,
.fullcalendar-custom-event-tour .fc-event-title {
  color: #132144 !important;
}

/* Gruppenanfragen - Orange (Warning) */
.fullcalendar-custom-event-gruppenanfrage {
  background-color: #fdf3e8 !important;
  border-left-color: #f5b225 !important;
  color: #132144 !important;
}

.fullcalendar-custom-event-gruppenanfrage .fc-event-time,
.fullcalendar-custom-event-gruppenanfrage .fc-event-title {
  color: #132144 !important;
}

/* Blocked Dates - Rot (Danger) */
.fullcalendar-custom-event-blocked {
  background-color: #fdeef2 !important;
  border-left-color: #ed4c78 !important;
  color: #132144 !important;
}

.fullcalendar-custom-event-blocked .fc-event-time,
.fullcalendar-custom-event-blocked .fc-event-title {
  color: #132144 !important;
}

/* Month view specific styling */
.fc-daygrid-event {
  margin: 2px 0 !important;
  padding: 3px 6px !important;
}

.fc-daygrid-event .fc-event-time {
  display: inline-block !important;
  margin-right: 4px !important;
}

.fc-daygrid-event .fc-event-title {
  display: inline !important;
}

/* Week/Day view styling */
.fc-timegrid-event {
  border-radius: 4px !important;
}

.fc-timegrid-event .fc-event-time {
  display: block !important;
  margin-bottom: 2px !important;
}

.fc-timegrid-event .fc-event-title {
  display: block !important;
}

/* Event hover effects */
.fullcalendar-custom-event-erlebnispaket:hover,
.fullcalendar-custom-event-tour:hover,
.fullcalendar-custom-event-gruppenanfrage:hover,
.fullcalendar-custom-event-blocked:hover {
  opacity: 0.85 !important;
  cursor: pointer !important;
  filter: brightness(0.95) !important;
}

/* Remove default FC dot in month view */
.fc-daygrid-event-dot {
  display: none !important;
}

/* Better spacing in month grid */
.fc-daygrid-day-events {
  margin-top: 2px !important;
}

/* Custom Filter Checkbox Colors */
/* Erlebnispakete - Blau (Primary) */
.form-check-input:checked[id="calendarErlebnispaketCheck"] {
  background-color: #377dff !important;
  border-color: #377dff !important;
}

/* Touren - Grün (Success) */
.form-check-input:checked[id="calendarTourCheck"] {
  background-color: #00c9a7 !important;
  border-color: #00c9a7 !important;
}

/* Gruppenanfragen - Orange (Warning) */
.form-check-input:checked[id="calendarGruppenanfrageCheck"] {
  background-color: #f5b225 !important;
  border-color: #f5b225 !important;
}

/* Blocked Dates - Rot (Danger) */
.form-check-input:checked[id="calendarBlockedCheck"] {
  background-color: #ed4c78 !important;
  border-color: #ed4c78 !important;
}
