.typing-animation::after {
    content: '';
    animation: typing 1.5s infinite;
}

@keyframes typing {
    0%, 50% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

.scroll-smooth {
    scroll-behavior: smooth;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.carousel-container {
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* Add this to your <style> section or style.css for better chat bubbles */
/* User (sender) bubble */
.user-message {
    background: linear-gradient(135deg, #00A859 60%, #2196f3 100%);
    color: #fff;
    align-self: flex-end;
    margin-left: 40px;
    margin-bottom: 10px;
    padding: 12px 18px;
    border-radius: 18px 18px 4px 18px;
    max-width: 80%;
    word-break: break-word;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    text-align: left;
}

/* AI (response) bubble */
.ai-message {
    background: #f3fef7;
    color: #222;
    align-self: flex-start;
    margin-right: 40px;
    margin-bottom: 10px;
    padding: 12px 18px;
    border-radius: 18px 18px 18px 4px;
    max-width: 80%;
    word-break: break-word;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 168, 89, 0.08);
    border: 1px solid #d1fae5;
    text-align: left;
}

/* Chat area scroll and spacing */
.flex-1.p-4.overflow-y-auto.text-gray-800 {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    padding-bottom: 10px;
}

/* Optional: make the chat input area stand out */
#chatbot-expanded .p-4.border-t {
    background: #f9fafb;
}