/* ==========================================
   CONTAINER DE IMAGENS - PAINEL DE MODERAÇÃO
   ========================================== */

/* Container da imagem na tabela */
.img-container-tabela {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    position: relative;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.img-container-tabela:hover {
    border-color: #0A3D62;
}

.img-container-tabela img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Efeito de zoom controlado - permanece dentro do container */
.img-container-tabela:hover img {
    transform: scale(1.2);
}

/* Indicador visual de zoom disponível */
.img-container-tabela::after {
    content: '🔍';
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.img-container-tabela:hover::after {
    opacity: 0.7;
}

/* ==========================================
   MODAL DE ZOOM DE IMAGEM
   ========================================== */

.modal-zoom {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

.modal-zoom.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#imgAmpliada {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    cursor: default;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fechar-zoom {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 100000;
    user-select: none;
}

.fechar-zoom:hover {
    transform: scale(1.1);
    color: #EF4444;
}

/* Responsividade do modal de zoom */
@media (max-width: 768px) {
    #imgAmpliada {
        max-width: 95%;
        max-height: 95%;
    }

    .fechar-zoom {
        top: 10px;
        right: 15px;
        font-size: 40px;
    }
}