/* Enhanced Booking System Styles - v2 */

/* Booked time slot styling */
.time-slot.booked {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    text-decoration: line-through !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    position: relative;
}

.time-slot.booked::after {
    content: '✕';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #dc3545;
}

.time-slot:not(.booked):hover {
    background-color: rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
}

.time-slot.selected {
    background-color: #4ecdc4 !important;
    color: white !important;
    border-color: #4ecdc4 !important;
    font-weight: 600;
}

/* Improved styles for the cat input section */
.cat-input {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.cat-input input {
    flex: 1;
    margin-right: 10px;
    padding-right: 30px;
}

.cat-input .remove-cat-btn {
    background-color: #f8d7da;
    color: #721c24;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cat-input .remove-cat-btn:hover {
    background-color: #e74c3c;
    color: white;
    transform: scale(1.05);
}

.add-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #e8f4f2;
    color: #4ecdc4;
    border: 1px solid #4ecdc4;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.add-cat-btn:hover {
    background-color: #d1eeea;
    transform: translateY(-1px);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

.toast {
    padding: 12px 16px;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s forwards;
    opacity: 0;
    transform: translateX(30px);
}

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

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

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

.toast.info {
    border-left: 4px solid #3498db;
}

.toast-icon {
    font-size: 18px;
}

.toast.success .toast-icon {
    color: #4ecdc4;
}

.toast.error .toast-icon {
    color: #e74c3c;
}

.toast.warning .toast-icon {
    color: #f39c12;
}

.toast.info .toast-icon {
    color: #3498db;
}

.toast-message {
    flex: 1;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #6c757d;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.toast.fade-out {
    animation: slideOut 0.3s forwards;
}

/* Booking recommendation */
.booking-recommendation {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f8f8;
    border-left: 4px solid #4ecdc4;
    border-radius: 4px;
    animation: fadeIn 0.5s ease;
}

.recommendation-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recommendation-content i {
    color: #4ecdc4;
    font-size: 1.2em;
}

.recommendation-content p {
    margin: 0;
    font-size: 0.95em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for better accessibility */
.time-slot:focus,
.location-card:focus,
button:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

/* Loading indicator for booking form */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 8px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(78, 205, 196, 0.3);
    border-radius: 50%;
    border-top: 4px solid #4ecdc4;
    animation: spin 1s linear infinite;
}

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

/* Form container position relative for overlay */
.form-container {
    position: relative;
}
