/* ========================================== */
/* MIX MAX AI CHAT WIDGET STYLES              */
/* ========================================== */

.ai-chat-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

.chat-toggle-btn {
    background-color: #1c1c1c;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-toggle-btn:hover {
    transform: translateY(-3px);
    background-color: #333;
}

.ai-chat-window {
    width: 360px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.chat-header {
    background-color: #1c1c1c;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.chat-close-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chat-close-btn:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.ai-message {
    background-color: #f0f0f0;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background-color: #c5a059; /* Mix Max Gold */
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eaeaea;
    align-items: center;
}

#chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

#chat-input:focus {
    border-color: #c5a059;
}

.chat-send-btn {
    background: none;
    border: none;
    color: #c5a059;
    font-size: 1.4rem;
    cursor: pointer;
    margin-left: 12px;
    padding: 0 5px;
    transition: transform 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
}

/* Add a cool typing indicator animation class */
.typing-indicator {
    font-style: italic;
    color: #888;
    font-size: 0.85rem;
    padding: 8px 16px;
    align-self: flex-start;
}