/* Service Booking Module Styles */

.service-booking-module {
    padding: 20px 0;
}

.service-booking-filters {
    text-align: center;
}

.service-booking-filters .btn-group {
    gap: 5px;
}

.service-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Booking Calendar */
.booking-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.booking-calendar .calendar-header {
    font-weight: bold;
    text-align: center;
    padding: 10px 5px;
    font-size: 12px;
    color: #6c757d;
}

.booking-calendar .calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.booking-calendar .calendar-day:hover:not(.disabled):not(.empty) {
    background-color: #e9ecef;
    border-color: #0d6efd;
}

.booking-calendar .calendar-day.empty {
    border: none;
    cursor: default;
}

.booking-calendar .calendar-day.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.booking-calendar .calendar-day.available {
    background-color: #d4edda;
    border-color: #28a745;
}

.booking-calendar .calendar-day.selected {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.booking-calendar .calendar-day .day-number {
    font-weight: bold;
}

.booking-calendar .calendar-day .day-price {
    font-size: 10px;
    color: #28a745;
}

.booking-calendar .calendar-day.selected .day-price {
    color: rgba(255, 255, 255, 0.8);
}

/* Time Slots */
.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.time-slot {
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.time-slot.selected {
    border-color: #0d6efd;
    background-color: #0d6efd;
    color: white;
}

.time-slot .slot-time {
    font-weight: bold;
    font-size: 16px;
}

.time-slot .slot-price {
    font-size: 12px;
    margin-top: 5px;
}

.time-slot .slot-remaining {
    font-size: 11px;
    color: #6c757d;
}

.time-slot.selected .slot-price,
.time-slot.selected .slot-remaining {
    color: rgba(255, 255, 255, 0.8);
}

/* Booking Summary */
.booking-summary {
    border-left: 4px solid #0d6efd;
}

/* Modal Buttons */
.service-booking-module .modal-footer .btn-submit-booking {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
    opacity: 1 !important;
}

.service-booking-module .modal-footer .btn-submit-booking:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
}

/* Modal responsive */
@media (max-width: 768px) {
    .service-booking-module .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .service-booking-module .modal-body {
        padding: 0.75rem;
    }

    .booking-calendar {
        gap: 3px;
    }

    .booking-calendar .calendar-header {
        padding: 5px 2px;
        font-size: 11px;
    }

    .booking-calendar .calendar-day {
        font-size: 11px;
        padding: 3px;
        min-height: 50px;
        aspect-ratio: auto;
    }

    .booking-calendar .calendar-day .day-number {
        font-size: 13px;
    }

    .booking-calendar .calendar-day .day-price {
        font-size: 8px;
        line-height: 1.1;
    }

    .time-slots-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-calendar-nav .btn {
        padding: 0.25rem 0.5rem;
    }

    .calendar-month-label {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .booking-calendar .calendar-day {
        font-size: 10px;
        min-height: 45px;
    }

    .booking-calendar .calendar-day .day-number {
        font-size: 12px;
    }

    .booking-calendar .calendar-day .day-price {
        font-size: 7px;
    }

    .booking-calendar .calendar-header {
        font-size: 10px;
    }
}
