.thinking-indicator .dots {
    display: flex; 
    align-items: center;
}

.thinking-indicator .dots span {
    display: inline-block;
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, #b1b1b1, #b0b0b0); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
    margin-right: 6px; 
    animation: bounce 1.5s infinite ease-in-out;
    transform-origin: bottom center;
}


.thinking-indicator .dots span:nth-child(1) {
    animation-delay: 0.1s;
}

.thinking-indicator .dots span:nth-child(2) {
    animation-delay: 0.5s;
}

.thinking-indicator .dots span:nth-child(3) {
    animation-delay: 0.8s;
}

/* Animazione di rimbalzo */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.1);
    }
}

/* Sscrollbar */

.chatAi-chat-history {
    scrollbar-width: thin; 
    scrollbar-color: #4e73df transparent; 
    overflow: hidden; 
    position: relative;
}

.chatAi-chat-history::-webkit-scrollbar {
    width: 8px;
}

.chatAi-chat-history::-webkit-scrollbar-track {
    background: #f0f0f000; 
    border-radius: 10px;
}

.chatAi-chat-history::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c5c5c5, #818181);
    border-radius: 10px;
    transition: background 0.3s ease-in-out;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2); 
}


.chatAi-chat-history::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a0a0a1, #4f4f50);
}


.clear-chat-icon {
    position: sticky; 
    top: 3px; 
    left: 3px;
    padding-left: 2px; 
    width: 40px;
    height: 40px;
    display: flex; 
    justify-content: center;
    align-items: center;
    font-size: 16px;
    background: radial-gradient(circle, #ffffff, #f0f0f0); 
    color: #666;
    border-radius: 50%; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    z-index: 1000;
}


.clear-chat-icon:hover {
    background: radial-gradient(circle, #b1b0b0, #8a8989); 
    color: #ff0000;
    text-decoration: none;
}








