/* CHAT BUBBLE */
#faithai-chat-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6f42c1, #00d4ff);
    color: white;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.35);
    z-index: 9999;
    transition: transform .2s ease;
}

    #faithai-chat-btn:hover {
        transform: scale(1.1);
    }

/* CHAT WINDOW */
#faithai-chatbox {
    position: fixed;
    bottom: 110px;
    right: 25px;
    width: 360px;
    height: 520px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
    color: white;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

/* HEADER */
#faithai-chat-header {
    padding: 12px 15px;
    background: linear-gradient(135deg, #6f42c1, #00d4ff);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

/* MODE SELECTOR */
#faithai-mode-select {
    width: 100%;
    padding: 8px 12px;
    background: #222;
    color: white;
    border: none;
    outline: none;
    font-size: 15px;
}

/* CHAT LOG */
#faithai-chat-log {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

/* USER & BOT MESSAGES */
.faithai-msg-user {
    background: #4c34a3;
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 10px;
    text-align: right;
    margin-left: 50px;
}

.faithai-msg-bot {
    background: #1f1f1f;
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 10px;
    margin-right: 50px;
}

/* INPUT AREA */
#faithai-chat-input-area {
    display: flex;
}

#faithai-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    background: #111;
    color: white;
}

#faithai-send-btn {
    padding: 10px 15px;
    background: #6f42c1;
    color: white;
    border: none;
    cursor: pointer;
}

    #faithai-send-btn:hover {
        background: #5936a3;
    }
/* Floating button */
#faithAI-chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #5A2F97;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
}

/* Chat window container */
#faithAI-chatbot-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 320px;
    height: 420px;
    background: white;
    border-radius: 12px;
    border: 2px solid #5A2F97;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
}

#faithAI-chatbot-header {
    background: #5A2F97;
    color: white;
    padding: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#faithAI-chatbot-close {
    cursor: pointer;
    font-size: 20px;
}

#faithAI-chatbot-messages {
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    background: #f7f3ff;
}

#faithAI-chatbot-input {
    display: flex;
    padding: 10px;
    background: #eee;
}

#faithAI-chatbot-text {
    flex-grow: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

#faithAI-chatbot-send {
    background: #5A2F97;
    color: white;
    border: none;
    padding: 8px 12px;
    margin-left: 6px;
    border-radius: 6px;
}
