@use '../../../../shared/styles/panel-shared' as panel;

.additional-file-uploader-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-header {
  @include panel.panel-header;
  flex-shrink: 0;
}

.dialog-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 1.5rem;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

:host ::ng-deep {
  .p-fileupload-content p-progressbar {
    display: none !important;
  }

  .full-width {
    width: 100%;
  }
}

.file-upload {
  width: 100%;
}

.upload-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 1rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
}

.upload-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1rem;
}

.file-list-scroll {
  max-height: 24rem;
  max-width: 22rem;
  overflow-y: auto;
  padding-right: 0.5rem;

  @media (min-width: 768px) {
    max-width: none;
  }
}

.file-list {
  display: flex;
  flex-wrap: wrap;
}

.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  flex: 1;
}

.file-badge {
  flex-shrink: 0;
}

.file-name {
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
}

.file-size {
  flex-shrink: 0;
}

.status-icon {
  padding: 0.75rem;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.empty-icon {
  border: 2px solid;
  border-radius: 9999px;
  padding: 2rem;
  font-size: 2.25rem;
  color: var(--p-text-muted-color);
}

.empty-text {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-subtext {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
