/* Chatbot UI Enhancements */

/* Scrollable container */
.chat-msg-area {
    max-height: 400px;
    /* Fixed maximum height */
    overflow-y: auto;
    /* Scrollable */
    scrollbar-width: thin;
    /* Firefox */
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
}

/* Scrollbar styling for Webkit (Chrome, Safari) */
.chat-msg-area::-webkit-scrollbar {
    width: 6px;
}

.chat-msg-area::-webkit-scrollbar-track {
    background: transparent;
}

.chat-msg-area::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Typing Indicator (Spinner + Text) */
/* Matching the style found in web-chat-v2 App.tsx */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    /* Faded text color similar to caption */
    font-size: 0.75rem;
    /* Caption size */
    margin-top: 8px;
    margin-left: 12px;
    margin-bottom: 8px;
}

.typing-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #602cfb;
    /* Primary brand color */
    border-radius: 50%;
    animation: bellagent-spin 1s linear infinite;
}

@keyframes bellagent-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}