#chatbot-icon {
    position: fixed;
    right: 10px;
    bottom: 65px;
    z-index: 1000;
    cursor: pointer;
}

#chatbot-icon img {
    width: 50px;
    height: 50px;
    border-radius: 10%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

#chatbot-window {
    position: fixed;
    right: 10%;
    top: 10%;
    width: 80%;
    height: 66%;
    background: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1001;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

#chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

#language-selector {
    margin-right: auto;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

#close-chatbot {
    background: none;
    color: #000;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 24px;
    border-radius: 5px;
}

#close-chatbot:hover {
    color: #ff0000;
}

#chatbot-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

#chatbot-content::-webkit-scrollbar {
    width: 8px;
}

#chatbot-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

#chatbot-content::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

.chatbot-button {
    background-color: lightgrey;
    color: black;
    padding: 10px;
    display: inline-block;
    cursor: pointer;
    border-radius: 10px;
    text-align: center;
    user-select: none;
}

.chatbot-button:active {
    background-color: darkgrey;
}

#button-container {
    display: none;
}

.upload-label {
    font-style: normal;
    color: #888;
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
}

.mwai-upload-preview {
    display: block;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-width: 100%;
    max-height: 150px;
}

@media (max-width: 768px) {
    .chatbot-button {
        background-color: darkgrey;
        width: 80px;
        height: auto;
        padding: 2px;
        font-size: 9px;
    }

    #chatbot-window {
        position: fixed;
        top: 10px;
        right: 10px;
        width: 90vw;
        max-width: 370px;
        height: 95vh;
        max-height: 95vh;
        bottom: 0px;
        background: white;
        border: 1px solid #ccc;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        display: none;
        flex-direction: column;
        border-radius: 10px;
        overflow: hidden;
        z-index: 1000;
    }

    #chatbot-icon {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #chatbot-content {
        height: 200px;
        max-height: 600px;
        overflow-y: auto;
    }

    #chatbot-icon img {
        position: absolute;
        width: 50px;
        height: 50px;
        cursor: pointer;
    }

    #chatbot-icon img:hover {
        opacity: 0.8;
        transform: scale(1.05);
        transition: all 0.2s ease-in-out;
    }
}
