﻿/* ALLY_COMPACT_UPLOAD_UX_V1 */

/* Tighten the top upload area */
.large-upload-section,
.upload-section {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Make upload button smaller/sleeker */
#largeFileUploadButton,
.large-upload-button {
  padding: 7px 14px !important;
  min-height: 32px !important;
  line-height: 1.1 !important;
  border-radius: 999px !important;
  font-size: 14px !important;
}

/* Compact upload status */
#uploadStatus {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
  font-size: 13px !important;
  color: #4f4455 !important;
}

/* Keep upload list from taking chat space */
#uploadList {
  max-height: 82px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  margin-top: 6px !important;
  padding-right: 4px !important;
  scroll-behavior: smooth !important;
}

/* Make file cards compact */
#uploadList .upload-item {
  min-height: 28px !important;
  padding: 4px 8px !important;
  margin-bottom: 4px !important;
  border-radius: 9px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* File name compact and ellipsized */
#uploadList .upload-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 13px !important;
}

/* Size and remove button compact */
#uploadList .upload-size {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  color: #5f5563 !important;
}

#uploadList .upload-remove {
  flex: 0 0 auto !important;
  padding: 3px 9px !important;
  min-height: 24px !important;
  line-height: 1.1 !important;
  border-radius: 999px !important;
  font-size: 12px !important;
}

/* Hide empty placeholder */
#uploadList .upload-empty {
  display: none !important;
}

/* Reduce extra empty vertical space in upload header area */
#uploadList:empty {
  display: none !important;
}
