/* The course-import panel (creator/_import_panel.html), shared by New Course and the
   per-course Import screen. Design QA r1/r2: the native file input was the one unthemed
   control on the page, and the first drop zone was the largest thing on New Course. */

/* One compact row (~72px). The native input is stretched transparently over the whole
   zone, so a click anywhere opens the chooser and a drop anywhere lands on the input. */
.import-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 72px;
  padding: var(--space-3) var(--space-4);
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  cursor: pointer;
}

.import-dropzone:hover,
.import-dropzone:focus-within {
  border-color: var(--color-primary);
}

/* The input is invisible, so the zone carries its keyboard focus ring. */
.import-dropzone:focus-within {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.import-dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.import-dropzone-icon {
  flex: 0 0 auto;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.import-dropzone-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.import-dropzone-text {
  color: var(--color-fg);
  font-weight: var(--font-weight-medium, 500);
}

.import-dropzone-browse {
  color: var(--color-primary);
  text-decoration: underline;
}

.import-dropzone-file {
  font-size: var(--font-size-sm);
  color: var(--color-muted-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-dropzone-file.is-chosen {
  color: var(--color-fg);
  font-weight: var(--font-weight-semibold, 600);
}
