/* ===== FLOATING BUTTONS STYLES ===== */
.chatbot-button {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6EB2AA, #5fa09e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(114, 178, 176, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.chatbot-button:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px rgba(114, 178, 176, 0.5);
}

.chatbot-button svg {
    width: 28px;
    height: 28px;
    fill: var(--bg);
}

.chatbot-window {
    position: fixed;
    bottom: 240px;
    right: 30px;
    width: 380px;
    height: 520px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    animation: chatbotSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes chatbotSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-window.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2a4a63 100%);
    color: var(--bg);
    padding: 18px 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(34, 53, 73, 0.2);
}

.chatbot-header h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: white;
    margin: 0;
}

.chatbot-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chatbot-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(245, 247, 250, 0.5);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(114, 178, 176, 0.3);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(114, 178, 176, 0.5);
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 14px;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    align-self: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    white-space: pre-line;
}

.message.user {
    background: linear-gradient(135deg, var(--accent), #5fa09e);
    color: var(--bg);
    align-self: flex-end;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 4px 12px rgba(114, 178, 176, 0.3);
}

.chatbot-input-area {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
}

.chatbot-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(114, 178, 176, 0.2);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.chatbot-input-area input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(114, 178, 176, 0.1);
}

.chatbot-input-area input::placeholder {
    color: #999;
}

.chatbot-input-area button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent), #5fa09e);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(114, 178, 176, 0.3);
}

.chatbot-input-area button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(114, 178, 176, 0.4);
}

.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-option {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(114, 178, 176, 0.3);
    color: var(--accent);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-option:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 178, 176, 0.3);
}

.whatsapp-button {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-button:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
    fill: var(--bg);
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 250px;
        height: 400px;
    }

    .whatsapp-button {
        bottom: 170px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }

    .chatbot-button {
        bottom: 100px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .chatbot-button svg {
        width: 24px;
        height: 24px;
    }
}