#sidos-chatbot-container {
    position: fixed;
    right: var(--chatbot-position-x);
    bottom: var(--chatbot-position-y);
    width: var(--chatbot-width);
    height: var(--chatbot-height);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 999999;
}

#sidos-chatbot-header {
    background: var(--chatbot-primary-color);
    color: var(--chatbot-text-color);
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sidos-chatbot-close {
    background: none;
    border: none;
    color: var(--chatbot-text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#sidos-chatbot-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

.message {
    margin-bottom: 10px;
    max-width: 80%;
    clear: both;
}

.user-message {
    float: right;
}

.bot-message {
    float: left;
}

.message-text {
    padding: 8px 12px;
    border-radius: 15px;
    display: inline-block;
    word-wrap: break-word;
}

.user-message .message-text {
    background: var(--chatbot-primary-color);
    color: var(--chatbot-text-color);
}

.bot-message .message-text {
    background: #f0f0f0;
    color: #333;
}

#sidos-chatbot-input {
    border-top: 1px solid #eee;
    padding: 15px;
    display: flex;
    gap: 10px;
}

#sidos-chatbot-textarea {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
    resize: none;
    height: 40px;
    font-family: inherit;
}

#sidos-chatbot-send {
    background: var(--chatbot-primary-color);
    color: var(--chatbot-text-color);
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
}

#sidos-chatbot-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#sidos-chatbot-toggle {
    position: fixed;
    right: var(--chatbot-button-position-x);
    bottom: var(--chatbot-button-position-y);
    background: var(--chatbot-primary-color);
    color: var(--chatbot-text-color);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999998;
}

#sidos-chatbot-toggle.active {
    transform: scale(0.9);
}

/* Scrollbar Styling */
#sidos-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#sidos-chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#sidos-chatbot-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#sidos-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Clear float after messages */
#sidos-chatbot-messages::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive Design */
@media (max-width: 480px) {
    #sidos-chatbot-container {
        width: 90vw;
        height: 70vh;
        right: 5vw;
        bottom: 80px;
    }

    #sidos-chatbot-toggle {
        right: 20px;
        bottom: 20px;
    }
}