/* Estilos para Lazy Loading de Imagens */

.image-placeholder {
  width: 25px;
  height: 25px;
  background-color: #f0f0f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.image-placeholder:hover {
  background-color: #e0e0e0;
  transform: scale(1.05);
}

.image-placeholder i {
  color: #999;
  font-size: 12px;
}

.image-loaded {
  background-color: transparent !important;
}

.image-loaded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

/* Loading animation para placeholders */
.image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Remove shimmer quando imagem carregada */
.image-loaded::before {
  display: none;
}

/* Estilos para modal de imagem */
.modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Loading no modal */
.modal-body .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .image-placeholder {
    width: 20px;
    height: 20px;
  }
  
  .image-placeholder i {
    font-size: 10px;
  }
}

/* Tema escuro */
[data-theme="dark"] .image-placeholder {
  background-color: #2a2d3a;
}

[data-theme="dark"] .image-placeholder:hover {
  background-color: #3a3d4a;
}

[data-theme="dark"] .image-placeholder i {
  color: #6c757d;
}
