/* Ignite AI Chatbot - Embedded Style (for Beaver Builder, Themer, etc.) */
#chat-container {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 20px auto;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 480px;
    max-height: 75vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
}

#chat-output {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f8f9fa;
}

#chat-output div {
    margin-bottom: 16px;
    padding: 14px 18px;
    border-radius: 20px;
    max-width: 82%;
    line-height: 1.55;
    font-size: 15px;
}

#chat-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 15px;
    outline: none;
    transition: border 0.2s ease;
}

#chat-input:focus {
    border-color: #0066ff;
}

#send-button {
    padding: 0 28px;
    background: #0066ff;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#send-button:hover {
    background: #0052cc;
}

#chat-container .input-row {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.thinking-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #0066ff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Markdown Styling */
#chat-output h1, #chat-output h2, #chat-output h3 {
    margin: 14px 0 8px;
    font-weight: 600;
    color: #222;
}

#chat-output ul {
    padding-left: 22px;
    margin: 10px 0;
}

#chat-output a {
    color: #0066ff;
    text-decoration: underline;
}

#chat-output a:hover {
    color: #0044aa;
}
