

/* Chatbot icon */
.chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.chatbot-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.chatbot-icon:hover {
    transform: scale(1.1);
}




/* Chat modal window */
.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    /* max-height: 450px;  */
    height: 400px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden by default */
    z-index: 1002;
    animation: fadeIn 0.5s ease-in-out;

}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* chat header */
.chat-header {
    padding: 0px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #0c54a3;
    display: flex;
    height: 10%;
    justify-content: flex-end;
    align-items: center;
}

.chat-header .refresh-btn {
    font-size: 25px;
    margin-right: 15px;
    cursor: pointer;
    color: #ffffff;
}

.chat-header .close-btn {
    font-size: 30px;
    cursor: pointer;
    color: #ffffff;
}


/* Chat content */
.chat-content {
    display: flex;
    flex-direction: column;
    height: 93%;
    overflow-y: auto;
}

.chat-body {
    height: 84%;
    padding: 10px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    margin: 10px 0px 8px 0px;
    animation: fadeInUp 0.8s ease forwards; 
}

@keyframes fadeInUp {
    0% {
        opacity: 0; 
        transform: translateY(20px);
    }
    100% {
        opacity: 1; 
        transform: translateY(0); 
    }
}

.message-box {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.chatbot-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-message {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

.user-message .message-text {
    background-color: #0c54a3;
    color: white;
    margin-bottom: 0;
}

.message-text {
    background-color: #eaf0f6;
    padding: 10px;
    border-radius: 0px 8px 8px 8px;
    line-height: 20px;
    font-size: 14px !important;
    color: #425b76;
    margin-bottom: 0;
}

.message-time{
    font-size: 12px !important;
    color: #425b76;
    display: block;
    margin-top: 5px;
}

.response-button{
    padding: 8px;
    border-radius: 20px;
    border: 1px solid #0c54a3;
    background-color: white;
    color: #0c54a3;
    margin-top: 7px;
    cursor: pointer;
}

.message-end {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
.message-end p {
    font-size: 14px !important;
    color: #425b76;
    margin-bottom: 10px;
}
.message-end a {
    font-size: 14px;
    color: #ff6700;
    text-decoration: none;
}


/* input */
.chat-user-input {
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.chat-user-input input {
    width: 95%;
    height: 100%;
    border: none;
    outline: none;
    padding-left: 17px;
    padding-right: 17px;
    font-size: 15px;
    border-top: 1px solid #cfcfcf;
}



/* Media query for mobile screens */
@media (max-width: 768px) {
    .chatbot-icon {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .online-dot {
        width: 10px;
        height: 10px;
        bottom: 4px;
        right: 4px;
    }

    .chatbot-modal {
        width: 180px;
        bottom: 90px;
        right: 15px;
    }

    .chat-window {
        width: 250px;
        height: 350px;
        bottom: 90px;
        right: 15px;
    }
}