/* StoneX AI Assistant - Enhanced UI v1.4 */
:root {
    --sx-navy: #1c2b59;
    --sx-red: #d9232a;
    --sx-gray-bg: #f8f9fa;
    --sx-gray-text: #6c757d;
    --sx-border: #dee2e6;
}

#sx-chat-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--sx-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10000;
}

#sx-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    max-width: 90vw;
    height: 600px;
    max-height: 80vh;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sx-chat-closed { display: none !important; }

#sx-chat-header {
    background: var(--sx-navy);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sx-header-info { display: flex; align-items: center; gap: 12px; }
.sx-header-info img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.sx-header-info span { font-weight: 600; font-size: 16px; letter-spacing: 0.5px; }

#sx-chat-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

#sx-chat-body { flex: 1; padding: 20px; overflow-y: auto; background: #fdfdfd; display: flex; flex-direction: column; }

/* Quick Replies - Professional StoneX Style */
#sx-quick-replies {
    padding: 12px 15px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    background: #fdfdfd;
    border-top: 1px solid #f0f0f0;
    scrollbar-width: none;
}
#sx-quick-replies::-webkit-scrollbar { display: none; }

.sx-quick-btn {
    white-space: nowrap;
    background: var(--sx-navy);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    outline: none !important; /* Noktalı çizgiyi kaldırır */
    flex-shrink: 0;
}

.sx-quick-btn:focus {
    outline: none;
}

.sx-quick-btn:hover {
    background: var(--sx-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Messages */
.sx-message { margin-bottom: 15px; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.6; max-width: 85%; }
.sx-message.bot { background: #f1f3f5; color: #212529; align-self: flex-start; border-top-left-radius: 2px; }
.sx-message.user { background: var(--sx-navy); color: #fff; align-self: flex-end; margin-left: auto; border-top-right-radius: 2px; }
.sx-message a { color: #0056b3; text-decoration: underline; font-weight: bold; }
.sx-message.user a { color: #fff; }

/* Lead Form */
#sx-chat-form-container { background: #fff; border: 1px solid var(--sx-border); border-radius: 12px; padding: 20px; margin-top: 10px; }
#sx-chat-form-container p { margin: 0 0 15px 0; font-weight: 600; color: var(--sx-navy); }
#sx-chat-form-container input { width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid var(--sx-border); border-radius: 8px; font-size: 14px; box-sizing: border-box; }
#sx-chat-error { color: var(--sx-red); font-size: 12px; margin-bottom: 10px; display: none; }
#sx-submit-lead { width: 100%; padding: 12px; background: var(--sx-red); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* Footer */
#sx-chat-footer { padding: 15px 20px; display: flex; border-top: 1px solid #eee; background: #fff; }
#sx-chat-input { flex: 1; border: 1px solid var(--sx-border); border-radius: 25px; padding: 10px 18px; outline: none; }
#sx-chat-send { background: var(--sx-red); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; margin-left: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Typing indicator */
.sx-typing { display: inline-block; font-style: italic; color: #888; }
