/* Add your existing CSS styles */
#chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e89747;
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center; 
}

#chatbot-button:hover {
    background-color: #0056b3;
}


#chatbot-button:hover {
    background-color: #0056b3;
}


#chatbox-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: auto;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
 
   /* border: 8px solid transparent;   */
    border-radius: 15px;
}

#chatbox {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease-in-out;
}

.closed #chatbox {
    height: 0;
}

.open #chatbox {
    height: 400px; /* Increase the height to your desired value */
}

#chat-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
}
#typingIndicator {
    display: none;
    margin-left: 10px;
}

.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #007BFF;
    border-radius: 50%;
    margin-right: 2px;
    animation: typing-dot-animation 1s infinite;
}

@keyframes typing-dot-animation {
    0%, 20%, 40% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}
.chat-header {
    background-color: #e89747;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.close-button {
    cursor: pointer;
}

#userInput {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#inputMessage {
    flex-grow: 1;
    padding: 5px;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
}

#sendMessage {
    background-color: #e89747;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#blinkText {
    animation: blink 1s infinite;
}
#blinkTe{
    animation: blink 1s infinite;
}
.message.bot {
    background-color: #f0f0f0;
    color: #333;
    border-radius: 20px 20px 20px 0;
    padding: 10px;
    margin: 10px;
    max-width: 70%;
    float: left;
    clear: both;
    position: relative;
}

.message.bot::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px; 
    border-width: 10px;
    border-style: solid;
    border-color: transparent #f0f0f0 transparent transparent;
}
.message.user {
    background-color: #0074e4;
    color: #fff;
    border-radius: 20px 20px 0 20px;
    padding: 10px;
    margin: 10px;
    max-width: 70%; 
    float: right;
    clear: both;
    position: relative;
}

.message.user::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    border-width: 10px 0 0 10px;
    border-style: solid;
    border-color: transparent transparent transparent #0074e4;
}

