/* =====================================
   MODAL & BOOKING LIST — UNIFIED STYLE
   ===================================== */

/* Общ стил — фон, рамка, сянка */
.training-modal-custom,
#booking-list {
  max-width: 900px;
  margin: 30px auto;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: "Open Sans", sans-serif;
  overflow: hidden;
}
#save-bookings i {
  margin-right: 6px; /* или 8px както искаш */
}
/* Хедъри */
.training-modal-custom .modal-header,
#booking-list h3 {
  background: #dbe8f9;
  color: #1a3d7c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 6px 14px;
  border-bottom: 1px solid #c4d4ee;
  margin: 0;
}

/* Close и Save бутони */
.training-modal-custom .modal-header .btn,
#booking-list h3 button {
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;        
  margin-right: 8px; 
  font-size: 1.2rem;
  transition: background 0.2s ease, transform 0.1s ease;
}
.training-modal-custom .modal-header .btn:hover,
#booking-list h3 button:hover {
  background: #3578d1;
  transform: translateY(-1px);
}

/* Тяло на модала */
.training-modal-custom .modal-body {
  background: #f8faff;
  padding: 20px;
}

/* Таблици */
.training-modal-custom table,
#booking-list table {
  width: 100%;
  border-collapse: collapse;
}

.training-modal-custom table thead th,
#booking-list table thead th {
  background-color: #eef4fd;
  color: #1a3d7c;
  border-bottom: 1px solid #d9e3f0;
  font-weight: 600;
}

.training-modal-custom table tbody tr:hover,
#booking-list table tbody tr:hover {
  background-color: #f3f8ff;
}

.training-modal-custom table td,
#booking-list table td {
  vertical-align: middle;
  padding: 8px 12px;
}

/* "Add" и "X" бутони */
.training-modal-custom .btn-primary,
#booking-list .remove-booking {
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 1.0rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.training-modal-custom .btn-primary:hover,
#booking-list .remove-booking:hover {
  background: #3578d1;
  transform: translateY(-1px);
}

/* Ефект при успешно добавяне */
#booking-items tr.table-success {
  background-color: #d4edda !important;
  transition: background-color 1s ease;
}
/* ================================
   FILTERS AND CALENDAR STYLING
   ================================ */

/* Контейнерът на филтрите */
.training-calendar-container .filters {
  background: #f8faff;
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  padding: 12px 10px;
  max-width: 900px;
  margin: 10px auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  
  display: flex;
  align-items: center;
  justify-content: space-between; /* ← филтри вляво, заглавие вдясно */
  flex-wrap: wrap;
}

/* Селектите вътре */
.training-calendar-container .filters select {
  border: 1px solid #c4d4ee;
  border-radius: 6px;
  margin: 2px auto;
  padding: 6px 10px;
  font-size: 1.55rem;
  color: #1a3d7c;
  background-color: #fff;
  transition: all 0.2s ease;
}

.training-calendar-container .filters select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 4px rgba(74, 144, 226, 0.3);
}
/* Заглавието вдясно */
.training-calendar-container .filters h2 {
  margin: 0;
  color: #1a3d7c;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Иконка отпред (по избор) */
.training-calendar-container .filters h2::before {
  content: "📅";
  font-size: 1.5rem;
  align-items: center;
}

/* ================================
   FULLCALENDAR STYLING
   ================================ */

/* Основен контейнер на календара */
#calendar {
  background: #ffffff;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto 30px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Заглавието (месец/година и бутони) */
.fc-toolbar {
  background-color: #dbe8f9;
  border-bottom: 1px solid #c4d4ee;
  padding: 10px;
  color: #1a3d7c;
  font-weight: 600;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Кнопките "today", стрелки */
.fc .fc-button {
  background: #4a90e2;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 1.4rem;
  transition: background 0.2s ease;
}
.fc .fc-button:hover {
  background: #3578d1;
}

/* Дните в календара */
.fc-daygrid-day {
  transition: background-color 0.15s ease;
}
.fc-daygrid-day:hover {
  background-color: #f3f8ff;
}

/* Текстът на дните */
.fc-daygrid-day-number {
  color: #1a3d7c;
  font-weight: 500;
}

/* Събитията в календара */
.fc-event {
  background: #eaf2fe;
  border: 1px solid #c4d4ee;
  color: #1a3d7c;
  font-weight: 300;
  border-radius: 6px;
  padding: 2px 6px;
  transition: all 0.2s ease;
}

.fc-event:hover {
  background: #dbe8f9;
  border-color: #4a90e2;
  color: #000;
  cursor: pointer;
}
  .add-training {
    font-size: 1.5rem;      /* уголемява символа “+” */ 
    border-radius: 20%;     
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }

  /* Малък ефект при посочване с мишка */
  .add-training:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(0, 183, 255, 0.4);
  }
  .fc-today-button {
    display: none !important;
  }
  .trainingDayModalLabel{
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: "Open Sans", sans-serif;
  }
.fc-theme-standard td,
.fc-theme-standard th {
    border: 1px solid #8ca4c3 !important; /* ??-????? ?????? ?????? */
}

.fc-daygrid-day {
    border: 1px solid #8ca4c3 !important;
}

.fc-daygrid-day-frame {
    border: none !important; /* ?????????? ??????, ????? FullCalendar ?????? */
}

@media (max-width: 768px) {
  #calendar,
  .training-calendar-container .filters {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 20px auto;
  }
  .training-modal-custom .modal-body {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 20px auto;
  }
  .training-modal-custom,
  #booking-list {
    max-width: 100%;
    width: 100%;
    margin: 5 auto 20px auto;
    font-size: 1.0rem;
    font-weight: 600;
    
  }
  /* Ако искаш елементите вътре да се подредят вертикално */
  .training-calendar-container .filters {
      flex-direction: column;
      align-items: stretch;
      gap: 10px; /* малко разстояние между филтрите и заглавието */
    }
  @media (max-width: 768px) {
    .fc-daygrid-event-dot {
      display: none !important;
    }
  }
   @media (max-width: 768px) {
    .fc-event-title {
      display: none !important;}
  }
@media (max-width: 768px) {

  /* ???????? ????????? ?? ?????? ???????? ????? ????????? */
  .site-content,
  .content-area,
  .entry-content,
  .container,
  #content,
  .row,
  .columns {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }

  /* ?????? ???????? */
  #calendar {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
  }
}

}