/* Floating Chatbot Styles - Optimized for Mobile & Desktop */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Floating Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0077cc, #1f2a40);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 119, 204, 0.3);
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 119, 204, 0.4);
}

/* Chat Panel */
.chatbot-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Chat Messages Area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 15px;
    max-height: 350px;
}

/* Message Styling */
.message {
    margin-bottom: 15px;
    max-width: 85%;
}

.user-message {
    margin-left: auto;
}

.bot-message {
    margin-right: auto;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.user-message .message-content {
    background: #0077cc;
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-panel {
        position: fixed;
        bottom: 90px;
        right: 10px;
        left: 10px;
        width: auto;
        height: 450px;
        max-width: calc(100vw - 20px);
    }
    
    .chatbot-toggle {
        right: 15px;
        bottom: 15px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .chatbot-messages {
        padding: 10px;
        max-height: 300px;
    }
    
    .message {
        max-width: 90%;
    }
}

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

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Header Styling */
.chatbot-header {
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #0077cc, #1f2a40) !important;
}

/* Input Area */
.chatbot-input {
    background: white;
    border-radius: 0 0 15px 15px;
    border-top: 1px solid #e0e0e0;
}

/* Animation */
.chatbot-panel.show {
    animation: slideUp 0.3s ease-out;
}

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