/* Premium Chatbot Widget Styles */
#ff-chatbot-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

#ff-chatbot-bubble:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

#ff-chatbot-bubble svg {
    width: 32px;
    height: 32px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

#ff-chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 350px;
    height: 500px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: -7%;
    font-size: 0.85rem;
}

#ff-chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

#ff-chatbot-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

#ff-chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#ff-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

#ff-chatbot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

#ff-chatbot-body::-webkit-scrollbar {
    width: 6px;
}

#ff-chatbot-body::-webkit-scrollbar-track {
    background: transparent;
}

#ff-chatbot-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-radius: 3px;
}

.ff-chatbot-msg-bot,
.ff-chatbot-msg-user {
    margin-bottom: 16px;
    display: flex;
    animation: messageSlide 0.4s ease-out;
}

.ff-chatbot-msg-bot {
    justify-content: flex-start;
}

.ff-chatbot-msg-user {
    justify-content: flex-end;
}

.ff-chatbot-msg-bot span {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    padding: 14px 18px;
    border-radius: 20px 20px 20px 6px;
    max-width: 85%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    line-height: 1.5;
    border: 1px solid rgba(226, 232, 240, 0.5);
    color: #334155;
    font-size: 14px;
}

.ff-chatbot-msg-user span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 18px;
    border-radius: 20px 20px 6px 20px;
    max-width: 85%;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    font-size: 14px;
}

#ff-chatbot-form {
    padding: 20px 24px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#ff-chatbot-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    resize: none;
    min-height: 20px;
    max-height: 100px;
    font-family: inherit;
}

#ff-chatbot-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#ff-chatbot-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    font-size: 14px;
}

#ff-chatbot-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#ff-chatbot-recommended {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    padding: 20px 24px;
    max-height: 180px;
    overflow-y: auto;
}

.ff-chatbot-recommended-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#ff-chatbot-recommended-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

#ff-chatbot-recommended-list li {
    padding: 12px 16px;
    background: linear-gradient(145deg, #f1f5f9 0%, #ffffff 100%);
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.5);
    color: #475569;
    font-weight: 500;
}

#ff-chatbot-recommended-list li:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

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

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

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

/* Mobile Responsive Design */
@media (max-width: 768px) {
    #ff-chatbot-window {
        width: calc(100vw - 32px);
        height: calc(100vh - 180px);
        bottom: 90px;
        right: 16px;
        left: 16px;
        top: 60px;
        border-radius: 20px;
    }
    
    #ff-chatbot-bubble {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    #ff-chatbot-bubble svg {
        width: 28px;
        height: 28px;
    }
    
    #ff-chatbot-header {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    #ff-chatbot-body {
        padding: 16px;
    }
    
    #ff-chatbot-form {
        padding: 12px 16px;
        gap: 8px;
    }
    
    #ff-chatbot-input {
        padding: 10px 14px;
        font-size: 16px;
        flex: 1;
        min-width: 0;
    }
    
    #ff-chatbot-send {
        padding: 10px 12px;
        flex-shrink: 0;
        min-width: 60px;
    }
    
    #ff-chatbot-recommended {
        padding: 16px 20px;
    }
    
    .ff-chatbot-msg-bot span,
    .ff-chatbot-msg-user span {
        max-width: 90%;
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #ff-chatbot-window {
        width: calc(100vw - 24px);
        height: calc(100vh - 170px);
        bottom: 90px;
        right: 12px;
        left: 12px;
        top: 60px;
        border-radius: 16px;
    }
    
    #ff-chatbot-bubble {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
    }
    
    #ff-chatbot-bubble svg {
        width: 26px;
        height: 26px;
    }
    
    #ff-chatbot-header {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    #ff-chatbot-body {
        padding: 12px;
    }
    
    #ff-chatbot-form {
        padding: 10px 12px;
        gap: 6px;
    }
    
    #ff-chatbot-input {
        padding: 8px 12px;
        font-size: 16px;
        flex: 1;
        min-width: 0;
    }
    
    #ff-chatbot-send {
        padding: 8px 10px;
        flex-shrink: 0;
        min-width: 50px;
        font-size: 13px;
    }
    
    #ff-chatbot-recommended {
        padding: 12px 16px;
    }
    
    #ff-chatbot-recommended-list li {
        padding: 8px 10px;
        font-size: 11px;
    }
}