/*
 * 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.
 */

/* Trix Editor Custom Styling for Dashboard */
trix-toolbar {
  display: block !important;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem 0.375rem 0 0;
  padding: 0.5rem;
  margin-bottom: -1px;
}

trix-editor {
  display: block !important;
  min-height: 10rem;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0 0 0.375rem 0.375rem;
  background: white;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

trix-editor:focus {
  border-color: #4f46e5;
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

trix-editor h1 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

trix-editor blockquote {
  border-left: 4px solid #d1d5db;
  padding-left: 1rem;
  margin-left: 0;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

trix-editor pre {
  background: #f3f4f6;
  padding: 0.75rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

trix-editor ul, trix-editor ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

trix-editor a {
  color: #4f46e5;
  text-decoration: underline;
}

/* Color picker styling to show as a colored circle */
input[type="color"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 50%;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 50%;
}
