
#calendar {
  background-color: rgba(255, 255, 255, 0.9);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.fc-toolbar {
  margin-bottom: 1rem !important;
}
.fc-toolbar-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0097B1;
}
.fc-button {
  background-color: #0097B1 !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.fc-button-primary {
  background: #0d6efd;
  border: none;
}
.fc-button-primary:hover {
  background: #0b5ed7;
}
.fc-button-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
}
.fc-col-header-cell {
  background: #0097B1;
  font-weight: 600;
  padding: 10px 0;
  border: 1px solid #dee2e6;
  color: white;
}
.fc-col-header-cell-cushion {
  text-decoration: none;
  color: inherit;
}
.fc-col-header-cell-cushion:hover {	
  text-decoration: none;
  color: inherit;
}
.fc-col-header-cell-cushion:active {
  text-decoration: none;
  color: inherit;
}
.fc-col-header-cell-cushion:focus {
  text-decoration: none;
  color: inherit;
}

.fc-daygrid-day {
  border: 1px solid #e9ecef;
  transition: background 0.2s ease;
}
.fc-daygrid-day:hover {
  background: #f1f9ff;
}
.fc-daygrid-day-number {
  font-weight: 500;
  padding: 4px;
}

tbody .fc-day-sun {
  background-color: #fff5f5;
  color: #d63384;
}
/* .fc-day-sat {
	background-color: #fff5f5;
	color: #d63384;
} */

.fc-day-today {
  background: #e7f1ff !important;
  border: 2px solid #0d6efd !important;
}

.fc-event {
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 2px 4px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-event:hover {
  opacity: 0.9;
  cursor: pointer;
}
.fc-daygrid-more-link {
  font-size: 0.75rem;
  color: #0d6efd;
}

#calendar-loading {
  border-radius: 8px;
  backdrop-filter: blur(2px);
}
.fc-day-other .badge.bg-primary {
	background-color: grey !important;
	color: white !important;
}

.fc-theme-standard th {
    border: 2px solid white !important;
}
.fc-theme-standard td {
    border: 1px solid #0097B1 !important;
}
.fc-theme-standard .fc-scrollgrid {
    border: 1px solid #ffffff !important;
}
.popover {
  max-width: 250px;
  font-size: 0.85rem;
}
.popover-header {
  background-color: #0097B1;
  color: white;
  font-weight: bold;
}

@media (max-width: 768px) {
  #calendar {
    padding: 8px;
    font-size: 0.85rem;
  }

  .fc .fc-toolbar {
    flex-direction: row;
    gap: 6px;
  }
  .fc .fc-toolbar-title {
    font-size: 1.1rem;
    text-align: center;
  }
  .fc .fc-toolbar-chunk {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .fc-button {
    padding: 5px 10px !important;
    font-size: 0.8rem;
    margin: 2px;
  }

  .fc .fc-daygrid-day-number {
    font-size: 0.7rem;
    padding: 2px;
  }

  .fc-event {
    font-size: 0.7rem;
    padding: 2px 3px;
    border-radius: 4px;
  }
  .fc-daygrid-more-link {
    font-size: 0.7rem;
  }
}

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    min-height: auto !important;
}
.fc-daygrid-day-events{
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.fc-scrollgrid-sync-table{
    height: 350px !important;
}
.fc-view-harness{
    min-height: 350px !important;
    height: auto !important;
}
.calendar-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    color: #0097B1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.calendar-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

.collapse-icon {
    transition: transform 0.3s ease;
}

.calendar-header[aria-expanded="true"] .collapse-icon {
    transform: rotate(-180deg);
}

.fc-daygrid-day-frame.fc-scrollgrid-sync-inner{
  padding-bottom: 10px !important;
}

.fc-event-main{
  display: flex !important;
  align-items: center !important;
}
.fc-event-main span{
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.bg-kalibrasi-blue{
  background-color: #0b5ed7;
}
.bg-kalibrasi-danger{
  background-color: rgb(97, 0, 0);
}