.image-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* izvresene su izmene da vidjimo a ce radi */

.image-item {
  position: relative;
  aspect-ratio: 1;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.image-actions {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  background-color: rgba(0, 0, 0, 0.5);
  /* padding: 2px 4px; */
  border-radius: 20px;
}

.image-item:hover .image-actions {
  opacity: 1;
}

.image-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.image-url-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.url-input {
  flex-grow: 1;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
  background-color: #f9f9f9;
}

.copy-btn {
  padding: 6px 12px;
  background-color: #e9ecef;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.copy-btn:hover {
  background-color: #dee2e6;
}

.action-btn {
  color: white;
  background: transparent;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.action-btn:hover {
  transform: scale(1.1);
}
.delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 1;
  /* transition: opacity 0.2s ease; */
  color: white;
  background: red;
  border: 1px solid red;
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
}

/* .image-item:hover .delete-btn {
  opacity: 1;
} */

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1050;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .image-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 0.5rem;
  }

  .image-actions {
    opacity: 1;
  }
}

/* Upload form styles */
.upload-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Animation classes */
.hover-scale {
  transition: transform 0.2s ease;
}

.hover-scale:hover {
  transform: translateY(-2px);
}
