/* Shared image preview tools (zoom / rotate / flip / reset) for Ais bots.
   Designed to attach to a lightbox overlay containing an <img>. */

.img-tools-bar {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.55rem;
    background: rgba(20, 20, 24, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    z-index: 20;
    user-select: none;
}

.img-tools-bar button {
    appearance: none;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.img-tools-bar button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.img-tools-bar button:active {
    transform: scale(0.92);
}

.img-tools-bar .img-tools-sep {
    width: 1px;
    height: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 0.15rem;
}

.img-tools-bar .img-tools-zoom-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 3rem;
    text-align: center;
    padding: 0 0.35rem;
    letter-spacing: 0.02em;
}

.img-tools-host {
    cursor: grab;
}

.img-tools-host.is-panning {
    cursor: grabbing;
}

.img-tools-target {
    transition: transform 0.18s ease;
    will-change: transform;
}

.img-tools-host.is-panning .img-tools-target,
.img-tools-host.no-anim .img-tools-target {
    transition: none;
}
