/* ========================================================================= */
/* BeeBot AI Chatbot Stylesheet */
/* ========================================================================= */

.beebot-float-wrapper {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10001;
}

/* CTA bubble label above the button */
.beebot-cta-label {
    background: linear-gradient(135deg, #5FF7FF, #a78bfa);
    color: #030d10;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(95, 247, 255, 0.45);
    animation: cta-bob 2.4s ease-in-out infinite;
    letter-spacing: 0.03em;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.beebot-cta-label.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
}

@keyframes cta-bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.beebot-float-btn {
    width: 96px;
    height: 96px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}

.beebot-float-btn:hover {
    transform: translateY(-5px) scale(1.08);
    background: transparent;
}

/* Bee image inside button */
.beebot-bee-img {
    width: 192px;
    height: 192px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    transition: transform 0.3s ease;
}

.beebot-float-btn:hover .beebot-bee-img {
    transform: scale(1.1) rotate(-5deg);
}

/* Pulse animation removed */

@keyframes beebot-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Chat Widget Window */
.beebot-chat-window {
    position: fixed;
    width: 380px;
    height: 520px;
    bottom: 120px;
    right: 40px;
    background: rgba(5, 8, 12, 0.85);
    border: 1px solid rgba(95, 247, 255, 0.25);
    border-radius: 1.25rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(95, 247, 255, 0.05);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    pointer-events: none;
}

.beebot-chat-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Chat Header */
.beebot-header {
    background: linear-gradient(135deg, rgba(15, 25, 40, 0.95) 0%, rgba(5, 8, 12, 0.95) 100%);
    border-bottom: 1px solid rgba(95, 247, 255, 0.15);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.beebot-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.beebot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #12213a, #5FF7FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 700;
    border: 1px solid rgba(95, 247, 255, 0.3);
}

.beebot-info {
    display: flex;
    flex-direction: column;
}

.beebot-name {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.beebot-status {
    font-size: 0.75rem;
    color: #5FF7FF;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.1rem;
}

.beebot-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34A853;
    display: inline-block;
}

.beebot-close-btn {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.beebot-close-btn:hover {
    color: #ffffff;
}

/* Chat Messages Container */
.beebot-messages {
    flex-grow: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.beebot-msg {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 0.8rem;
    font-size: 0.88rem;
    line-height: 1.5;
    word-wrap: break-word;
    font-family: 'Montserrat', Arial, sans-serif;
}

.beebot-msg.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    border-top-left-radius: 0.1rem;
}

.beebot-msg.user {
    align-self: flex-end;
    background: rgba(95, 247, 255, 0.15);
    border: 1px solid rgba(95, 247, 255, 0.3);
    color: #ffffff;
    border-top-right-radius: 0.1rem;
}

/* Typing Indicator */
.beebot-typing {
    display: flex;
    gap: 0.25rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    width: fit-content;
    align-self: flex-start;
    border-top-left-radius: 0.1rem;
}

.beebot-dot {
    width: 6px;
    height: 6px;
    background: #a0a0a0;
    border-radius: 50%;
    animation: beebot-bounce 1.4s infinite ease-in-out both;
}

.beebot-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.beebot-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes beebot-bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Suggestions Container */
.beebot-suggestions {
    padding: 0.5rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.beebot-chip {
    background: rgba(95, 247, 255, 0.06);
    border: 1px solid rgba(95, 247, 255, 0.2);
    color: #5FF7FF;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
}

.beebot-chip:hover {
    background: rgba(95, 247, 255, 0.15);
    border-color: #5FF7FF;
    transform: translateY(-1px);
}

/* Chat Input Bar */
.beebot-input-bar {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(95, 247, 255, 0.15);
    display: flex;
    gap: 0.5rem;
    background: rgba(5, 8, 12, 0.95);
}

.beebot-input-bar input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.6rem;
    padding: 0.6rem 0.8rem;
    color: #ffffff;
    font-size: 0.88rem;
    outline: none;
    font-family: 'Montserrat', Arial, sans-serif;
    transition: border-color 0.2s ease;
}

.beebot-input-bar input:focus {
    border-color: rgba(95, 247, 255, 0.4);
}

.beebot-send-btn {
    background: var(--accent-color, #5FF7FF);
    border: none;
    border-radius: 0.6rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.beebot-send-btn:hover {
    background: #ffffff;
    transform: scale(1.03);
}

.beebot-send-btn svg {
    width: 18px;
    height: 18px;
    fill: #011214;
}

/* Media Query for mobile screen overlay */
@media (max-width: 480px) {
    .beebot-chat-window {
        width: calc(100% - 40px);
        height: 480px;
        right: 20px;
        left: 20px;
        bottom: 95px;
    }

    .beebot-float-wrapper {
        right: 20px;
        bottom: 20px;
    }

    .beebot-float-btn {
        width: 52px;
        height: 52px;
    }

    .beebot-bee-img {
        width: 40px;
        height: 40px;
    }

    .whatsapp-float {
        right: auto;
        left: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }
}