/* ============================================================================
   TYPING INDICATOR - Sparkles Stars Animation
   ============================================================================ */ 

/* Container for the three stars */
.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 8px 0;
    align-items: center;
}

/* Individual star wrapper */
.typing-indicator span {
    width: 14px;
    height: 14px;
    display: inline-block;
    animation: sparkle 1.4s infinite ease-in-out;
}

/* SVG star element */
.typing-indicator span svg {
    width: 100%;
    height: 100%;
}

/* Stagger the animation for wave effect */
.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0s;
}

/* Sparkle animation: pulse, rotate, and glow */
@keyframes sparkle {
    0%, 80%, 100% {
        transform: scale(0.7) rotate(0deg);
        opacity: 0.3;
        filter: brightness(0.75) drop-shadow(0 0 2px currentColor);
    }
    40% {
        transform: scale(1.3) rotate(90deg);
        opacity: 1;
        filter: brightness(1.70) drop-shadow(0 0 8px currentColor);
    }
}

/* Base agent (Morgana) - Primary purple color */
.typing-indicator.base svg {
    fill: var(--primary-color);
}

/* Specialized agents (Billing, ...) - Secondary pink color */
.typing-indicator.specialized svg {
    fill: var(--secondary-color);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .typing-indicator span {
        animation: none;
        opacity: 0.7;
    }
}