/* Hide Trix toolbar completely */
trix-toolbar {
  display: none !important;
}

/* Optional: Adjust Trix editor styling without toolbar */
trix-editor {
  margin-top: 0;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

trix-editor:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Dark theme styles */
[data-theme="dark"] trix-editor {
  background-color: #0d0d0d;
  border-color: #333;
  color: #ccc;
}

[data-theme="dark"] trix-editor:focus {
  border-color: #4a9eff;
  background-color: #111;
}

[data-theme="dark"] trix-editor:empty:before {
  color: #666;
}

/* Ensure placeholder text is visible */
trix-editor:empty:before {
  color: #999;
  content: attr(placeholder);
  pointer-events: none;
  display: block;
}

/* Remove the attachment buttons since toolbar is hidden */
trix-editor .attachment__toolbar {
  display: none;
}

/* Ensure the editor takes full width in the gen-palette */
.gen-palette-prompt-container trix-editor {
  width: 100%;
  resize: vertical;
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
}