#mfl-ai-chat-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    font-family: sans-serif;
}

#mfl-ai-chat-trigger {
    background: #164e63; /* Updated to match Title Bar */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 24px;
    transition: background 0.3s ease;
}

#mfl-ai-chat-trigger:hover {
    background: #0d3a4b; /* A slightly darker shade for hover effect */
}

#mfl-ai-chat-window {
    width: 380px;
    height: 550px;
    background: white;
    position: absolute;
    bottom: 80px;
    right: 0;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header - Teal Branding */
.mfl-ai-header {
    background: #164e63; 
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mfl-ai-info { display: flex; align-items: center; gap: 12px; }
.mfl-ai-avatar { 
    position: relative; font-size: 20px; background: #2dd4bf; 
    color: #164e63; width: 40px; height: 40px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
}
.status-dot { width: 10px; height: 10px; background: #22c55e; border-radius: 50%; position: absolute; top: 0; right: 0; border: 2px solid #164e63; }
.mfl-ai-info small { display: block; color: #22c55e; font-weight: bold; font-size: 11px; }

.mfl-ai-controls { cursor: pointer; }

/* Message Area - Rounded Bubbles */
#mfl-ai-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mfl-ai-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.mfl-ai-msg.bot { background: white; border: 1px solid #e2e8f0; align-self: flex-start; color: #1e293b; }
.mfl-ai-msg.user { background: #164e63; color: white; align-self: flex-end; }

/* Input Area - Original Messenger Layout */
.mfl-ai-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

#mfl-ai-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    padding: 5px;
    margin-bottom: 10px;
}

.mfl-ai-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mfl-ai-camera { background: none; border: 1px solid #e2e8f0; padding: 8px; border-radius: 8px; color: #64748b; cursor: pointer; }

#mfl-ai-send {
    background: #e2e8f0;
    color: #94a3b8;
    border: none;
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

#mfl-ai-send.active {
    background: #164e63;
    color: white;
}