/* Chatbot CSS */
.chatbot-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chatbot-robot {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    animation: robotFloat 3s ease-in-out infinite;
    color: white;
    font-size: 24px;
    transition: transform 0.3s;
}

.chatbot-robot:hover {
    transform: scale(1.1);
}

@keyframes robotFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-window.active {
    transform: scale(1);
}

.chat-header {
    background: #059669;
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 12px;
    max-width: 85%;
    clear: both;
}

.chat-message.bot {
    float: left;
}

.chat-message.user {
    float: right;
}

.msg-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.bot .msg-bubble {
    background: white;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
    color: #1f2937;
}

.chat-message.user .msg-bubble {
    background: #059669;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-options {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    clear: both;
    float: left;
    width: 100%;
}

.chat-option-btn {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #059669;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.chat-option-btn:hover {
    background: #10b981;
    color: white;
}

.chat-input-area {
    padding: 12px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    font-size: 0.9rem;
}

.chat-input:focus {
    border-color: #10b981;
}

.chat-send-btn {
    background: #059669;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Mobile collection overlay */
.chat-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: white;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.chat-overlay input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
}

.chat-overlay button {
    width: 100%;
    padding: 10px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
}

@media (max-width: 480px) {
    .chatbot-wrapper {
        bottom: 90px;
        right: 20px;
    }
    .chatbot-window {
        width: calc(100vw - 40px);
        right: 0;
        bottom: 70px;
    }
}
