
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes messageSlide {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-message-slide {
    animation: messageSlide 0.3s ease-out;
}

/* Chat message styling */
.message.ai .bg-surface-light {
    border-top-left-radius: 0;
}

.message.user .bg-primary\/20 {
    border-top-right-radius: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #111827;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Glow effects */
.glow-primary {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.glow-secondary {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* Input focus */
.focus-ring-primary:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: transparent;
    width: 100%;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* API status */
#apiStatus {
    transition: all 0.3s ease;
}

/* Stop button animation */
#stopButton {
    animation: pulse-slow 2s infinite;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .message {
        flex-direction: column;
        align-items: flex-start;
    }
    .message.user {
        align-items: flex-end;
    }
}
/* Image generation preview */
.image-gen-preview {
    margin-top: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid #4b5563;
    max-width: 400px;
}

.image-gen-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-gen-preview img:hover {
    transform: scale(1.02);
}
