/* Floating Buttons */
.floating-button {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.floating-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Back to Top Button */
.back-to-top {
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #4e54c8, #8f94fb);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* WhatsApp Button */
.whatsapp {
    bottom: 30px;
    right: 90px;
    background: #25d33f;
}

/* AI Assistant Button */
.ai-assistant {
    bottom: 30px;
    right: 150px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}

/* AI Chat Window */
.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.ai-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ai-chat-header {
    padding: 15px 20px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-header h5 {
    margin: 0;
    font-size: 1.1rem;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.user-message {
    align-self: flex-end;
    background: #f0f2f5;
    color: #1a1a1a;
}

.ai-message {
    align-self: flex-start;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
}

.ai-chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.ai-chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.ai-chat-input input:focus {
    border-color: #ff6b6b;
}

.send-message {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-message:hover {
    transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .floating-button {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp {
        bottom: 20px;
        right: 75px;
    }

    .ai-assistant {
        bottom: 20px;
        right: 130px;
    }

    .ai-chat-window {
        width: calc(100% - 40px);
        height: 400px;
        bottom: 80px;
        right: 20px;
    }
} 