/* Chatbot Victor CSS */
#victor-chatbot-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    font-family: 'Inter', sans-serif;
}

#victor-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-brand-600);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

#victor-toggle:hover {
    transform: scale(1.1);
}

#victor-chat-window {
    width: 350px;
    height: 500px;
    max-height: 80vh;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

#victor-chat-window.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.victor-header {
    background: var(--color-brand-700);
    color: #fff;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.victor-avatar {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand-700);
    font-size: 1.2rem;
    font-weight: bold;
}

.victor-info h3 {
    margin: 0;
    font-size: 1rem;
}

.victor-info p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.victor-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.victor-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f9fafb;
}

.v-msg {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.4;
    animation: popIn 0.3s ease forwards;
}

.v-msg.bot {
    background: #fff;
    color: var(--color-neutral-800);
    align-self: flex-start;
    border-bottom-left-radius: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid var(--color-neutral-200);
}

.v-msg.user {
    background: var(--color-brand-500);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.v-input-area {
    padding: 1rem;
    background: #fff;
    border-top: 1px solid var(--color-neutral-200);
    display: flex;
    gap: 0.5rem;
}

.v-input-area input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--color-neutral-300);
    border-radius: var(--radius-md);
    outline: none;
}

.v-input-area button {
    background: var(--color-brand-600);
    color: #fff;
    border: none;
    width: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.v-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.v-btn-option {
    background: var(--color-brand-50);
    color: var(--color-brand-700);
    border: 1px solid var(--color-brand-200);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.v-btn-option:hover {
    background: var(--color-brand-100);
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 480px) {
    #victor-chat-window {
        position: fixed;
        bottom: 0; right: 0; left: 0; top: 0;
        width: 100%; height: 100%; max-height: 100vh;
        border-radius: 0;
        z-index: 9999;
    }
    #victor-chatbot-container {
        right: 1rem;
        bottom: 1rem;
    }
}
