@keyframes webitaMessageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes webitaTyping {
    0%, 60%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

#webita-chat-messages::-webkit-scrollbar {
    width: 4px;
}

#webita-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#webita-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    animation: webitaMessageSlideIn 0.25s ease-out;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
}

.thinking-cloud {
    display: flex;
    align-items: center;
    margin: 10px 0;
    max-width: 80px;
    position: relative;
}

.cloud-icon {
    position: relative;
    width: 60px;
    height: 35px;
    border-radius: 50px;
    border: 1px solid #e9ecef;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thinking-cloud::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    background: #ffffff;
    bottom: -15px;
    left: 15px;
}

.thinking-cloud::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    background: #ffffff;
    bottom: -25px;
    left: 10px;
}

.dots {
    display: flex;
    gap: 3px;
}

.dot {
    width: 4px;
    height: 4px;
    background: #0077ff;
    border-radius: 50%;
    animation: webitaTyping 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@media (max-width: 480px) {
    #webita-chat-container {
        width: calc(100% - 20px) !important;
        height: calc(100% - 100px) !important;
        bottom: 10px !important;
        right: 10px !important;
        left: 10px !important;
    }
}
