/* Container */
.editor-container {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
  padding: 0.5rem;
}

.toolbar-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.toolbar-btn:hover {
  background-color: #e5e7eb;
}

.toolbar-btn.active {
  background-color: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
}

.divider {
  width: 1px;
  height: 1.5rem;
  background-color: #d1d5db;
  margin: 0 0.25rem;
}

/* Editor content */
.editor-content {
  padding: 1rem;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  color: #111827;
}

/* Headings */
.editor-content h1 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

.editor-content h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  margin: 0.9rem 0 0.4rem;
}

.editor-content h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  margin: 0.8rem 0 0.4rem;
}

/* Paragraphs & Lists */
.editor-content p {
  margin-bottom: 0.75rem;
}

.editor-content ul,
.editor-content ol {
  margin: 0.5rem 0 0.75rem 1.5rem;
  padding-left: 0.5rem;
}

.editor-content ul {
  list-style-type: disc;
}

.editor-content ol {
  list-style-type: decimal;
}

/* Blockquotes */
.editor-content blockquote {
  border-left: 4px solid #d1d5db;
  padding-left: 1rem;
  color: #4b5563;
  font-style: italic;
  margin: 1rem 0;
}

/* Links */
.editor-content a {
  color: #2563eb;
  text-decoration: underline;
}

.editor-content a:hover {
  color: #1e40af;
}

/* Images */
.editor-content img {
  max-width: 100%;
  border-radius: 0.25rem;
  margin: 0.5rem 0;
}

/* Code */
.editor-content code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.9rem;
}

.editor-content pre {
  background-color: #f9fafb;
  padding: 0.75rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.9rem;
}

/* Focus */
.editor-content:focus-within {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}
