/* CSS for Thinking Animation */
.bubble-container {
    position: absolute;
    top: 400px; /* Position below avatar */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    pointer-events: none;
    z-index: 999;
    display: none; /* Hidden by default */
   
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top:40px;
    padding: 0 15px;
    
}


.thinking-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #007bff;
    margin: 0 3px;
    animation: thinking-animation 1.4s infinite ease-in-out;
}

.thinking-dot:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes thinking-animation {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.fade-out {
    animation: fade-out 0.5s forwards;
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Thinking text label */
.thinking-label {
    color: #f5ecf5;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-right: 5px;
    font-family: 'Raleway', sans-serif;
    display: inline-block;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .bubble-container {
        width: auto;
        top: 410px;
        padding: 0 12px;
    }
    
    .thinking-dot {
        width: 6px;
        height: 6px;
        margin: 0 2px;
    }
    
    .thinking-label {
        font-size: 12px;
    }
    
    @keyframes thinking-animation {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-4px);
        }
    }
}
