.tbpfc-calendar-wrap { max-width: 1000px; margin: 20px auto; font-family: Inter, Arial, sans-serif; }
#tbpfc-day-panel { margin-top: 16px; }
.tbpfc-day-card { border: 1px solid #ddd; border-radius: 10px; padding: 12px; margin: 8px 0; background: #fff; }
.tbpfc-btn { background: #23a1d1; color: #fff; border: none; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.tbpfc-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* цвета клеток месяца (через dayCellDidMount добавляем классы) */
.fc-daygrid-day.tbpfc-today { background: #f0f0f0 !important; }     /* сегодня — серый */
.fc-daygrid-day.tbpfc-empty { background: #fff !important; }         /* нет тренировок — белый */
.fc-daygrid-day.tbpfc-green { background: #dff6e0 !important; }      /* <50% — зелёный */
.fc-daygrid-day.tbpfc-yellow{ background: #fff4cc !important; }      /* >50% — жёлтый */
.fc-daygrid-day.tbpfc-red   { background: #ffd6d6 !important; }      /* 100% — красный */
/* Цветовая логика календаря */
.tbpfc-empty {
  background-color: #ffffff; /* без тренировок */
}

.tbpfc-green {
  background-color: #b7f5b7 !important; /* свободно */
}

.tbpfc-yellow {
  background-color: #fff3a3 !important; /* частично занято */
}

.tbpfc-red {
  background-color: #ffb6b6 !important; /* полностью занято */
}

/* ✅ СЕГОДНЯ — серый */
.tbpfc-today {
  background-color: #e0e0e0 !important;
  border: 2px solid #999 !important;
}

/* Выделение клетки при клике */
.fc-daygrid-day.fc-day-today {
  box-shadow: inset 0 0 0 2px #666;
}
/* МОДАЛЬНОЕ ОКНО — фиксированное центрирование */
.tbpfc-modal {
  display: none;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  justify-content: center !important;
  align-items: center !important;
  z-index: 9999;
}

.tbpfc-modal.show {
  display: flex !important; /* ключевой момент */
}

.tbpfc-modal-box {
  background: #fff;
  padding: 24px 28px;
  border-radius: 16px;
  width: 95%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  animation: tbpfcFadeIn 0.25s ease-out;
}
/* Ровное выравнивание чекбокса и текста рядом */
.tbpfc-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.tbpfc-inline label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.tbpfc-inline input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
}
/* ===========================
   📱 КОМПАКТНЫЙ И АДАПТИВНЫЙ ВИД КАЛЕНДАРЯ
   =========================== */

/* Общие настройки календаря */
.fc .fc-daygrid-day-frame {
  padding: 2px !important;
  min-height: 50px !important;
}
.fc .fc-daygrid-day-number {
  font-size: 12px !important;
  padding: 3px 4px !important;
  text-align: center !important;
  display: block !important;
  margin: 0 auto !important;
  float: none !important;
}
.fc .fc-col-header-cell-cushion {
  text-align: center !important;
}
.fc .fc-toolbar-title {
  font-size: 18px !important;
}
.fc .fc-button {
  padding: 3px 8px !important;
  font-size: 13px !important;
  height: auto !important;
}
.fc .fc-scrollgrid {
  border-radius: 10px;
}
.fc .fc-daygrid-body {
  border-top: none;
}
.fc .fc-daygrid-day-events {
  margin: 0 !important;
  padding: 0 !important;
}

/* === 📱 Мобильные устройства (до 600px) === */
@media (max-width: 600px) {
  .fc .fc-daygrid-day-frame {
    min-height: 36px !important;
    padding: 1px !important;
  }
  .fc .fc-daygrid-day-number {
    font-size: 11px !important;
  }
  .fc .fc-col-header-cell-cushion {
    font-size: 11px !important;
    padding: 2px 0 !important;
  }
  .fc .fc-toolbar-title {
    font-size: 15px !important;
  }
  .fc .fc-button {
    padding: 2px 6px !important;
    font-size: 12px !important;
  }
}

/* === 💻 Планшеты (601–900px) === */
@media (min-width: 601px) and (max-width: 900px) {
  .fc .fc-daygrid-day-frame {
    min-height: 48px !important;
    padding: 2px !important;
  }
  .fc .fc-daygrid-day-number {
    font-size: 13px !important;
  }
  .fc .fc-toolbar-title {
    font-size: 17px !important;
  }
}

/* === 🖥️ Настольные мониторы (900px+) === */
@media (min-width: 901px) {
  .fc .fc-daygrid-day-frame {
    min-height: 60px !important;
  }
  .fc .fc-daygrid-day-number {
    font-size: 13px !important;
  }
}
/* === 📱 Форсированное уменьшение высоты календаря на мобильных === */

@media (max-width: 600px) {
  /* Принудительно задаём фиксированную высоту ячеек */
  .fc .fc-daygrid-day-frame {
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    padding: 0 !important;
  }

  /* Центрируем цифры дней и делаем их поменьше */
  .fc .fc-daygrid-day-number {
    font-size: 11px !important;
    line-height: 33px !important; /* чтобы текст был ровно по центру */
    text-align: center !important;
    display: block !important;
    float: none !important;
  }

  /* Уменьшаем шапку дней недели */
  .fc .fc-col-header-cell-cushion {
    font-size: 11px !important;
    text-align: center !important;
    padding: 3px 0 !important;
  }

  /* Убираем внутренние отступы календарной таблицы */
  .fc .fc-scrollgrid-sync-table,
  .fc .fc-scrollgrid-section-body table {
    border-spacing: 0 !important;
  }

  /* Подправляем общую компоновку */
  .fc .fc-daygrid-body {
    height: auto !important;
  }
}
.tbpfc-day-card {
  border-radius: 8px;
  padding: 10px;
  margin: 8px 0;
  transition: background 0.3s ease;
}
.tbpfc-row a {
  color: #23a1d1;              /* синий цвет ссылки */
  text-decoration: none;       /* без подчёркивания в обычном состоянии */
  font-weight: 500;            /* слегка выделено */
  transition: all 0.2s ease;   /* плавный эффект при наведении */
}

.tbpfc-row a:hover {
  text-decoration: underline;  /* подчёркивание при наведении */
  color: #005b9a;              /* чуть темнее при наведении */
}
.tbpfc-day-card button[disabled] {
  background: #ccc !important;
  color: #666 !important;
  cursor: not-allowed;
}
.tbpfc-waitlist {
  margin-top: 40px;
  padding: 20px;
  background: #f7f7f7;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.tbpfc-waitlist input,
.tbpfc-waitlist select,
.tbpfc-waitlist textarea {
  width: 100%;
  padding: 8px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}
#tbpfc-day-panel, 
#tbpfc-waitlist {
  box-sizing: border-box;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

#tbpfc-waitlist form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* выделение выбранного дня в календаре */
.tbpfc-selected {
  outline: 3px solid #23a1d1 !important;
  background-color: rgba(35, 161, 209, 0.08);
  border-radius: 6px;
  transition: all 0.15s ease-in-out;
}

