/* Chatbot Styles */
.chatbot {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.chatbot * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Typing animation */
@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.typing-dots {
    display: flex;
    align-items: flex-end;
    height: 20px;
    padding-bottom: 5px;
}

.typing-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #6b7280;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1s infinite ease-in-out;
}

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

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

/* Chatbot header */
.chatbot-header {
    transition: background 0.3s ease;
}

.chatbot-header:hover {
    background: #1e40af !important;
}

/* Chatbot messages */
.chatbot-messages {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f3f4f6;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f3f4f6;
}

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

/* Chatbot input */
.chatbot-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .chatbot {
        width: 100% !important;
        max-width: 100% !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        height: 100% !important;
        max-height: 100% !important;
        transform: translateY(calc(100% - 60px)) !important;
    }

    .chatbot.chatbot-open {
        transform: translateY(0) !important;
    }
}

/* Animation for message appearance */
@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-message {
    animation: messageAppear 0.3s ease-out;
    animation-fill-mode: both;
}

/* Quick reply buttons */
.chatbot-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chatbot-quick-reply {
    background: #e5e7eb;
    border: none;
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chatbot-quick-reply:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}