/* modals-workspace.css — workspace 专属弹窗扩展样式
   仅被 list.html / list-m.html 加载，故事页不加载 */

/* 待办编辑弹窗：删除按钮置于底部左侧 */
#todoEditorDeleteBtn {
  margin-right: auto;
}

/* 音乐编辑弹窗：删除按钮置于底部左侧 */
#musicEditorDeleteBtn {
  margin-right: auto;
}

/* 歌词选择框所在的 form-group 需要相对定位 */
#musicEditorModal .form-group {
  position: relative;
}

/* 音乐编辑弹窗不允许内部滚动，否则下拉列表会被裁剪 */
#musicEditorModal .modal {
  overflow: visible;
}

/* ===== 歌词选择框 ===== */
.music-lrc-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s;
  font-size: 14px;
  color: var(--text-1);
}
.music-lrc-select:hover {
  border-color: var(--primary);
}
.music-lrc-select__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music-lrc-select__arrow {
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 10px;
  color: var(--text-3);
}

/* 歌词下拉列表 */
.music-lrc-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1800;
  max-height: 220px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  margin-top: 4px;
}
.music-lrc-dropdown__item {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-1);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s;
}
.music-lrc-dropdown__item:hover {
  background: var(--bg-3);
}
.music-lrc-dropdown__item--active {
  color: var(--primary);
  background: #f0f5ff;
}

/* ===== 音乐上传弹窗 ===== */
.music-upload__tabs {
  display: flex;
  background: var(--bg-2);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 12px;
  width: fit-content;
}
.music-upload__tab {
  padding: 6px 18px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.2s;
}
.music-upload__tab--active {
  background: var(--bg-1);
  color: var(--text-1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.music-upload__dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 2px dashed var(--line-2);
  border-radius: 12px;
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color 150ms, background 150ms;
}
.music-upload__dropzone:hover,
.music-upload__dropzone--over {
  border-color: var(--primary);
  background: rgba(20,86,240,0.04);
}
.music-upload__drop-text {
  font-size: 14px;
  color: var(--text-3);
}

.music-upload__status {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-2);
  text-align: center;
}
.music-upload__status-text {
  font-size: 13px;
  color: var(--text-2);
}
.music-upload__status-text--error {
  color: #e33e38;
}
.music-upload__status-text--success {
  color: #00b42a;
}
.music-upload__file-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  max-height: 160px;
  overflow-y: auto;
}
.music-upload__file-list li {
  padding: 3px 0;
  font-size: 12px;
  color: var(--text-2);
  border-bottom: 1px solid var(--bg-3, #eee);
  word-break: break-all;
}
.music-upload__file-list li:last-child {
  border-bottom: none;
}
