.chatbot-container{
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 999;
}
.chatbot{
    width: 300px;
    height: 400px;
}

.chatbot-button{
    background: transparent;
    border: none;
    width: 100px;
    height: 85px;
    cursor: pointer;
}

.chatbot-button img{
    width: 100%;
    height: 100%;
}

.chat{
    display: flex;
    justify-content: center;
    align-items: center;
}

.chatbot-header{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

#closeChatbot{
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: #333; 
    background: linear-gradient(135deg, #1d2671, #c33764); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
}

#closeChatbot:hover{
    color: #000080;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.chat .login-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.chat h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333; 
    background: linear-gradient(135deg, #1d2671, #c33764); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
}

.chat input {
    width: calc(100% - 20px);
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.chat .error {
    color: red;
    margin-top: 10px;
}
/* Chatbot Container */
.chat #chatbot-container {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

/* Chat Messages */
.chat #chatbot-messages {
    padding: 10px;
    height: 200px;
    overflow-y: auto;
    background-color: #fff;
    color: #000000;
}

/* User Message */
.chat .user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, #1d2671, #c33764); 
    color: #fff;
    padding: 10px;
    margin: 5px 0;
    border-radius: 10px;
    max-width: 70%;
    word-wrap: break-word;
}


/* Bot Message */
.chat .bot-message {
    align-self: flex-start;
    background: #e9ecef;
    color: #333;
    padding: 10px;
    margin: 5px 0;
    border-radius: 10px;
    max-width: 70%;
    word-wrap: break-word;
}

/* Typing Indicator */
.chat #typing-indicator {
    font-style: italic;
    color: #666;
}

/* Chat Input */
.chat #chat-input {
    width: calc(100% - 90px);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin: 10px;
    outline: none;
}

.btn-container{
    background: linear-gradient(135deg, #1d2671, #c33764); 
    padding: 2px 2px;
    border-radius: 5px;
}

.chatbot-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 5px;
}

/* Send Button */
#send-btn {
    color: #333; 
    background: linear-gradient(to right, red, purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

#send-btn:hover, .chat #voice-btn:hover {
    color: #000080;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* Voice Button */
#voice-btn {
   background: transparent;
    border: none;
    cursor: pointer;
    color: #333; 
    background: linear-gradient(to right, red, purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    font-size: 1.5rem;
}

/* Timestamp */
.chat .timestamp {
    font-size: 10px;
    color: #999;
    display: block;
    margin-top: 5px;
    text-align: right;
}

.chat .chatbot-container {
    width: 300px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);
}

.chat #chatbox {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
}

.chat input[type="text"] {
    width: 70%;
    padding: 10px;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .chatbot-container{
        bottom: 100px;
        right: 30px;
    }
    .chatbot-button{
        width: 80px;
        height: 70px;
    }
    .chat .chatbot-container {
        width: 95%;
        height: 100%;
        top: 0;
        left: 0;
    }
    .btn-container {
        background: linear-gradient(135deg, #1d2671, #c33764);
        padding: 2px 2px;
        border-radius: 5px;
        position: absolute;
        bottom: 130px;
        width: 85%;
    }
    .chat #chatbot-messages{
        height: 400px;
    }
}

