/* 
  MDJPRO — Booth Assistant AI Styles
  Focus: Premium AI Sales & Negotiation Interface (Glassmorphism + Gold)
*/

:root {
    --booth-gold: #c5a059;
    --booth-bg: rgba(15, 15, 18, 0.85);
    --booth-glass: blur(25px);
    --booth-border: rgba(197, 160, 89, 0.3);
}

/* ── BOOTH TRIGGER (LA BURBUJA) ── */
#mdj-assistant-booth {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.booth-trigger {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border: 2px solid var(--booth-gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(197, 160, 89, 0.4);
    position: relative;
    transition: transform 0.3s ease;
}

.booth-trigger:hover {
    transform: scale(1.05);
}

.booth-trigger .avatar-glow {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--booth-gold);
    opacity: 0.2;
    filter: blur(10px);
    animation: pulse-glow 2s infinite;
}

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

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

/* ── BOOTH WINDOW (EL CHAT) ── */
.booth-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 550px;
    background: var(--booth-bg);
    backdrop-filter: var(--booth-glass);
    border: 1px solid var(--booth-border);
    border-radius: 30px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform-origin: bottom right;
    animation: slide-up-booth 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

#mdj-assistant-booth.active .booth-window {
    display: flex;
}

@keyframes slide-up-booth {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header */
.booth-header {
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.booth-header .status-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

.booth-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--booth-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Messages Area */
.booth-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--booth-gold) transparent;
}

.message {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.message.assistant {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message.user {
    background: var(--booth-gold);
    color: #000;
    font-weight: 600;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

/* Input Area */
.booth-input-area {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
}

.booth-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.booth-input-area input:focus {
    border-color: var(--booth-gold);
}

.booth-send-btn {
    width: 44px;
    height: 44px;
    background: var(--booth-gold);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.booth-send-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 500px) {
    .booth-window {
        width: calc(100vw - 40px);
        height: 70vh;
        right: -10px;
    }
}