#notes-editor {
  outline: none;
  line-height: 1.75;
  color: #d1d5db;
}
#notes-editor:empty:before {
  content: attr(data-placeholder);
  color: #4b5563;
  pointer-events: none;
}
#notes-editor h1 { font-size: 1.75rem; font-weight: 700; color: #fdfffd; margin: 0.75rem 0 0.25rem; }
#notes-editor h2 { font-size: 1.35rem; font-weight: 700; color: #fdfffd; margin: 0.75rem 0 0.25rem; }
#notes-editor h3 { font-size: 1.1rem;  font-weight: 700; color: #fdfffd; margin: 0.5rem 0 0.25rem; }
#notes-editor p  { margin: 0.25rem 0; }
#notes-editor li { margin: 0.2rem 0; }

/* Bullet list — orange › marker (exclude checklist) */
#notes-editor ul { list-style: none; padding-left: 1.25rem; margin: 0.25rem 0; }
#notes-editor ul:not(.notes-checklist) li::before { content: '›'; color: #ff6a12; font-weight: 700; margin-right: 0.5rem; }

/* Numbered list — orange counter */
#notes-editor ol { list-style: none; padding-left: 1.25rem; margin: 0.25rem 0; counter-reset: notes-ol; }
#notes-editor ol li { counter-increment: notes-ol; }
#notes-editor ol li::before { content: counter(notes-ol) '.'; color: #ff6a12; font-weight: 700; margin-right: 0.5rem; }

/* Checklist — checkbox drawn purely with CSS pseudo-elements (never selectable) */
#notes-editor ul.notes-checklist { padding-left: 1.25rem; }   /* same indent as bullet/numbered */
#notes-editor ul.notes-checklist li {
  position: relative;
  list-style: none;
  padding-left: 1.6rem;        /* room for the circle */
}
#notes-editor ul.notes-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;                 /* vertically center with first text line (lh 1.75, circle 1.1em) */
  width: 1.1em;
  height: 1.1em;
  box-sizing: border-box;
  border: 2px solid #ff6a12;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
#notes-editor ul.notes-checklist li.checked::before {
  background-color: #14b8a6;
  border-color: #14b8a6;
}
/* Checkmark for checked items (white SVG, not part of the text) */
#notes-editor ul.notes-checklist li.checked::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.1em;
  height: 1.1em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.72em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  pointer-events: none;
}
#notes-editor ul.notes-checklist li.checked { color: #6b7280; text-decoration: line-through; }

#notes-editor img { max-width: 100%; margin: 1rem 0; border-radius: 0.75rem; box-shadow: 0 4px 16px rgba(0,0,0,0.3); display: block; }
#notes-editor a   { color: #14b8a6; text-decoration: underline; }

.notes-list-item { border-left: 2px solid transparent; transition: all 0.15s; }
.notes-list-item:hover { background: rgba(255,255,255,0.04); border-left-color: #4b5563; }
.notes-list-item.active { background: rgba(255,106,18,0.12); border-left-color: #ff6a12; }
.notes-list-item.active .note-item-title { color: #fdfffd; }

.editor-toolbar-btn { transition: all 0.15s; }
.editor-toolbar-btn:hover, .editor-toolbar-btn.active { color: #ff6a12; background: rgba(255,255,255,0.05); }
