/* Theme V1 - Image Tagging Frontend Styles */
.ipft-instance {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 40px auto;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.ipft-stage {
    position: relative;
    display: inline-block;
    width: 100%;
    line-height: 0;
}

.ipft-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.ipft-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Hotspots - Hidden by default for professional look */
.ipft-hotspot {
    position: absolute;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.ipft-hotspot:hover {
    /* Border and background removed per user request for professional look */
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

/* Tooltip */
.ipft-tooltip {
    position: absolute;
    z-index: 100;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    /* Removed translate to allow JS mouse positioning */
    transition: opacity 0.3s ease, visibility 0.3s;
    text-align: center;
    line-height: 1.4;
}

.ipft-tooltip.active {
    visibility: visible;
    opacity: 1;
}

.ipft-tooltip-inner {
    padding: 8px 14px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    white-space: nowrap;
}

.ipft-name {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}

.ipft-role {
    display: block;
    font-size: 0.85em;
    opacity: 0.9;
    font-weight: 400;
}

/* Animations */
.ipft-anim-pop {
    transform: scale(0.8);
}

.ipft-anim-pop.active {
    transform: scale(1);
}

/* Arrow removed per user request */
.ipft-tooltip::after {
    display: none;
}