@use '../../../../../styles/_globals.scss' as *;

::ng-deep .mat-mdc-dialog-container {
  .mat-mdc-dialog-content {
    padding: 20px var(--s3);
  }
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
  gap: var(--s2);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
  color: var(--text-color-muted);

  mat-icon {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: var(--s2);
  }

  p {
    margin: 0;
    font-size: 16px;
  }
}

.summary {
  padding: var(--s2);
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--card-border-radius);
  margin-bottom: var(--s2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);

  .summary-info {
    flex: 1;

    p {
      margin: var(--s-half) 0;
    }
  }

  .sort-field {
    min-width: 160px;
    margin-bottom: -1.25em;
  }
}

.images-list {
  max-height: 400px;
  overflow-y: auto;
}

.image-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);

  &:hover {
    background: rgba(0, 0, 0, 0.03);
  }
}

.image-preview {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.02);

  img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  mat-icon {
    color: var(--c-dark-30);
  }
}

.image-info {
  flex: 1;
  min-width: 0;
}

.image-id {
  font-size: 14px;
  font-weight: 500;
  @include truncateText();
}

.image-details {
  font-size: 12px;
  color: var(--text-color-muted);
  margin-top: var(--s-half);

  span {
    margin-right: var(--s-half);
  }
}
