#hourlyBookingContainer {
    margin-top: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#hourlyBookingContainer label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.hourly-calendar {
    margin-top: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    position: relative;
}



.hour-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.hour-slot {
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
    background-color: white;
    min-width: 0;
}

.hour-slot:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hour-slot.available {
    background-color: #e8f5e9;
    border-color: #4caf50;
}

.hour-slot.selected {
    background-color: #4caf50;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hour-slot.unavailable {
    background-color: #ffebee;
    border-color: #f44336;
    cursor: not-allowed;
    opacity: 0.7;
}

.hour-slot.start-time {
    background-color: #2196f3;
    color: white;
}

.hour-slot.end-time {
    background-color: #ff9800;
    color: white;
}

.hour-slot.in-range {
    background-color: #bbdefb;
}

.hour-button {
    padding: 10px;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    background: white;
    color: #4CAF50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hour-button:hover:not(:disabled) {
    background: #f0f0f0;
}

.hour-button.selected {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.hour-button.booked {
    background: #f44336;
    color: white;
    cursor: not-allowed;
    border-color: #d32f2f;
}

.hour-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-hours {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .hourly-calendar {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .hourly-calendar {
        max-height: 200px;
    }
}



/* Стили для модального окна бронирования */
#bookingModal .modal-body {
    max-height: 70vh !important;
    overflow-y: auto !important;
    padding: 15px !important;
}

#bookingModal .modal-content {
    max-height: 80vh !important;
    overflow: hidden !important;
}

#bookingModal .modal-dialog {
    max-height: calc(100vh - 3.5rem) !important;
    margin: 1.75rem auto !important;
}

/* Убираем прокрутку у модального окна, если контент помещается */
@media (max-height: 600px) {
    #bookingModal .modal-body {
        max-height: 60vh !important;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    #bookingModal .modal-dialog {
        margin: 0.5rem !important;
        max-height: calc(100vh - 1rem) !important;
    }
    
    #bookingModal .modal-body {
        padding: 10px !important;
        max-height: 65vh !important;
    }
    
    #bookingModal .modal-content {
        max-height: 75vh !important;
    }
}

/* Кастомная прокрутка для модального окна */
#bookingModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#bookingModal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#bookingModal .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#bookingModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Для Firefox */
#bookingModal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
} 