/* =========================================================
   deeBoard — Task Description Mini Rich-Text Editor
   Adaptasi dari .note-editor-toolbar / .note-window-editor (notes.css)
========================================================= */

.task-desc-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  flex-shrink: 0;
}
.task-desc-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}
.task-desc-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.task-desc-btn.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.task-desc-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

/* Toolbar attaches directly above the editor, so square off the top
   corners of the contenteditable field to match. */
.note-desc-resize-wrap:has(.task-desc-toolbar) .note-desc-input {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-top: none;
}

.note-desc-input[contenteditable="true"] {
  overflow-y: auto;
  outline: none;
}
.note-desc-input[contenteditable="true"]:empty::before {
  content: attr(data-placeholder);
  color: var(--text-tertiary);
  pointer-events: none;
}
.note-desc-input[contenteditable="true"] b,
.note-desc-input[contenteditable="true"] strong { font-weight: 700; color: var(--text); }
.note-desc-input[contenteditable="true"] i,
.note-desc-input[contenteditable="true"] em { font-style: italic; }
.note-desc-input[contenteditable="true"] u { text-decoration: underline; }
.note-desc-input[contenteditable="true"] s,
.note-desc-input[contenteditable="true"] strike { text-decoration: line-through; opacity: 0.75; }
.note-desc-input[contenteditable="true"] ul,
.note-desc-input[contenteditable="true"] ol {
  margin: 6px 0;
  padding-left: 22px;
}
.note-desc-input[contenteditable="true"] li { margin: 2px 0; }
.note-desc-input[contenteditable="true"] blockquote {
  margin: 6px 0;
  padding-left: 14px;
  border-left: 3px solid var(--accent-soft);
  color: var(--text-secondary);
}
.note-desc-input[contenteditable="true"] blockquote blockquote {
  border-left-color: var(--border);
}
