/* FullCalendar Core Styles */
.fc {
  direction: ltr;
  text-align: left;
  background: white;
}

.fc-theme-standard td, .fc-theme-standard th {
  border: 1px solid #ddd;
  border: 1px solid var(--fc-border-color, #ddd);
}

.fc-day-today {
  background-color: rgba(55, 136, 216, 0.1) !important;
}

.fc-daygrid-day-number {
  padding: 4px;
  color: #333;
}

.fc-daygrid-day-events {
  margin-top: 1px;
  min-height: 2em;
}

.fc-event {
  position: relative;
  display: block;
  font-size: .85em;
  line-height: 1.4;
  border-radius: 3px;
  border: 1px solid #3788d8;
  background-color: #3788d8;
  color: #fff !important;
  padding: 2px 5px;
  margin: 1px 0;
  cursor: pointer;
}

.fc-event-title {
  font-weight: bold;
}

.fc-toolbar-title {
  font-size: 1.5em;
  margin: 0;
  font-weight: bold;
}

.fc-button {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: .25rem;
  color: #212529;
  margin: 0 2px;
}

.fc-button-primary {
  color: #fff;
  background-color: #3788d8;
  border-color: #3788d8;
}

.fc-button-active {
  color: #fff;
  background-color: #1a68b3;
  border-color: #1862a9;
}

.fc-col-header-cell-cushion {
  display: inline-block;
  padding: 8px 4px;
  font-weight: bold;
}

/* Fix for modal display */
#calendar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fc-toolbar {
    flex-direction: column;
  }
  
  .fc-toolbar-chunk {
    margin-bottom: 10px;
  }
  
  .fc-view-harness {
    height: 400px !important;
  }
}
