.sifuim-avatar-tooltip-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.sifuim-avatar-item {
    position: relative;
    margin-right: -1rem; /* Overlap effect */
    cursor: pointer;
    transition: z-index 0.3s ease;
}

.sifuim-avatar-item:hover {
    z-index: 50; /* Bring to front on hover */
}

/* Avatar Image */
.sifuim-avatar-img {
    display: block;
    width: var(--avatar-size, 56px);
    height: var(--avatar-size, 56px);
    border-radius: 50% !important; /* Force circle */
    aspect-ratio: 1 / 1; /* Ensure square */
    object-fit: cover;
    border: 2px solid #fff;
    background-color: #f3f4f6;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Spring effect */
    max-width: none; /* Prevent theme overrides */
}

.sifuim-avatar-item:hover .sifuim-avatar-img {
    transform: scale(1.1);
}

/* Tooltip Container */
.sifuim-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.8) rotate(-5deg);
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    margin-bottom: 1rem;
}

.sifuim-avatar-item:hover .sifuim-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
}

/* Decorative Lines (Gradient bars at bottom of tooltip) */
.sifuim-tooltip-line {
    position: absolute;
    bottom: -1px;
    height: 1px;
    z-index: 10;
}

.sifuim-tooltip-line.left {
    left: 10%;
    width: 40%;
    background: linear-gradient(to right, transparent, #0ea5e9, transparent); /* Sky blue */
}

.sifuim-tooltip-line.right {
    right: 10%;
    width: 40%;
    background: linear-gradient(to right, transparent, #10b981, transparent); /* Emerald */
}

/* Tooltip Content */
.sifuim-tooltip-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.sifuim-tooltip-role {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.1rem;
}

/* Responsive adjustments if needed */
@media (max-width: 767px) {
    .sifuim-avatar-tooltip-wrapper {
        gap: 0.5rem;
    }
    .sifuim-avatar-item {
        margin-right: -0.5rem;
    }
}
