/* Keep CSS minimal. Tailwind handles layout and UI. */

/* TipTap/ProseMirror needs this for good selection/caret behavior */
.ProseMirror {
  outline: none;
}

/* Basic block styling so slash commands are visibly applied */
#editor .ProseMirror h1 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0.75rem 0 0.5rem;
}

#editor .ProseMirror h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.7rem 0 0.45rem;
}

#editor .ProseMirror h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0.6rem 0 0.4rem;
}

#editor .ProseMirror p {
  margin: 0.35rem 0;
}

#editor .ProseMirror ul,
#editor .ProseMirror ol {
  margin: 0.5rem 0;
  padding-left: 1.4rem;
  list-style-position: outside;
}

#editor .ProseMirror ul {
  list-style-type: disc;
}

#editor .ProseMirror ol {
  list-style-type: decimal;
}

#editor .ProseMirror li {
  margin: 0.2rem 0;
}

#editor .ProseMirror blockquote {
  margin: 0.6rem 0;
  padding-left: 0.9rem;
  border-left: 3px solid #e2e8f0; /* slate-200 */
  color: #475569; /* slate-600 */
}

#editor .ProseMirror pre {
  margin: 0.6rem 0;
  padding: 0.75rem 0.9rem;
  background: #0f172a; /* slate-900 */
  color: #f8fafc; /* slate-50 */
  border-radius: 0.75rem;
  font-size: 0.9rem;
  overflow-x: auto;
}

/* Make empty editor feel clickable */
.ProseMirror p.is-empty:first-child::before {
  content: "Type / for blocks, or just start writing…";
  float: left;
  color: #94a3b8; /* slate-400 */
  pointer-events: none;
  height: 0;
}

.save-indicator {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  font-size: 0.75rem;
  color: #94a3b8; /* slate-400 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.save-indicator.is-visible {
  opacity: 1;
}
