/* AI Chatbot Frontend Styles */

#ai-chatbot-container {
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#ai-chatbot-container.show {
    animation: slideIn 0.3s ease;
}

#ai-chatbot-container.hide {
    animation: slideOut 0.3s ease;
}

#ai-chatbot-toggle {
    transition: all 0.2s ease;
    cursor: pointer;
}

#ai-chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#ai-chatbot-close {
    transition: color 0.2s ease;
}

#ai-chatbot-close:hover {
    color: #333;
}

#ai-chatbot-input {
    transition: border-color 0.2s ease;
}

#ai-chatbot-input:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 0 2px rgba(0, 115, 230, 0.2);
}

#ai-chatbot-send {
    transition: all 0.2s ease;
}

#ai-chatbot-send:hover {
    background: #005bb5;
    transform: translateY(-1px);
}

#ai-chatbot-send:active {
    transform: translateY(0);
}

#ai-chatbot-messages div {
    transition: opacity 0.3s ease;
    animation: fadeIn 0.3s ease;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #ai-chatbot-container {
        width: 90vw !important;
        height: 70vh !important;
        left: 5vw !important;
        right: 5vw !important;
        bottom: 20px !important;
    }
    
    #ai-chatbot-toggle {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Scrollbar styling */
#ai-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#ai-chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#ai-chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#ai-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
