/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import "actiontext.css";
@import url("https://unpkg.com/trix@2.0.0/dist/trix.css");

/* Prevent horizontal scrollbar */
html, body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure Trix editor is visible and clickable */
trix-editor {
  min-height: 600px !important;
  background: white;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
}

trix-editor:focus {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

trix-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1rem;
}
