/* =====================================================
   FullCalendar – TopMedica (CLEAN VERSION)
   ===================================================== */

/* ---------- Wrapper ---------- */

.calendar-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1rem;
}

/* ---------- Base calendar ---------- */

.fc {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

/* ---------- Toolbar ---------- */

.fc .fc-toolbar {
  margin-bottom: 1rem;
  align-items: center;
}

.fc .fc-toolbar-title {
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 600;
}

/* Toolbar buttons */

.fc .fc-button {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.fc .fc-button-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.fc .fc-button-primary:hover {
  background-color: var(--info);
  border-color: var(--info);
}

/* ---------- Calendar grid ---------- */

.fc .fc-daygrid-day {
  border: 1px solid #e9ecef;
}

.fc .fc-daygrid-day:hover {
  background-color: rgba(104, 93, 211, 0.05);
}

.fc .fc-day-today {
  background-color: rgba(104, 93, 211, 0.08);
  font-weight: 600;
}

/* Header (po, út, st...) */

.fc .fc-col-header-cell {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 500;
  border: 1px solid var(--color-primary);
}

/* Other month days */

.fc .fc-day-other {
  background-color: #fafafa;
}

/* ---------- Events (PASSIVE CONTAINER) ---------- */
/* ⚠️ Event je pouze držák – žádný hover ani transform */

.fc .fc-event {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  cursor: default;
}

/* ---------- Slot buttons ---------- */

.fc .slot-btn {
  width: 100%;
  margin: 2px 0;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

/* Active slot */

.fc .slot-btn-active {
  background-color: #8e2de2; /* TopMedica fialová */
  color: #fff;
}

/* Disabled slot */

.fc .slot-btn-disabled {
  background-color: #e5e5e5;
  color: #999;
  cursor: not-allowed;
}

/* Hover – pouze pokud není vybraný */

.fc .slot-btn-active:not(.slot-btn-selected):hover {
  background-color: #7f1fd1;
  transform: scale(1.03);
}

/* Selected slot */

.fc .slot-btn-selected {
  outline: 2px solid #00c2d1; /* tyrkys TopMedica */
  outline-offset: 1px;
  box-shadow: 0 0 0 2px rgba(0, 194, 209, 0.25);
  transform: none;
}

/* ---------- Mobile ---------- */

@media (max-width: 576px) {

  .fc {
    font-size: 0.85rem;
  }

  .fc .slot-btn {
    padding: 2px 2px;
    font-size: 10px;
    border-radius: 6px;
  }

  .fc .slot-btn-selected {
    outline-width: 1px;
    box-shadow: none;
  }

  .fc-daygrid-event {
    margin: 1px 0 !important;
  }
}

/* ---------- Extra small screens (toolbar) ---------- */

@media (max-width: 420px) {

  .fc-header-toolbar {
    margin-bottom: 6px;
  }

  .fc-toolbar button {
    padding: 4px 6px !important;
    font-size: 11px !important;
    line-height: 1.2;
  }

  .fc-toolbar-title {
    font-size: 14px;
    line-height: 1.2;
  }
}
