#edge-geo-ai-chat-view {
    position: relative;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    border-radius: 12px;
    border: 1px solid transparent;
}

#edge-geo-ai-chat-view[data-dash-is-loading="true"] {
    border: 2px solid rgba(66, 99, 235, 0.8);
    box-shadow: 0 0 0 4px rgba(66, 99, 235, 0.28);
}

#edge-geo-ai-chat-view[data-dash-is-loading="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        120deg,
        rgba(66, 99, 235, 0.18) 0%,
        rgba(255, 255, 255, 0.0) 45%,
        rgba(66, 99, 235, 0.18) 90%
    );
    animation: edge-geo-ai-chat-shimmer 1.5s ease-in-out infinite;
    pointer-events: none;
}

.chat-input-shell {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.chat-input-shell.processing {
    transform: translateZ(0);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.22),
        0 12px 26px rgba(76, 93, 226, 0.18),
        0 24px 40px rgba(91, 110, 243, 0.12);
}

.chat-input-shell.processing::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.18), transparent 65%),
        radial-gradient(circle at 75% 45%, rgba(129, 140, 248, 0.18), transparent 70%);
    filter: blur(18px);
    opacity: 0.38;
    animation: shell-pulse 4.5s ease-in-out infinite;
}

@keyframes shell-pulse {
    0% {
        opacity: 0.32;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.01);
    }
    100% {
        opacity: 0.32;
        transform: scale(0.96);
    }
}

@keyframes edge-geo-ai-chat-shimmer {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}
