/* Container for the whole widget */
#sindbad-ai-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* The floating bubble button */
#sindbad-ai-chat-bubble {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ff8a3c;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 26px;
    border: none;
    outline: none;
}

/* Simple tooltip-like label on hover (optional) */
#sindbad-ai-chat-bubble-label {
    position: absolute;
    right: 70px;
    bottom: 18px;
    background: #222;
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.2s ease;
}

#sindbad-ai-chat-bubble:hover + #sindbad-ai-chat-bubble-label {
    opacity: 1;
    transform: translateX(0);
}

/* Chat panel */
#sindbad-ai-chat-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    max-height: 480px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
}

/* Header */
#sindbad-ai-chat-header {
    padding: 10px 14px;
    background: linear-gradient(135deg, #ff8a3c, #ffb36b);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#sindbad-ai-chat-header-title {
    font-size: 14px;
    font-weight: 600;
}

#sindbad-ai-chat-header-close {
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

/* Messages area */
#sindbad-ai-chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #fafafa;
}

/* Single message bubble */
.sindbad-ai-message {
    max-width: 85%;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
}

/* User message */
.sindbad-ai-message.user {
    background: #e3f2fd;
    color: #0d47a1;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

/* Bot message */
.sindbad-ai-message.bot {
    background: #ffffff;
    color: #333333;
    margin-right: auto;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Input area */
#sindbad-ai-chat-input-area {
    border-top: 1px solid #eee;
    padding: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
    background: #fff;
}

#sindbad-ai-chat-input {
    flex: 1;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #ddd;
    outline: none;
}

#sindbad-ai-chat-send-btn {
    border-radius: 999px;
    border: none;
    outline: none;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
    background: #ff8a3c;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}

#sindbad-ai-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading indicator */
#sindbad-ai-chat-loading {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}
/* Pulse animation for Sindbad button */
@keyframes sindbadPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 138, 60, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 20px rgba(255, 138, 60, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 138, 60, 0.4);
    }
}

#sindbad-ai-chat-bubble {
    animation: sindbadPulse 2.4s infinite;
}