/* Rhino Editor Styles */
/* Downloaded from https://unpkg.com/rhino-editor/exports/styles/trix.css */

.trix-content {
  line-height: 1.4;
  font-size: 1rem;
}

.trix-content * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.trix-content h1 {
  font-size: 1.2em;
  line-height: 1.2;
}

.trix-content blockquote {
  border: 0 solid #ccc;
  border-left-width: 0.3em;
  margin-left: 0.3em;
  padding-left: 0.6em;
}

.trix-content [data-trix-mutable] {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.trix-content [data-trix-mutable]::-moz-selection {
  background: transparent;
}

.trix-content [data-trix-mutable]::selection {
  background: transparent;
}

.trix-content [data-trix-cursor-target] {
  display: inline !important;
}

.trix-content [data-trix-cursor-target] * {
  display: inline !important;
}

.trix-content img {
  max-width: 100%;
  height: auto;
}

.trix-content .attachment {
  display: inline-block;
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.trix-content .attachment a {
  color: inherit;
  text-decoration: none;
}

.trix-content .attachment a:hover,
.trix-content .attachment a:visited:hover {
  color: inherit;
}

.trix-content .attachment__caption {
  text-align: center;
}

.trix-content .attachment__name {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

.trix-content .attachment__size {
  color: #666;
}

.trix-content .attachment--preview {
  width: 100%;
  text-align: center;
}

.trix-content .attachment--preview .attachment__caption {
  color: #666;
  font-size: 0.9em;
  line-height: 1.2;
}

.trix-content .attachment--file {
  color: #333;
  line-height: 1;
  margin: 0 2px 2px 0;
  padding: 0.4em 1em;
  border: 1px solid #bbb;
  border-radius: 5px;
}

.trix-content .attachment--content {
  padding-top: 0.1em;
  padding-bottom: 0.1em;
}

.trix-content pre {
  display: inline-block;
  width: 100%;
  vertical-align: top;
  font-family: monospace;
  font-size: 0.9em;
  padding: 0.5em;
  white-space: pre;
  background-color: #eee;
  overflow-x: auto;
}

.trix-content ul,
.trix-content ol {
  margin: 0 0 0 2em;
}

.trix-content li {
  margin: 0;
}

.trix-content ul {
  list-style-type: disc;
}

.trix-content ol {
  list-style-type: decimal;
}

.trix-content ul ul {
  list-style-type: circle;
}

.trix-content ol ol {
  list-style-type: lower-alpha;
}

.trix-content ul ul ul {
  list-style-type: square;
}

.trix-content ol ol ol {
  list-style-type: lower-roman;
}

.trix-content ul ul ul ul {
  list-style-type: disc;
}

.trix-content ol ol ol ol {
  list-style-type: decimal;
}

.trix-content ul ul ul ul ul {
  list-style-type: circle;
}

.trix-content ol ol ol ol ol {
  list-style-type: lower-alpha;
}

/* Rhino Editor specific styles */
rhino-editor {
  display: block;
  position: relative;
}

.rhino-toolbar {
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: #f8f9fa;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.rhino-editor-content {
  border: 1px solid #ccc;
  border-radius: 0 0 4px 4px;
  min-height: 200px;
  padding: 12px;
  background: white;
  outline: none;
}

.rhino-editor-content:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ProseMirror {
  outline: none;
}

.ProseMirror p {
  margin: 1em 0;
}

.ProseMirror p:first-child {
  margin-top: 0;
}

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

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

.ProseMirror li {
  margin: 0;
}

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

.ProseMirror pre {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1em;
  font-family: 'Courier New', Courier, monospace;
  overflow-x: auto;
}

.ProseMirror code {
  background: #f5f5f5;
  border-radius: 3px;
  padding: 0.2em 0.4em;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.ProseMirror strong {
  font-weight: bold;
}

.ProseMirror em {
  font-style: italic;
}

.ProseMirror a {
  color: #007bff;
  text-decoration: underline;
}

.ProseMirror a:hover {
  color: #0056b3;
}

.ProseMirror h1,
.ProseMirror h2,
.ProseMirror h3,
.ProseMirror h4,
.ProseMirror h5,
.ProseMirror h6 {
  font-weight: bold;
  margin: 1em 0 0.5em 0;
  line-height: 1.2;
}

.ProseMirror h1 {
  font-size: 2em;
}

.ProseMirror h2 {
  font-size: 1.5em;
}

.ProseMirror h3 {
  font-size: 1.25em;
}

.ProseMirror h4 {
  font-size: 1.1em;
}

.ProseMirror h5 {
  font-size: 1em;
}

.ProseMirror h6 {
  font-size: 0.9em;
}

/* Selection styles */
.ProseMirror-selectednode {
  outline: 2px solid #68cef8;
}

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