/* Chatbot Styles */
#chatbot-container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Smooth animations */
#chat-window {
    animation: slideUp 0.3s ease-out;
    transform-origin: bottom right;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Message animations */
#chat-messages > div {
    animation: fadeIn 0.3s ease-out;
}

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

/* Typing indicator bounce */
@keyframes bounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    #chat-window {
        width: calc(100vw - 2rem);
        max-height: calc(100vh - 6rem);
        bottom: 5rem;
        right: 1rem;
    }
    
    #chat-messages {
        height: calc(100vh - 20rem);
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    #chat-window {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
}

/* Scrollbar styling */
#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.dark #chat-messages::-webkit-scrollbar-thumb {
    background: #4a5568;
}

/* Button hover effects */
.quick-action {
    transition: all 0.2s ease;
}

.quick-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Focus styles for accessibility */
#chat-input:focus,
#user-email:focus,
#user-phone:focus {
    outline: none;
    ring-color: #3b82f6;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error states */
.error {
    border-color: #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}