/* =====================================================================
   CHATBOT WIDGET CSS
   ===================================================================== */
#chatbotWidget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

#chatbotBtn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand, #1f6f65), var(--brand-2, #2d9b8a));
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatbotBtn:hover {
    transform: scale(1.1);
}

#chatbotWindow {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--surface, #ffffff);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--line, #e4ddd1);
    overflow: hidden;
    flex-direction: column;
    animation: chatOpen 0.3s ease;
}

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

#chatHeader {
    background: linear-gradient(135deg, var(--brand, #1f6f65), var(--brand-2, #2d9b8a));
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatHeader h6 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
}

#chatCloseBtn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

#chatBody {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--bg, #f5f1e8);
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.msg-bot {
    background: var(--surface, #fff);
    border: 1px solid var(--line, #e4ddd1);
    color: var(--ink, #333);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.msg-user {
    background: var(--brand, #1f6f65);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.chat-sugg-btn {
    background: rgba(31, 111, 101, 0.1);
    color: var(--brand, #1f6f65);
    border: 1px solid var(--brand, #1f6f65);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-sugg-btn:hover {
    background: var(--brand, #1f6f65);
    color: white;
}

#chatInputContainer {
    display: flex;
    padding: 10px;
    background: var(--surface, #fff);
    border-top: 1px solid var(--line, #e4ddd1);
}

#chatInput {
    flex: 1;
    border: 1px solid var(--line, #ccc);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.85rem;
    outline: none;
    background: var(--input-bg, #fff);
    color: var(--ink, #333);
}

#chatSendBtn {
    background: var(--brand, #1f6f65);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 575.98px) {
    #chatbotWindow {
        width: calc(100vw - 40px);
        height: 400px;
    }
}
