/* Enhanced Booking System Styles */

/* Loading states for selects */
.loading-select {
    position: relative;
    pointer-events: none;
}

.loading-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 30px;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

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

/* Success Modal Styles */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.success-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
    }
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.success-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Rubik', Arial, sans-serif;
}

.success-message {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-family: 'Rubik', Arial, sans-serif;
}

.success-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: right;
}

.success-details .detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.success-details .detail-row:last-child {
    margin-bottom: 0;
}

.success-details .detail-label {
    color: #495057;
    font-weight: 600;
}

.success-details .detail-value {
    color: #007bff;
    font-weight: 500;
}

.success-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.success-btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.success-btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.success-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

.success-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.success-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

/* Enhanced Notification Styles */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

#notification-container .alert {
    margin-bottom: 10px;
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth transitions for form elements */
.booking-form-control {
    transition: all 0.3s ease;
}

.booking-form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .success-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .success-buttons {
        flex-direction: column;
    }

    .success-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .success-details {
        text-align: center;
    }

    .success-details .detail-row {
        flex-direction: column;
        text-align: center;
        margin-bottom: 15px;
    }
}
