/* TipTap Editor Styles */

.tiptap-wrapper {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

/* Toolbar */
.tiptap-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-wrap: wrap;
}

.tiptap-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tiptap-toolbar button:hover {
  background: #e5e7eb;
}

.tiptap-toolbar button.is-active {
  background: #2563eb;
  color: white;
}

.tiptap-toolbar-sep {
  width: 1px;
  height: 20px;
  background: #d1d5db;
  margin: 0 4px;
  flex-shrink: 0;
}

/* Editor content area */
.tiptap-editor .ProseMirror {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #111827;
  outline: none;
}

.tiptap-editor .ProseMirror:focus {
  outline: none;
}

/* Placeholder */
.tiptap-editor .ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: #9ca3af;
  pointer-events: none;
  height: 0;
}

/* Headings */
.tiptap-editor .ProseMirror h1 {
  font-size: 1.5em;
  font-weight: 700;
  margin: 0.5em 0 0.3em;
  line-height: 1.3;
}

.tiptap-editor .ProseMirror h2 {
  font-size: 1.3em;
  font-weight: 600;
  margin: 0.5em 0 0.3em;
  line-height: 1.3;
}

.tiptap-editor .ProseMirror h3 {
  font-size: 1.15em;
  font-weight: 600;
  margin: 0.5em 0 0.3em;
  line-height: 1.3;
}

/* Paragraphs */
.tiptap-editor .ProseMirror p {
  margin: 0.3em 0;
}

/* Lists */
.tiptap-editor .ProseMirror ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin: 0.3em 0;
}

.tiptap-editor .ProseMirror ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin: 0.3em 0;
}

.tiptap-editor .ProseMirror li {
  margin: 0.1em 0;
}

/* Blockquote */
.tiptap-editor .ProseMirror blockquote {
  border-left: 3px solid #d1d5db;
  margin: 0.5em 0;
  padding: 0.3em 0 0.3em 1em;
  color: #6b7280;
}

/* Horizontal rule */
.tiptap-editor .ProseMirror hr {
  border: none;
  border-top: 1px solid #d1d5db;
  margin: 1em 0;
}

/* Inline styles */
.tiptap-editor .ProseMirror strong {
  font-weight: 700;
}

.tiptap-editor .ProseMirror em {
  font-style: italic;
}

.tiptap-editor .ProseMirror u {
  text-decoration: underline;
}

.tiptap-editor .ProseMirror s {
  text-decoration: line-through;
}
