/* Стили для страницы расписания */
.schedule-container {
  padding: 20px;
}


.schedule-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.schedule-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.selected-card {
  border: 2px solid var(--bs-primary) !important;
  background-color: #f8f9fa;
}

#schedule-redactor {
  transition: opacity 0.3s ease, max-height 0.3s ease;
  overflow: hidden;


  &.show {
    opacity: 1;
  }
}

.collapse:not(.show) {
  display: none;
}

#schedule-redactor {
  background-color: #f0f8ff;
  height: calc(100vh - 20px);
  position: sticky;
  top: 10px;
  border-radius: 8px;
  padding: 15px;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

/* Анимации */
.collapse.show {
  animation: fadeInRight 0.3s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  #schedule-redactor {
    position: fixed;
    right: 0;
    width: 100%;
    max-width: 300px;
    z-index: 1000;
  }
}

.search-results {
  position: absolute;
  z-index: 1000;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);

  .search-result-item {
    padding: 8px 12px;
    cursor: pointer;
    
    &:hover {
      background-color: #f5f5f5;
    }
  }
}
.search-result-item {
  cursor: pointer;
  padding: 8px 12px;
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.teacher-item {
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.offcanvas {
  position: fixed;
  transition: none !important; /* Отключаем анимацию Bootstrap */
}

.offcanvas-resizer {
  position: absolute;
  top: 0;
  left: -5px;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  z-index: 1035; /* Выше чем у offcanvas */
}

.offcanvas-resizer:hover,
.offcanvas-resizer:active {
  background-color: rgba(0, 0, 0, 0.1);
}

.offcanvas-resizer-right {
  position: absolute;
  top: 0;
  right: -5px;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  z-index: 1035; /* Выше чем у offcanvas */
}

.offcanvas-resizer-right:hover,
.offcanvas-resizer-right:active {
  background-color: rgba(0, 0, 0, 0.1);
}

.offcanvas.showing {
  display: block;
  visibility: visible;
  transform: translateX(0);
}

.list-group-item.active {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

.list-group-item-action {
  cursor: pointer;
  &:hover {
    background-color: #f8f9fa;
  }
}

.time-column {
  position: sticky;
  top: 20px;
}

.time-slot {
  height: 130px; /* Подберите высоту под ваши карточки */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
  font-weight: bold;
}

.schedules-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.time-slot-schedules {
  min-height: 120px; /* Такая же высота как у time-slot */
}

.schedule-card {
  cursor: pointer;
  transition: all 0.2s;
}

.schedule-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.schedule-card.selected-card {
  border: 2px solid #0d6efd;
}

.under-schedule {
  background-color: #f8f9fa;
  border-left: 4px solid #6c757d;
}

.empty-schedule {
  opacity: 0.7;
}

.hover-buttons-container:hover .hover-buttons {
  opacity: 1;
}

