/* Calendar wrap */
.cal-wrap {
  max-width: 1100px;
  margin: 1.25rem auto;
  padding: 0 1.25rem;
}

/* FullCalendar overrides */
.fc {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
}
.fc .fc-button {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid #ddd;
  color: #111;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  box-shadow: none;
  text-transform: none;
}
.fc .fc-button:hover {
  background: #f4f4f4;
  border-color: #ccc;
  color: #111;
}
.fc
  .fc-button-primary:not(.fc-button-active):not(
    .fc-button-group .fc-button-active
  ) {
  background: #fff;
  border-color: #ddd;
  color: #111;
}
.fc .fc-button-primary.fc-button-active,
.fc .fc-button-group .fc-button-active {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}
.fc .fc-toolbar-title {
  font-size: 1rem;
  font-weight: 700;
}
.fc-highlight {
  background: rgba(17, 17, 17, 0.07) !important;
}

/* Past days */
.fc-past-disabled {
  opacity: 0.38;
  pointer-events: none;
}

/* Add-availability modal */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.overlay.open {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.modal h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.modal label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.modal input[type="date"],
.modal input[type="time"] {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  outline: none;
}
.modal input[type="date"]:focus,
.modal input[type="time"]:focus {
  border-color: #111;
}
.modal .actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.modal button {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1.5px solid #111;
  background: #fff;
  cursor: pointer;
}
.modal button.primary {
  background: #111;
  color: #fff;
}
.modal button.primary:hover {
  background: #333;
}
.modal button:not(.primary):hover {
  background: #f4f4f4;
}
.modal .err {
  font-size: 0.78rem;
  color: #c00;
  margin-top: -0.4rem;
  margin-bottom: 0.7rem;
  display: none;
}

/* All-day toggle */
.modal-allday-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.9rem;
  cursor: pointer;
}
.modal-allday-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #111;
}
