/* AI Assistant Widget CSS */

.floating-ai {
    position: fixed;
    bottom: 100px; /* Above WhatsApp button */
    right: 30px;
    background: var(--dark-green, #1B4D3E);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.floating-ai:hover {
    transform: scale(1.1);
    background: var(--primary-color, #236551);
}

.ai-chat-window {
    position: fixed;
    bottom: 170px; /* Above the AI button */
    right: 30px;
    width: 420px;
    height: 600px;
    max-height: 75vh;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-window.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--dark-green, #1B4D3E), var(--primary-color, #236551));
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-header h5 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
}

.ai-chat-header h5 i {
    color: #ffffff !important;
}

.ai-chat-close {
    background: none;
    border: none;
    color: #ffffff !important;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}

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

.ai-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f4f7f6;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Chat Messages */
.ai-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-msg-bot {
    background: #ffffff;
    color: #333;
    align-self: flex-start;
    border: 1px solid #eaeaea;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.ai-msg-user {
    background: linear-gradient(135deg, var(--gold-accent, #d2943e), #e6b741);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Question Chips */
.ai-questions-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.ai-question-chip {
    background: #f0f7f4;
    border: 1px solid var(--primary-color, #236551);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: var(--dark-green, #1B4D3E);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.ai-question-chip:hover {
    background: var(--primary-color, #236551);
    color: white;
}

@media (max-width: 768px) {
    .floating-ai {
        right: 20px;
        bottom: 80px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .ai-chat-window {
        right: 15px;
        left: 15px;
        bottom: 140px;
        width: auto;
        height: 80vh;
        max-height: 500px;
    }
}
