/* Floating Toggle Button */
#chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    cursor: grab;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    color: white;
}

#chatbot-toggle:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.5);
}

#chatbot-toggle:active {
    transform: scale(0.95);
}

.chatbot-toggle-icon {
    font-size: 26px;
    line-height: 1;
    display: block;
    transition: transform 0.3s ease;
}

.chatbot-toggle-close {
    font-size: 20px;
    line-height: 1;
    display: none;
    transition: transform 0.3s ease;
}

/* Visibility State Changes for Toggle */
#chatbot-toggle.chatbot-visible {
    background: #1e293b;
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.3);
}

#chatbot-toggle.chatbot-visible .chatbot-toggle-icon {
    display: none;
}

#chatbot-toggle.chatbot-visible .chatbot-toggle-close {
    display: block;
    transform: rotate(90deg);
}

/* Pulse animation on load */
.chatbot-pulse {
    animation: chatbot-pulse-anim 2s infinite;
}

@keyframes chatbot-pulse-anim {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}
