/* Sindbad AI Assistant – styles */

#sindbad-ai-chat-bubble {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147483647;
    cursor: pointer;
    width: 78px;
    height: 78px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    overflow: visible;
    background-color: transparent;
    animation: sindbadTilt 3s ease-in-out infinite, sindbadBlink 4s ease-in-out infinite;
}

@keyframes sindbad-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 18px rgba(212, 175, 55, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

#sindbad-chat-window {
    position: fixed;
    right: 20px;
    bottom: 110px;
    width: 340px;
    max-height: 520px;
    display: flex;
    flex-direction: column;
    background: #f5e8d2;
    border-radius: 16px;
    border: 2px solid #d4af37;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 2147483646;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0a1a3a;
}

#sindbad-chat-window.sindbad-hidden {
    display: none;
}

.sindbad-chat-header {
    padding: 10px 12px;
    background: linear-gradient(135deg, #d4af37, #f7d774);
    color: #0a1a3a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sindbad-chat-title {
    display: flex;
    flex-direction: column;
}

.sindbad-chat-title strong {
    font-size: 14px;
}

.sindbad-subtitle {
    font-size: 11px;
    opacity: 0.9;
}

#sindbad-chat-close {
    border: none;
    background: transparent;
    color: #0a1a3a;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.sindbad-chat-messages {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    background: #fdf7ea;
}

.sindbad-message {
    padding: 8px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 90%;
}

#sindbad-chat-window .sindbad-message.from-user {
    background: #e0f0ff;
    margin-left: auto;
    text-align: left;
}

#sindbad-chat-window .sindbad-message.from-bot {
    background: #ffffff;
    margin-right: auto;
    text-align: left;
}

.sindbad-typing {
    font-size: 13px;
    color: #555;
    margin: 4px 0;
}

.sindbad-chat-form {
    display: flex;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: #f7eddc;
}

#sindbad-chat-input {
    flex: 1;
    border: none;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
    color: #0a1a3a;
}

#sindbad-chat-send {
    border: none;
    padding: 8px 14px;
    background: #d4af37;
    color: #0a1a3a;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    border-radius: 0;
}

#sindbad-chat-send:hover {
    background: #e2c45a;
}


@keyframes sindbadTilt {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}
    50%  { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

@keyframes sindbadBlink {
    0%, 90%  { opacity: 1; }
    95%      { opacity: 0.9; }
    100%     { opacity: 1; }
}


/* Big advisor selection buttons inside the chat */
.sindbad-assistant-options {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sindbad-assistant-btn {
    display: block;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #d4af37, #b98b1a);
    color: #1f2937;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.sindbad-assistant-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    background: linear-gradient(135deg, #e0bb4a, #c49621);
}

.sindbad-assistant-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.sindbad-message.from-bot .sindbad-assistant-options {
    margin-top: 10px;
}

