:root {
  /* adjust these to match your brand */
  --app-primary: #0d6efd; /* Bootstrap primary fallback */
  --app-primary-dark: #0b5ed7;
  --app-accent: #17a2b8;
  --app-event-text: #ffffff;
}

/* Container adjustments so calendar fits card layout */
#venue-calendar {
  width: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
}

/* Make the month grid feel like the rest of the app */
.fc {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #222;
}

/* Toolbar styling */
.fc .fc-toolbar {
  margin-bottom: 0.5rem;
}
.fc .fc-toolbar-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--app-primary-dark);
}

/* Buttons: use Bootstrap primary look */
.fc .fc-button {
  background: transparent;
  border: 1px solid rgba(13,110,253,0.15);
  color: var(--app-primary-dark);
  padding: 0.375rem 0.6rem;
  border-radius: 0.25rem;
  box-shadow: none;
}
.fc .fc-button:hover {
  background: rgba(13,110,253,0.06);
  border-color: rgba(13,110,253,0.25);
}
.fc .fc-button-primary {
  background: linear-gradient(180deg, var(--app-primary), var(--app-primary-dark));
  color: var(--app-event-text);
  border: none;
}
.fc .fc-button-primary:hover {
  filter: brightness(0.95);
}

/* Column headers */
.fc .fc-col-header-cell {
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: #555;
  font-weight: 600;
}

/* Day cells */
.fc .fc-daygrid-day {
  padding: 0.45rem;
  min-height: 80px;
}
.fc .fc-daygrid-day-top {
  padding-bottom: 0.35rem;
}
.fc .fc-daygrid-day-number {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Events - use brand color and subtle shadow */
.fc .fc-event,
.fc .fc-daygrid-event {
  background: var(--app-primary);
  border: 1px solid var(--app-primary-dark);
  color: var(--app-event-text);
  padding: 0.25rem 0.4rem;
  font-size: 0.85rem;
  border-radius: 0.375rem;
  box-shadow: 0 2px 6px rgba(13,110,253,0.08);
}

/* Compact event title */
.fc .fc-event .fc-event-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

/* Hover effect */
.fc .fc-event:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Time grid (week/day) tweaks */
.fc .fc-timegrid-slot {
  min-height: 28px;
}
.fc .fc-timegrid-event {
  border-radius: 0.375rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .fc .fc-toolbar-chunk,
  .fc .fc-toolbar .fc-left,
  .fc .fc-toolbar .fc-right {
    display: block;
    text-align: center;
  }
  .fc .fc-toolbar-title {
    margin: .25rem 0;
  }
  .fc .fc-daygrid-day {
    min-height: 64px;
    padding: .35rem;
  }
}

/* Make calendar sit visually inside the card */
#venue-calendar {
  background: var(--bs-light, #fff);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.04);
  padding: 8px;
}