/* Chatbot Container Styles */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    z-index: 1000;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Toggle Button */
#chatbot-toggle {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    float: right;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#chatbot-toggle:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Chat Window */
#chatbot-window {
    display: none;
    flex-direction: column;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    height: 450px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Chat Header */
#chatbot-header {
    background: #4285f4;
    color: white;
    padding: 15px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 10px 10px 0 0;
}

/* Messages Container */
#chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}

/* Input Area */
#chatbot-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid #eee;
    background: white;
}

#chatbot_message {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: border 0.3s;
}

#chatbot_message:focus {
    border-color: #4285f4;
}

#chatbot-send {
    margin-left: 10px;
    padding: 10px 20px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

#chatbot-send:hover {
    background: #3367d6;
    transform: scale(1.05);
}

/* Message Styles */
.message {
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease;
}

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

.user-message {
    background: #4285f4;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background: #e9e9e9;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

/* Typing Indicator */
#typing-indicator {
    display: flex;
    padding: 10px 15px;
    margin: 8px 0;
    background: #e9e9e9;
    border-radius: 18px;
    max-width: 60px;
    border-bottom-left-radius: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #888;
    border-radius: 50%;
    margin: 0 3px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

@keyframes typingAnimation {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-3px); }
}

/* 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;
}

/* Add this to your existing CSS */
#chatbot-close {
    position: fixed;
    /*bottom: 20px;*/
    right: 20px;
    width: 50px;
    height: 47px;
    background: #ff4444;
    color: white;
    border: none;
    border-top-right-radius: 15%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    justify-content: center;
    align-items: center;
} 