/* Chatbot Candelaria - Glassmorphism & Animations */

.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* Floating Candelaria Button */
.chatbot-trigger {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    cursor: pointer;
    overflow: hidden;
    border: 3px solid #fec107;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float-bee 3s ease-in-out infinite;
    position: relative;
}

.chatbot-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(254, 193, 7, 0.3);
}

.chatbot-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Levitating Animation */
@keyframes float-bee {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #14855e 0%, #0a5a3f 100%);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fec107;
}

.chat-header h6 {
    margin: 0;
    font-weight: 700;
}

/* Messages Area */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.msg-bot {
    background: white;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.msg-user {
    background: #14855e;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Options/Chips */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.option-chip {
    padding: 8px 16px;
    background: rgba(20, 133, 94, 0.1);
    color: #14855e;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(20, 133, 94, 0.2);
}

.option-chip:hover {
    background: #14855e;
    color: white;
}

/* Typing indicator */
.typing {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
    display: none;
}

/* Badge for notifications */
.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}
