.image-uploader {
  .upload-btn {
    display: inline-block;
    background-color: #d4a63f;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    user-select: none;
    margin-bottom: 1rem;
    border: none;

    &:hover {
      background-color: #bf902b;
    }

    input {
      display: none;
    }
  }

  input {
    margin-bottom: 1rem;
  }

  .preview-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .preview-item {
    position: relative;
    cursor: grab;

    img {
      width: 150px;
      height: 150px;
      object-fit: cover;
      border-radius: 8px;
      border: 1px solid #ccc;
    }

    .remove-btn {
      position: absolute;
      top: 4px;
      right: 4px;
      background: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      font-size: 16px;
      cursor: pointer;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      width: auto;
      border-radius: 20px;
      padding: 6px;
    }
  }
}

::ng-deep .cdk-drag-preview {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  .remove-btn,
  button {
    display: none !important;
  }
}

// Modal para imagem ampliada
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;

    img {
      max-width: 100%;
      max-height: 100%;
      border-radius: 10px;
      box-shadow: 0 0 10px black;
    }

    .close-btn {
      position: absolute;
      top: 8px;
      right: 8px;
      background: rgba(0, 0, 0, 0.6);
      color: white;
      border: none;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      font-size: 18px;
      cursor: pointer;
      justify-content: center;
    }
  }
}
