/* LogicLearn shared image drag & drop */
.ll-dropzone {
  position: relative;
  display: block;
  width: 100%;
  border: 2px dashed rgba(74, 68, 102, 0.28);
  border-radius: 14px;
  background: rgba(74, 68, 102, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

.ll-dropzone:hover,
.ll-dropzone.is-dragover {
  border-color: var(--theme, #4A4466);
  background: rgba(74, 68, 102, 0.06);
  box-shadow: 0 0 0 3px rgba(74, 68, 102, 0.08);
}

.ll-dropzone.is-dragover {
  background: rgba(110, 173, 188, 0.12);
  border-color: var(--theme-2, #6EADBC);
}

.ll-dropzone__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 16px;
  text-align: center;
  min-height: 140px;
  pointer-events: none;
}

.ll-dropzone__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 68, 102, 0.08);
  color: var(--theme, #4A4466);
  font-size: 20px;
  margin-bottom: 4px;
}

.ll-dropzone__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--header, #1f2937);
  line-height: 1.35;
}

.ll-dropzone__hint {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.ll-dropzone__filename {
  font-size: 12px;
  color: var(--theme, #4A4466);
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
}

.ll-dropzone__preview {
  width: 100%;
  max-width: 220px;
  max-height: 140px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.ll-dropzone__preview img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 140px;
  object-fit: cover;
}

.ll-dropzone__input,
.ll-dropzone input[type="file"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  z-index: 2;
}

/* Existing custom upload surfaces also get drag state */
.ll-drop-target.is-dragover,
.image-preview.is-dragover,
.avatar-preview.is-dragover,
.instructor-file-upload.is-dragover,
.image-upload-area.is-dragover,
.dashboard-profile-image.is-dragover {
  outline: 2px dashed var(--theme, #4A4466);
  outline-offset: 2px;
  background: rgba(110, 173, 188, 0.12) !important;
}

.avatar-upload-wrapper.is-dragover .avatar-preview,
.image-upload-area.is-dragover .image-preview {
  border-color: var(--theme, #4A4466) !important;
  background: rgba(110, 173, 188, 0.12) !important;
}
