/* Chatbot Container */
#chatbot-container {
    z-index: 9998; 
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    border: 1px solid #ccc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    font-family: "Arial", sans-serif;
    overflow: hidden;
}

/* Chatbot Header */
#chatbot-header {
    background: rgba(156, 33, 39, 1);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Chatbot Messages */
#chatbot-messages {
    flex-grow: 1;
      padding: 15px;
    overflow-y: auto;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
	height: 360px;
}

/* Message Bubbles */
.user-message, .bot-message {
    padding: 10px 14px;
    margin: 5px;
    border-radius: 16px;
    max-width: 75%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.user-message {
    background: rgba(156, 33, 39, 1);
    color: white;
    align-self: flex-end;
}

.bot-message {
    background: #e0e0e0;
    align-self: flex-start;
}

/* Chat Input Container */
#chatbot-input-container {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #ddd;
    position: absolute;
    bottom: 0;
    width: 93%;
}

/* Chat Input Field */
#chatbot-input {
    flex-grow: 1;
	padding: 10px 14px;
	margin: 2px 10px 0px 12px;
    border: 1px solid #ccc;
    border-radius: 40px;
    font-size: 14px;
	width: 55%;
}

/* Send Button */
#chatbot-send {
    background: rgba(156, 33, 39, 1);
    color: white;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

#chatbot-send i {
    font-size: 18px;
}


/* Floating Chat Button */
#chatbot-toggle {
    z-index: 9999;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(156, 33, 39, 1);
    color: white;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.2s ease;
    
}

#chatbot-toggle:hover {
    background: rgba(136, 23, 29, 1);
    transform: scale(1.1);
}

@keyframes typing-dots {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    40% { opacity: 0.2; }
    60% { opacity: 1; }
    80% { opacity: 0.2; }
    100% { opacity: 1; }
}

.typing .dots {
    display: inline-block;
    font-size: 20px;
    animation: typing-dots 1.5s infinite;
}

.typing .dots:nth-child(1) { animation-delay: 0s; }
.typing .dots:nth-child(2) { animation-delay: 0.2s; }
.typing .dots:nth-child(3) { animation-delay: 0.4s; }

