/* Стили для простого редактора */
#editor {
  background: white;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  min-height: 150px;
  padding: 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  cursor: text;
}

#editor:focus-within {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.simple-editor {
  outline: none;
  min-height: 120px;
  cursor: text;
  padding: 8px;
  border-radius: 4px;
  line-height: 1.5;
}

.simple-editor:focus {
  outline: none;
}

.simple-editor p {
  margin: 0 0 1em 0;
  line-height: 1.5;
}

.simple-editor p:last-child {
  margin-bottom: 0;
}

.simple-editor p:first-child:empty::before {
  content: attr(data-placeholder);
  color: #adb5bd;
  pointer-events: none;
}

.simple-editor strong {
  font-weight: bold;
}

.simple-editor em {
  font-style: italic;
}

.simple-editor u {
  text-decoration: underline;
}

.simple-editor ul, .simple-editor ol {
  padding-left: 1.5em;
  margin: 1em 0;
}

.simple-editor li {
  margin: 0.25em 0;
}

.simple-editor h1, .simple-editor h2, .simple-editor h3 {
  margin: 1em 0 0.5em 0;
  font-weight: bold;
  line-height: 1.2;
}

.simple-editor h1 {
  font-size: 1.5em;
}

.simple-editor h2 {
  font-size: 1.3em;
}

.simple-editor h3 {
  font-size: 1.1em;
}

/* Стили для панели инструментов редактора */
.editor-container {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px;
  background: #f8f9fa;
  border-bottom: 1px solid #ced4da;
}

.toolbar-btn {
  padding: 6px 10px;
  border: 1px solid #dee2e6;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.toolbar-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.toolbar-btn.active {
  background: #0d6efd;
  color: white;
  border-color: #0d6efd;
}
