/* ====================================
   FLOATING CHATBOT BUTTON STYLES
   ==================================== */

/* Button Container */
#floating-chatbot-btn {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    z-index: 998;
    text-decoration: none;
    outline: none;
    padding: 0;
}

/* Hover State */
#floating-chatbot-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
}

/* Focus State (Accessibility) */
#floating-chatbot-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Active State */
#floating-chatbot-btn:active {
    transform: scale(0.95);
}

/* Tooltip on Hover */
#floating-chatbot-btn::before {
    content: "Chat with us";
    position: absolute;
    left: 75px;
    bottom: 15px;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#floating-chatbot-btn::after {
    content: "";
    position: absolute;
    left: 70px;
    bottom: 22px;
    width: 0;
    height: 0;
    border-right: 6px solid #333;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

#floating-chatbot-btn:hover::before,
#floating-chatbot-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse Animation */
@keyframes chatbot-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
    }

    100% {
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    }
}

#floating-chatbot-btn.pulse {
    animation: chatbot-pulse 2s infinite;
}

/* Badge for unread messages (if needed) */
#floating-chatbot-btn .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #ff6b6b;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #floating-chatbot-btn {
        bottom: 85px;
        left: 20px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    #floating-chatbot-btn::before {
        display: none;
    }

    #floating-chatbot-btn::after {
        display: none;
    }
}

@media (max-width: 480px) {
    #floating-chatbot-btn {
        bottom: 80px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}