#avision-dashboard-root .avi-widget-btn {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--primary-dark);
    border-radius: 50%;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    transition: transform 0.2s;
    border: 4px solid white;
    overflow: hidden;
}

#avision-dashboard-root .avi-widget-btn:hover {
    transform: scale(1.05);
}

#avision-dashboard-root .avi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#avision-dashboard-root .avi-icon .avi-chat-icon-img {
    width: 65px;
    height: 65px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

#avision-dashboard-root .avi-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    transform: scale(0.8);
}

#avision-dashboard-root .avi-badge.visible {
    opacity: 1;
    transform: scale(1);
}

#avision-dashboard-root .avi-chat-window {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

#avision-dashboard-root .avi-chat-window.open,
#avision-dashboard-root .avi-chat-window.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: flex;
}

#avision-dashboard-root .chat-header {
    padding: 1.5rem;
    background: var(--primary-dark);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    font-size: 1.1rem;
}

#avision-dashboard-root .chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    overflow: hidden;
}

#avision-dashboard-root .chat-messages,
#avision-dashboard-root #chatBody {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#avision-dashboard-root .msg {
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 1rem;
    max-width: 85%;
    line-height: 1.5;
}

#avision-dashboard-root .msg.avi {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-main);
    align-self: flex-start;
}

#avision-dashboard-root .msg.user {
    background: var(--primary-dark);
    color: white;
    align-self: flex-end;
}

#avision-dashboard-root .chat-input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

#avision-dashboard-root .chat-input-area input,
#avision-dashboard-root #chatInput {
    flex: 1;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

#avision-dashboard-root .chat-input-area input:focus,
#avision-dashboard-root #chatInput:focus {
    border-color: var(--primary);
}

#avision-dashboard-root .chat-send-btn {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

#avision-dashboard-root .chat-send-btn:hover {
    background: var(--primary);
}

#avision-dashboard-root .suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background: white;
    border-bottom: 1px solid var(--border);
}

#avision-dashboard-root .suggestion-chip {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

#avision-dashboard-root .suggestion-chip:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

@media (max-width: 768px) {
    #avision-dashboard-root .avi-chat-window {
        width: calc(100vw - 30px);
        right: 15px;
        bottom: 100px;
        height: 70vh;
    }
}
