/* public_html/css/chatbot.css */

#ai-chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#ai-chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #00d4ff 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#ai-chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.7);
}

#ai-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #0a101f;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
    transform-origin: bottom right;
}

#ai-chatbot-window.ai-chatbot-hidden {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.ai-chatbot-header {
    background: linear-gradient(135deg, #152036 0%, #1a2942 100%);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.ai-chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00d4ff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-right: 15px;
    color: #0a101f;
}

.ai-chatbot-title h4 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.ai-chatbot-title p {
    margin: 0;
    font-size: 12px;
    color: #00d4ff;
}

#ai-chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    margin-left: auto;
    cursor: pointer;
    transition: color 0.2s;
}

#ai-chatbot-close:hover {
    color: #00d4ff;
}

.ai-chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-chat-message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.ai-chat-message.bot {
    background: rgba(255, 255, 255, 0.05);
    color: #d1d9e6;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.ai-chat-message.user {
    background: linear-gradient(135deg, #007bff 0%, #00d4ff 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.ai-chatbot-input-container {
    padding: 15px;
    background: #152036;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

#ai-chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

#ai-chatbot-input:focus {
    border-color: #00d4ff;
}

#ai-chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00d4ff;
    border: none;
    color: #0a101f;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

#ai-chatbot-send:hover {
    transform: scale(1.1);
}

/* Scrollbar styles for messages */
.ai-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

@media (max-width: 480px) {
    #ai-chatbot-window {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 99999;
    }
}

.ai-chatbot-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.ai-chatbot-option-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00d4ff;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-chatbot-option-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    color: white;
}