:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #213547;
  background-color: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
}

.editor-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.editor-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.editor-wrapper {
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background-color: white;
}

.menu-bar {
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.menu-button {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.menu-button:hover {
  background-color: #f1f1f1;
}

.menu-button.is-active {
  background-color: #e6f0ff;
  border-color: #b3d4ff;
  color: #0066cc;
}

.editor-content {
  padding: 16px;
  min-height: 200px;
}

.html-output {
  margin-top: 2rem;
}

.html-output h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.html-output pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-family: monospace;
  font-size: 0.875rem;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* ProseMirror Styles */
.ProseMirror {
  outline: none;
}

.ProseMirror p {
  margin: 1em 0;
}

.ProseMirror h1 {
  font-size: 1.875rem;
  font-weight: bold;
  margin: 1em 0;
}

.ProseMirror h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 1em 0;
}

.ProseMirror img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.ProseMirror ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin: 1em 0;
}

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

.ProseMirror pre {
  background-color: #f5f5f5;
  padding: 0.75em;
  border-radius: 4px;
  font-family: monospace;
  margin: 1em 0;
}

.ProseMirror code {
  background-color: #f5f5f5;
  padding: 0.25em;
  border-radius: 3px;
  font-family: monospace;
}

.ProseMirror blockquote {
  border-left: 3px solid #ddd;
  padding-left: 1em;
  margin: 1em 0;
  font-style: italic;
  color: #555;
}

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