/* Rich text editor style fixes */

/* Apply styles to the editor itself */
.trix-content {
  color: #333;
  font-family: inherit;
}

/* Fix for styling within the editor */
trix-editor {
  min-height: 10em;
  color: #333;
  font-family: inherit;
}

/* Make the toolbar more compact and simplified */
trix-toolbar {
  padding: 0.25em 0;
  margin-bottom: 0.5em;
  border-bottom: 1px solid #eee;
}

trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0;
}

trix-toolbar .trix-button-group {
  margin: 0 0.5em 0.25em 0;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
}

trix-toolbar .trix-button {
  width: 2.2em;
  height: 1.8em;
  padding: 0;
  margin: 0;
  border: none;
  border-right: 1px solid #eee;
  background: white;
}

trix-toolbar .trix-button:last-child {
  border-right: none;
}

trix-toolbar .trix-button.trix-active {
  background: #e6f2ff;
  color: #0066cc;
}

/* Basic formatting styles that should appear in the editor */
trix-editor [data-trix-content] {
  color: inherit;
  font-family: inherit;
}

/* Style for bold text */
.trix-content strong,
trix-editor strong {
  font-weight: bold;
}

/* Style for italic text */
.trix-content em,
trix-editor em {
  font-style: italic;
}

/* Style for strikethrough text */
.trix-content del,
trix-editor del {
  text-decoration: line-through;
}

/* Style for headings */
.trix-content h1,
trix-editor h1 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0.5em 0;
  color: inherit;
}

/* Style for blockquotes */
.trix-content blockquote,
trix-editor blockquote {
  border-left: 3px solid #ccc;
  padding-left: 0.75em;
  font-style: italic;
  margin: 0.5em 0;
  color: #555;
}

/* Style for bulleted lists */
.trix-content ul,
trix-editor ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin: 0.5em 0;
}

/* Style for numbered lists */
.trix-content ol,
trix-editor ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin: 0.5em 0;
}

/* Make sure active styling displays in the content */
trix-editor:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Ensure consistent font-size between input and display */
trix-editor, .trix-content {
  font-size: inherit;
  line-height: 1.5;
}

/* Custom class for when the editor is active */
trix-editor.trix-active {
  border-color: #80bdff;
} 
