/* Overscale AI Assistant Chatbot Styles */

#osai-chatbot-container {
    position: relative;
    z-index: 9999;
}

/* Chatbot Button (Floating) */
#osai-chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

#osai-chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#osai-chatbot-button.hidden {
    display: none;
}

/* Chatbot Widget */
#osai-chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

#osai-chatbot-widget.open {
    transform: translateY(0);
    opacity: 1;
}

/* Chatbot Header */
#osai-chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#osai-chatbot-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#osai-chatbot-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

#osai-chatbot-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Messages Container */
#osai-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#osai-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#osai-chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#osai-chatbot-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#osai-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Message Styles */
.osai-message {
    display: flex;
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.osai-message.user {
    justify-content: flex-end;
}

.osai-message.assistant {
    justify-content: flex-start;
}

.osai-message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.4;
}

.osai-message.user .osai-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.osai-message.assistant .osai-message-content {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

/* Time Slots */
.osai-time-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.osai-time-slot {
    padding: 10px 14px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 14px;
}

.osai-time-slot:hover {
    background: #667eea;
    color: white;
}

.osai-time-slot.selected {
    background: #667eea;
    color: white;
}

/* Booking Form */
.osai-booking-form {
    margin-top: 12px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.osai-booking-form input,
.osai-booking-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.osai-booking-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.osai-booking-form button:hover {
    opacity: 0.9;
}

.osai-booking-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Indicator */
.osai-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Input Container */
#osai-chatbot-input-container {
    padding: 16px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
    border-radius: 0 0 12px 12px;
}

#osai-chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

#osai-chatbot-input:focus {
    border-color: #667eea;
}

#osai-chatbot-send {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}

#osai-chatbot-send:hover {
    opacity: 0.9;
}

#osai-chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    #osai-chatbot-widget {
        width: calc(100vw - 20px);
        height: calc(100vh - 20px);
        bottom: 10px;
        right: 10px;
    }
    
    #osai-chatbot-button {
        bottom: 10px;
        right: 10px;
    }
}

