.fc-event {
  cursor: pointer;
}

.fc-event:hover {
  opacity: 0.9;
}

.fc {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  height: auto;
}

/* Set calendar container to expand based on content */
#calendar {
  height: auto;
  overflow: visible;
}

/* Ensure the view container expands properly */
.fc-view-harness {
  height: auto !important;
  min-height: auto !important;
}

/* Make sure time slots are tall enough */
.fc-timegrid-slot {
  height: 40px !important; /* Increase the height of each time slot */
}

/* Ensure the calendar container expands properly */
.fc.fc-media-screen.fc-direction-ltr.fc-theme-standard {
  height: auto !important;
  overflow: visible !important;
}

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

/* Decrease font size for date headers */
.fc-col-header-cell-cushion {
  font-size: 0.85em;
  text-decoration: none; /* Remove underline */
  color: #000 !important;
}

/* Hide coach-only action elements for non-coach users */
body:not(.coach) .coach-only-action {
  display: none !important;
}

/* Hide coach-only elements for non-coach users (even if they are admin) */
body:not(.coach) .coach-only {
  display: none !important;
}

/* Show admin-only elements for admin users */
body.admin .admin-only {
  display: block !important;
}

/* Special handling for table cells and headers with admin-only class */
body.admin td.admin-only {
  display: table-cell !important;
}

body.admin th.admin-only {
  display: table-cell !important;
}

.fc-event {
  border: none;
  padding: 2px 5px;
  border-radius: 3px;
  background-color: #b0949c !important;
  color: white !important;
}

/* Canceled event styling */
.canceled-event {
  background-color: rgba(220, 53, 69, 0.9) !important;
  color: white !important;
  text-decoration: line-through !important;
  border-color: #dc3545 !important;
  border-width: 2px !important;
  opacity: 1 !important;
}

.canceled-event-main,
.canceled-event-content,
.canceled-event-content * {
  color: white !important;
  text-decoration: line-through !important;
  font-weight: bold !important;
}

/* Add a diagonal line through canceled events */
.canceled-event::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right top,
    transparent 47.75%,
    rgba(255, 255, 255, 0.5) 49.5%,
    rgba(255, 255, 255, 0.5) 50.5%,
    transparent 52.25%
  );
  pointer-events: none;
  z-index: 1;
}

/* Past event styling */
.past-event {
  opacity: 0.7;
}

/* User-booked event styling */
.user-booked-event {
  background-color: #b6e2d3 !important;
}

/* Event indicators */
.event-indicators {
  display: flex;
  justify-content: flex-start;
  margin-top: 3px;
  gap: 5px; /* Add some spacing between the indicators */
}

.indicator {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  font-size: 0.8em;
  font-weight: bold;
  margin-right: 3px;
}

.indicator.participants {
  background-color: #d0bcbc; /* Match theme */
  color: #000;
}

.indicator.available {
  background-color: #a58a93; /* Darker shade of theme */
  color: white;
}

.indicator.room {
  background-color: #e83e8c; /* Bootstrap pink */
  color: white;
  width: auto; /* Override fixed width */
  min-width: 20px; /* Ensure minimum width */
  padding: 0 6px; /* Add horizontal padding */
  border-radius: 10px; /* Make it oval instead of circle */
}

/* Coach name below title styling */
.fc-event-coach {
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
  line-height: 1.2;
  font-style: italic;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Responsive adjustments for coach name */
@media (max-width: 768px) {
  .fc-event-coach {
    font-size: 0.7em;
    max-width: 90px; /* Even shorter on mobile */
  }
}

.navbar {
  margin-bottom: 2rem;
  background-color: #d0bcbc !important;
}

/* Change navbar text colors to black */
.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-text {
  color: #000 !important;
}

.navbar-dark .btn-outline-light {
  color: #000 !important;
  border-color: #777 !important;
}

.navbar-dark .btn-outline-light:hover {
  background-color: rgba(0, 0, 0, 0.1) !important;
  color: #000 !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Change primary button color to match theme */
.btn-primary {
  background-color: #d0bcbc !important;
  border-color: #777 !important;
  color: #000 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #c5a8a8 !important;
  border-color: #777 !important;
  color: #000 !important;
}

.btn-primary:disabled {
  background-color: #d8caca !important;
  border-color: #777 !important;
  color: #000 !important;
  opacity: 0.65;
}

.container {
  max-width: 1400px;
}

/* Custom sidebar active link styling */
.nav-link.active {
  background-color: #d0bcbc !important;
  color: #000 !important;
}

/* Custom FullCalendar button styling */
.fc-button-primary {
  background-color: #d0bcbc !important;
  border: 1px solid #777 !important;
  color: #000 !important;
}

.fc-button-primary:hover {
  background-color: #c5a8a8 !important;
  border: 1px solid #777 !important;
}

.fc-button-primary:disabled {
  background-color: #d8caca !important;
  border: 1px solid #777 !important;
  opacity: 0.65;
}

/* User-booked event styling */
.user-booked-event {
  background-color: #b6e2d3 !important;
  border-color: #8ecdb5 !important;
}
