/* Custom Trix Editor Styling */

trix-editor {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  padding: 16px;
  background-color: #fff;
}

trix-editor:empty:not(:focus)::before {
  color: #9ca3af;
}

trix-editor h1 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.2;
}

trix-editor h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.3;
}

trix-editor h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.4;
}

trix-editor p {
  margin-top: 0;
  margin-bottom: 12px;
}

trix-editor ul,
trix-editor ol {
  margin-top: 0;
  margin-bottom: 12px;
  padding-left: 24px;
}

trix-editor li {
  margin-bottom: 4px;
}

trix-editor a {
  color: #3b82f6;
  text-decoration: underline;
}

trix-editor a:hover {
  color: #2563eb;
}

trix-editor strong {
  font-weight: 600;
}

trix-editor blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 16px;
  margin-left: 0;
  margin-right: 0;
  color: #6b7280;
}

trix-editor pre {
  background-color: #f3f4f6;
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
}

trix-editor code {
  background-color: #f3f4f6;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
}

/* Toolbar styling */
trix-toolbar {
  border: 1px solid #e5e7eb;
  border-radius: 8px 8px 0 0;
  background-color: #f9fafb;
  padding: 8px 12px;
  margin-bottom: -1px;
}

trix-toolbar .trix-button-group {
  border: none;
  margin-bottom: 0;
}

trix-toolbar .trix-button {
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px 8px;
  margin: 0 2px;
  color: #374151;
}

trix-toolbar .trix-button:hover {
  background-color: #e5e7eb;
}

trix-toolbar .trix-button.trix-active {
  background-color: #e0e7ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}

trix-toolbar .trix-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* File upload attachment styling */
trix-editor .attachment {
  display: inline-block;
  padding: 8px 12px;
  background-color: #f3f4f6;
  border-radius: 6px;
  margin: 4px;
}

trix-editor .attachment__caption {
  font-size: 12px;
  color: #6b7280;
}

/* Focus state */
trix-editor:focus {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

