.library {
  @apply flex flex-col py-5 px-2 gap-3 h-full mx-5 relative;
  header {
    @apply grid gap-2;
    grid-template-columns: 1fr auto;
    div.new-document {
      @apply flex gap-4 items-baseline;
      ul.dropdown-menu {
        @apply w-[450px];
        .description {
          @apply text-wrap;
        }
      }
    }
  }
}
#upload-file-dialog {
  @apply min-w-[700px] text-text-primary;
  pf-tab-page {
    @apply py-4;
  }
  p.description {
    @apply text-text-secondary;
  }
  .drop-area {
    @apply border-dashed border-border border-2 rounded-xl px-10 py-5 mb-5;
    .select-file,
    .file-selected {
      @apply contents;
      & > *:not(.hidden) {
        @apply mx-auto block text-center mt-3;
      }
    }
    &.dragging {
      @apply bg-surface-selected;
    }
    &:not(.selected) {
      .file-selected {
        @apply hidden;
      }
    }
    &.selected {
      @apply bg-surface-subtle flex flex-col items-center;
      .remove-file {
        @apply text-right mt-0 w-full cursor-pointer;
      }
      .file-icon {
        @apply inline-block rounded-full bg-surface-selected p-4 m-auto;
      }
      .file-name {
        @apply text-text-primary font-semibold;
      }
      .file-size {
        @apply text-text-secondary;
      }
      .select-file {
        @apply hidden;
      }
    }
  }
}
