/* Floating Chat Widget CSS */
#flux-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: inherit;
}

#flux-chat-button {
    background-color: #ec4899; /* Tailwind pink-500 */
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(236,72,153,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pulse-pink 2s infinite;
}

@keyframes pulse-pink {
    0% { box-shadow: 0 0 0 0 rgba(236,72,153, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(236,72,153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236,72,153, 0); }
}

#flux-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(236,72,153,0.6);
    animation: none;
}

#flux-chat-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    flex-direction: column;
}

#flux-chat-window.active {
    display: flex;
}

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

#flux-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

#flux-chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flux-chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.flux-chat-msg.customer {
    background-color: #ec4899;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.flux-chat-msg.admin {
    background-color: #e5e7eb;
    color: #000;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

#flux-chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}

#flux-chat-input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    color: #000;
}

#flux-chat-send {
    background-color: #ec4899;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

#flux-chat-send:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #flux-chat-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        
        height: 100%; box-sizing: border-box;
        border-radius: 0;
        z-index: 100000;
        display: none;
        flex-direction: column;
    }
    #flux-chat-window.active {
        display: flex;
    }
    #flux-chat-header {
        border-radius: 0;
    }
    #flux-chat-button {
        bottom: 20px;
        right: 20px;
    }
}
