/*! bm-picker.css — Modal Only, Conflict-Safe (v20251111 — ZOOLZA Dark)
 * - 모든 규칙을 #bm-folder-modal 하위로 스코프 고정
 * - .bm-panel(클래스)은 모달 내부에서만 사용 → #bm-panel(ID)와 충돌 없음
 */

/* ===================== 0) Wrapper ===================== */
#bm-folder-modal[hidden]{ display:none !important; }
#bm-folder-modal{
  position:fixed;
  inset:0;
  z-index:10000;
}

/* Backdrop */
#bm-folder-modal .bm-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.60); /* 다크 모드용 약간 더 어둡게 */
}

/* ===================== 1) Panel ===================== */
#bm-folder-modal .bm-panel{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(520px, 92vw);

  /* 다크 모드 배경/테두리 */
  background:radial-gradient(circle at top left,#1e2333 0,#050509 55%,#050509 100%);
  color:#f5f5f8;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 22px 70px rgba(0,0,0,.85);

  overflow:hidden;
  font-family:inherit;
  display:flex;
  flex-direction:column;
}

/* ===================== 2) Sections ===================== */
#bm-folder-modal .bm-hdr{
  padding:12px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-size:14px;
  font-weight:700;
  background:rgba(9,12,22,.98);
  color:#e3e5ff;
}

#bm-folder-modal .bm-body{
  padding:14px 16px;
  display:grid;
  gap:12px;
  background:rgba(7,9,16,.98);
  overflow:auto;
}

#bm-folder-modal .bm-ftr{
  padding:12px 16px;
  display:flex;
  gap:8px;
  justify-content:flex-end;
  border-top:1px solid rgba(255,255,255,.06);
  background:rgba(9,12,22,.98);
}

/* ===================== 3) Form ===================== */
#bm-folder-modal .bm-label{
  font-size:13px;
  color:#cfd2ea;
  display:block;
  margin-bottom:4px;
}

#bm-folder-modal .bm-select{
  width:100%;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  font-size:13px;
  background:#050712;
  color:#f5f6ff;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

#bm-folder-modal .bm-select:focus{
  border-color:#0f70ff;
  box-shadow:0 0 0 1px rgba(15,112,255,.35);
  background:#030510;
}

/* ===================== 4) Meta ===================== */
#bm-folder-modal .bm-meta{
  border:1px dashed rgba(255,255,255,.16);
  border-radius:10px;
  padding:10px;
  font-size:12px;
  color:#d0d3f0;
  background:rgba(5,7,14,.95);
}

#bm-folder-modal .bm-meta__row{
  display:flex;
  gap:8px;
}

#bm-folder-modal .bm-meta__key{
  width:3.2rem;
  color:#8a8fb0;
  flex-shrink:0;
}

#bm-folder-modal .bm-meta__val{
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#f0f1ff;
}

/* ===================== 5) Buttons ===================== */
#bm-folder-modal .bm-btn{
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(8,10,20,.98);
  cursor:pointer;
  font-weight:600;
  font-size:13px;
  color:#e3e6ff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:88px;
  transition:
    background .15s ease,
    border-color .15s ease,
    transform .15s ease,
    box-shadow .15s ease,
    filter .15s ease;
}

#bm-folder-modal .bm-btn:hover{
  background:#111626;
  border-color:#7279b8;
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(0,0,0,.75);
  filter:brightness(1.03);
}

#bm-folder-modal .bm-btn--primary{
  background:linear-gradient(120deg,#0f70ff,#3b82ff,#00e0ff);
  color:#f8f9ff;
  border-color:transparent;
  box-shadow:0 10px 28px rgba(0,0,0,.8);
}

#bm-folder-modal .bm-btn--primary:hover{
  box-shadow:0 14px 40px rgba(0,0,0,.9);
}

/* ===================== 6) Hint ===================== */
#bm-folder-modal .bm-hint{
  font-size:12px;
  color:#ff9aa9;
  margin:6px 0 0;
}
