.dialog-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.table-container {
  flex: 1;
  overflow: hidden;
  margin-bottom: 100px;

  ::ng-deep .p-datatable {
    height: 100%;

    .p-datatable-wrapper {
      height: 100%;
    }

    .p-datatable-tbody > tr > td {
      border: none !important;
      padding: 0.5rem 0.5rem;
    }

    .p-datatable-tbody > tr {
      border: none !important;
    }
  }
}

.bottom-fixed-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-ground);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.paginator-container {
  ::ng-deep .p-paginator {
    border: none;
    border-bottom: 1px solid var(--border-color);
  }
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}

.duplicate-files-content {
  overflow: hidden;
}

.hash-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--p-content-border-color);
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem 0;
}

.hash-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  i {
    color: var(--primary-color);
    font-size: 0.9rem;
  }

  .hash-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
  }

  .hash-value {
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .file-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
  }
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-item-compact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--p-content-border-color);
  transition: all 0.2s ease;
  margin-left: 1rem;
}

.file-icon {
  background: var(--primary-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  i {
    font-size: 0.9rem;
  }
}

.file-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filename {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-word;
  line-height: 1.2;
}

.file-path {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Courier New', monospace;
  word-break: break-all;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
}

.library-info {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.1rem;

  i {
    color: var(--primary-color);
    font-size: 0.85rem;
  }

  .timestamp {
    margin-left: auto;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
  }
}

.empty-message {
  text-align: center !important;
  padding: 3rem 1rem !important;

  .empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;

    i {
      font-size: 1.5rem;
    }

    span {
      font-size: 0.875rem;
    }
  }
}

.info-message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.3);
  border-radius: 0.375rem;
  color: #fbbf24;

  i {
    color: #f59e0b;
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
  }

  p {
    margin: 0;
    line-height: 1.5;
    font-size: 1rem;
  }
}
