.modal-Calendar {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}


.Calendar-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn-Calendar {
  border-radius: 5px;
  padding: 10px 20px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  cursor: pointer;
}

.tab-btn-Calendar.active {
  background: #007bff;
  border-bottom: 2px solid #4a90e2;
  font-family: "TT-Hoves-Pro-Expanded-DemiBold";
  color: white;
}

.date-block {
  margin-bottom: 30px;
}

/* Основные стили контейнера дашборда */
.Calendar-content {
  overflow-y: auto;
  padding: 20px;
  font-family: 'TT Hoves Pro Expanded';
}

.Calendar-header {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
}

.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stats span {
  font-family: 'TT-Hoves-Pro-Expanded-DemiBold'
  color: #333;
}

/* Стили для блоков дат */
.date-block {
  margin-bottom: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.date-header {
  background: #4a90e2;
  color: white;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: bold;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  padding: 15px;
}

/* Стили для контейнеров временных слотов */
.slot-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-label {
  background: #f0f0f0;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  color: #555;
}

/* Стили кнопок слотов */
.slot-button {
  padding: 12px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
}

.slot-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Стиль для свободных слотов */
.slot-button.free {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* Стиль для занятых слотов */
.slot-button.occupied {
  background: #fff3e0;
  color: #ef6c00;
  border: 1px solid #ffb74d;
}



/* Разделитель между секциями */
.section-divider {
  height: 1px;
  background: #eee;
  margin: 15px 0;
  border-top: 1px dashed #ccc;
}

/* Стили для информации о помещении */
.property-info {
  margin: 15px 0;
}

.property-type {
  font-weight: bold;
  color: #4a90e2;
}

/* Стили для контактов владельцев */
.contact-info {
  margin: 10px 0;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
}

.contact-name {
  font-weight: bold;
  color: #333;
}

.contact-details {
  color: #666;
  font-size: 13px;
}

/* Модальное окно информации о слоте */
#modal-slot-info {
  font-family: 'TT Hoves Pro Expanded';
  display: none;
  position: fixed;
  left: 0;
  width: 100%;
  height: 100vh; 
  min-height: 100vh; 
  background-color: #D7DEE6;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 20px)
            env(safe-area-inset-right, 20px)
            env(safe-area-inset-bottom, 20px)
            env(safe-area-inset-left, 20px);
  box-sizing: border-box;
  position: relative;
}

.modal-content-slot-info {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 95vw;
  max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 60px); 
  overflow-y: auto;
  width: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}
/* Контейнер для контента модального окна — добавляем скролл */
.modal-body {
  padding: 30px;
  max-height: calc(90vh - 60px); /* Учитываем padding и высоту заголовка */
  overflow-y: auto;
}

.modal-content-slot-info h3 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #4a90e2;
  padding-bottom: 10px;
}

/* Кнопка закрытия модального окна */
.close-modal-slot-info {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  z-index: 10;
  background: none;
  border: none;
  line-height: 1;
}

.close-modal-slot-info:hover {
  color: #333;
}



@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Вкладки дашборда */
.tab-btn-Calendar {
  padding: 10px 20px;
  border: none;
  background: #f0f0f0;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  margin-right: 5px;
}



/* Адаптивность */
@media (max-width: 768px) {
  .time-slots {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-direction: column;
    gap: 10px;
  }

  .modal-content-info-slots {
    margin: 20px;
    max-width: calc(100% - 40px);
  }
}
.slot-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-contact {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-warning {
    font-size: 11px;
    color: #e74c3c;
    margin-top: 4px;
    text-align: center;
}

/* Улучшаем отображение в кнопке */
.slot-button {
    text-align: left;
    padding: 10px 12px;
}
