.chatbot-float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    z-index: 1000;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.3s ease;
    animation: chatbotBob 2.8s ease-in-out infinite;
}

.chatbot-float-btn:hover {
    animation: none;
    transform: translateY(-4px) scale(1.08);
}

.chatbot-float-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 4px 14px rgba(59, 130, 246, 0.55))
            drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35));
    animation: chatbotIconGlow 3.2s ease-in-out infinite, chatbotAttentionBlink 7s linear infinite;
}

[data-theme="light"] .chatbot-float-icon {
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4))
            drop-shadow(0 6px 18px rgba(15, 23, 42, 0.18));
}

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

@keyframes chatbotIconGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 14px rgba(59, 130, 246, 0.55))
                drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35));
    }
    50% {
        filter: drop-shadow(0 6px 20px rgba(139, 92, 246, 0.65))
                drop-shadow(0 12px 28px rgba(59, 130, 246, 0.4));
    }
}

@keyframes chatbotAttentionBlink {
    0%, 28.57%, 100% {
        opacity: 1;
    }
    3.57% {
        opacity: 0.15;
    }
    7.14% {
        opacity: 1;
    }
    10.71% {
        opacity: 0.15;
    }
    14.28% {
        opacity: 1;
    }
    17.85% {
        opacity: 0.15;
    }
    21.42% {
        opacity: 1;
    }
    25% {
        opacity: 0.15;
    }
    28.57% {
        opacity: 1;
    }
}

.chatbot-float-btn:hover .chatbot-float-icon {
    animation: none;
    filter: drop-shadow(0 6px 22px rgba(96, 165, 250, 0.7))
            drop-shadow(0 12px 32px rgba(59, 130, 246, 0.45));
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .chatbot-float-btn,
    .chatbot-float-icon {
        animation: none;
    }
}

@media (max-width: 480px) {
    .chatbot-float-btn {
        bottom: 20px;
        right: 16px;
    }

    .chatbot-float-icon {
        width: 48px;
        height: 48px;
    }
}
