/* ═══════════════════════════════════════════════ */
/* Virtual Assistant Pro — Chat Widget Styles      */
/* ═══════════════════════════════════════════════ */

/* Chat window: normal mode */
.avpro-win-normal {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 99999;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Chat window: tall mode (full height, normal width) */
.avpro-win-tall {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 16px;
    bottom: 16px;
    right: 24px;
    width: 380px;
    height: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    z-index: 100000;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Left-positioned tall variant */
.avpro-win-tall[data-position="bottom-left"] {
    right: auto;
    left: 24px;
}

/* Chat window: expanded (fullscreen-ish) mode */
.avpro-win-expanded {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    height: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.25);
    z-index: 100000;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Left-positioned variant */
.avpro-win-normal[data-position="bottom-left"] {
    right: auto;
    left: 24px;
}

/* Messages area */
#avpro-messages {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
#avpro-messages::-webkit-scrollbar {
    width: 6px;
}
#avpro-messages::-webkit-scrollbar-track {
    background: transparent;
}
#avpro-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Input focus glow */
#avpro-input:focus {
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* Send button hover */
#avpro-send:hover {
    opacity: 0.85;
    transform: scale(1.05);
    transition: all 0.15s;
}

/* Bubble hover */
#avpro-bubble:hover {
    transform: scale(1.08) !important;
    transition: transform 0.15s;
}

/* Expand/close button hovers */
#avpro-expand:hover,
#avpro-close:hover,
#avpro-download:hover {
    opacity: 1 !important;
}

/* Message animations */
.avpro-msg {
    animation: avproSlideIn 0.25s ease-out;
}
@keyframes avproSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Typing dots */
.avpro-dot {
    animation: avproPulse 1.2s ease-in-out infinite;
    font-size: 10px;
}
.avpro-dot:nth-child(2) { animation-delay: 0.2s; }
.avpro-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes avproPulse {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

/* Responsive: mobile full-screen */
@media (max-width: 480px) {
    .avpro-win-normal,
    .avpro-win-tall {
        bottom: 0;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    .avpro-win-expanded {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
}

/* Tablet expanded */
@media (min-width: 481px) and (max-width: 1024px) {
    .avpro-win-expanded {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
}
