/* assets/css/front-reservation.css */
.reservation-btn {
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #231f20;
    border-color: #231f20;
}

.reservation-btn:hover {
    background-color: #3fcab1;
    border-color: #3fcab1;
}

#bookingModal .modal-lg {
    max-width: 900px;
}

.reservation-step {
    padding: 20px 0;
}

.datetime-row {
    margin-bottom: 15px;
}

.weekday-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.weekday-row .custom-control {
    min-width: 120px;
}

.time-inputs {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.time-inputs .form-control {
    width: 120px;
}

#availability-results {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.available-slot {
    padding: 8px;
    margin-bottom: 5px;
    background: #d4edda;
    border-radius: 4px;
    color: #155724;
}

.unavailable-slot {
    padding: 8px;
    margin-bottom: 5px;
    background: #f8d7da;
    border-radius: 4px;
    color: #721c24;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

#reservation-timer {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.required {
    color: #dc3545;
}

/* Calendar Styles */
#room-calendar {
    heeight: 600px;
}

.fc-event {
    cursor: pointer;
    padding: 2px 4px;
}

.fc-event-title {
    font-size: 0.9em;
}

/* Custom Checkbox Styles */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #231f20;
    border-color: #231f20;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(35, 31, 32, 0.25);
}

.custom-control-input:not(:disabled):active ~ .custom-control-label::before {
    background-color: #3fcab1;
    border-color: #3fcab1;
}

/* Flatpickr Customization */
.flatpickr-calendar {
    font-family: inherit;
}

.flatpickr-day.selected {
    background: #231f20;
    border-color: #231f20;
}

.flatpickr-day.today {
    border-color: #3fcab1;
}

.flatpickr-day.today:hover {
    background: #3fcab1;
    border-color: #3fcab1;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #dc3545;
}

.was-validated .form-control:invalid + .invalid-feedback,
.form-control.is-invalid + .invalid-feedback {
    display: block;
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #231f20;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .weekday-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .time-inputs {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .time-inputs .form-control {
        width: 100%;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-navigation button {
        width: 100%;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
}

.toast {
    background: white;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, .1);
    max-width: 350px;
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast.warning {
    border-left: 4px solid #ffc107;
}

/* Add these new styles */
.conflict-entry {
    background-color: #fff;
    border-color: #dc3545 !important;
}

.conflict-entry .conflict-info {
    font-weight: 500;
}

.conflict-entry .suggested-time {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

#confirmed-list li {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
}

#confirmed-list li i {
    margin-right: 8px;
}

.remove-conflict {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.gap-2 {
    gap: 0.5rem;
}

#availability-validation-results {
    margin-top: 20px;
}

#confirmed-times {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

#unavailable-times + #confirmed-times {
    margin-top: 30px;
}


