/* --- Ngetich AI: Premium Blue WhatsApp Layout --- */
#ai-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#ai-toggle-btn {
    background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
    color: #00bfff;
    border: 1px solid #30475e;
    padding: 14px 22px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.25);
}

#ai-chat-window {
    display: none;
    width: 380px;
    height: 550px;
    background-color: #0b141a; /* Dark WhatsApp background */
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #222e35;
}

/* WhatsApp-Style Header */
.ai-header {
    background-color: #202c33; /* Dark Blue-Gray Top Bar */
    color: #e9edef;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00bfff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ai-meta h3 { font-size: 16px; font-weight: 600; }
.ai-meta span { font-size: 11px; color: #8696a0; }

.close-btn {
    background: none;
    border: none;
    color: #aebac1;
    font-size: 24px;
    margin-left: auto;
    cursor: pointer;
}

/* WhatsApp Blue Chat Wall Box */
.ai-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background-color: #0b141a;
    /* Subtle blue geometric network lines design overlay */
    background-image: radial-gradient(#112240 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Chat Speech Bubbles */
.msg-row {
    display: flex;
    width: 100%;
}
.msg-row.user-row { justify-content: flex-end; }
.msg-row.bot-row { justify-content: flex-start; }

.bubble {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    color: #e9edef;
    word-wrap: break-word;
}

/* WhatsApp Outgoing Blue Message */
.msg-row.user-row .bubble {
    background-color: #005c4b; /* Classic dark WhatsApp green, let's turn it into Blue: */
    background-color: #0b4f8c; /* Premium Navy/Royal Blue */
    border-top-right-radius: 0px;
}

/* WhatsApp Incoming Message */
.msg-row.bot-row .bubble {
    background-color: #202c33; /* Slate Blue/Gray item */
    border-top-left-radius: 0px;
}

.chat-time {
    font-size: 10px;
    color: #8696a0;
    text-align: right;
    margin-top: 4px;
    display: block;
}

/* Footer Entry Bar */
.ai-footer {
    background-color: #202c33;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-footer input {
    flex: 1;
    background-color: #2a3942;
    border: none;
    color: #e9edef;
    padding: 10px 14px;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.ai-footer button {
    background-color: #0b4f8c;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
