/* public_html/assets/css/chat.css */
#ai-chat-container {
    position: fixed;
    bottom: 30px;
    right: 100px; /* Offset to not block your WhatsApp button */
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

#chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB 0%, #1e293b 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-toggle-btn:hover { 
    transform: scale(1.1); 
}

#chat-window {
    display: none; /* Hidden by default */
    width: 360px;
    height: 500px;
    background: #0f172a; /* Deep tech dark */
    border: 1px solid #1e293b;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    flex-direction: column;
    position: absolute;
    bottom: 80px;
    right: 0;
    overflow: hidden;
}

#chat-header {
    background: #1e293b;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-bottom: 1px solid #334155;
}

#close-chat {
    background: none; 
    border: none; 
    color: #94a3b8; 
    cursor: pointer; 
    font-size: 20px; 
    transition: color 0.2s;
}

#close-chat:hover {
    color: #ef4444;
}

#chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-bubble { 
    max-width: 85%; 
    padding: 12px 16px; 
    border-radius: 12px; 
    font-size: 14px; 
    line-height: 1.5; 
}

.user-msg { 
    background: #2563EB; 
    color: white; 
    align-self: flex-end; 
    border-bottom-right-radius: 2px; 
}

.bot-msg { 
    background: #1e293b; 
    color: #e2e8f0; 
    align-self: flex-start; 
    border-bottom-left-radius: 2px; 
    border: 1px solid #334155; 
}

#chat-input-area { 
    display: flex; 
    gap: 10px; 
    padding: 15px; 
    background: #0f172a; 
    border-top: 1px solid #334155; 
}

#chat-input { 
    flex: 1; 
    background: #1e293b; 
    border: 1px solid #334155; 
    color: white; 
    padding: 10px 15px; 
    border-radius: 20px; 
    outline: none; 
}

#chat-input:focus {
    border-color: #2563EB;
}

#send-btn { 
    background: #2563EB; 
    color: white; 
    border: none; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: background 0.2s;
}

#send-btn:hover {
    background: #1d4ed8;
}

/* Typing Indicator Animation */
.typing-dots { display: flex; gap: 4px; padding: 5px; }
.typing-dots span {
    width: 6px; height: 6px; background: #94a3b8; border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}