/**
 * Styles for the file upload UI in the manual RFI form.
 */

/* File upload button */
#rfi_file_upload_button {
  margin-bottom: 10px;
}

/* File upload progress */
.file-upload-progress {
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
  background-color: #f5f5f5;
}

.file-upload-progress .progress-bar {
  overflow: hidden;
  height: 20px;
  margin-bottom: 5px;
  border-radius: 4px;
  background-color: #e0e0e0;
}

.file-upload-progress .progress-fill {
  height: 100%;
  transition: width 0.3s ease;
  background-color: #4caf50;
}

.file-upload-progress .progress-text {
  color: #666;
  font-size: 14px;
}

.file-upload-progress .error {
  color: #f44336;
  font-weight: bold;
}

/* File list */
#rfi_attachments_list {
  margin-top: 10px;
}

.file-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #f5f5f5;
}

.file-item .file-icon {
  margin-right: 10px;
  color: #666;
}

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

.file-item .file-delete {
  padding: 0 5px;
  cursor: pointer;
  color: #f44336;
  border: none;
  background: none;
}

.file-item .file-delete:hover {
  color: #d32f2f;
}

/* Help text */
.field-description {
  margin-bottom: 10px;
  color: #666;
  font-size: 12px;
}
