/* 게시판 드래그앤드롭 다중업로드 위젯 (프론트 BS5 / 관리자 BS4 공용, 프레임워크 비의존) */
.bd-uploader { margin-top: 6px; }
.bd-drop {
  position: relative;
  border: 2px dashed #c3c9d5;
  border-radius: 8px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  background: #fafbfd;
  transition: border-color .15s, background .15s;
}
.bd-drop:hover { border-color: #4F46E5; background: #f5f6ff; }
.bd-drop.over { border-color: #4F46E5; background: #eef0ff; }
.bd-drop .bd-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; left: 0; top: 0; }
.bd-drop-guide { margin: 0; color: #4b5563; font-size: 14px; }
.bd-drop-guide b { color: #4F46E5; }
.bd-drop-hint { margin: 6px 0 0; color: #9aa1ad; font-size: 12px; }

.bd-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.bd-item {
  position: relative;
  width: 120px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bd-item.is-cover { border-color: #4F46E5; box-shadow: 0 0 0 2px rgba(79,70,229,.25); }
.bd-thumb {
  width: 100%; height: 80px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 6px; background: #f3f4f6;
}
.bd-thumb img { max-width: 100%; max-height: 100%; object-fit: cover; }
.bd-file-ico { font-size: 13px; font-weight: 700; color: #6b7280; }
.bd-fname {
  margin-top: 6px; font-size: 12px; color: #374151; width: 100%;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bd-fsize { font-size: 11px; color: #9aa1ad; }
.bd-remove, .bd-cover {
  position: absolute; width: 22px; height: 22px; border: 0; border-radius: 50%;
  color: #fff; font-size: 13px; line-height: 22px; text-align: center; cursor: pointer; padding: 0;
  z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
/* 카드 안쪽 모서리에 배치 → 인접 카드끼리 버튼 겹침 방지 */
.bd-remove { top: 4px; right: 4px; background: #ef4444; }
.bd-cover  { top: 4px; left: 4px; background: #d1d5db; }
.bd-item.is-cover .bd-cover, .bd-cover.on { background: #f59e0b; }
