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

/* Rich Text Editor Styles */
[data-rich-text-editor-target="editor"] ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 2rem;
  margin: 0.5rem 0;
}

[data-rich-text-editor-target="editor"] ol {
  list-style-type: decimal;
  list-style-position: outside;
  padding-left: 2rem;
  margin: 0.5rem 0;
}

[data-rich-text-editor-target="editor"] li {
  margin: 0.25rem 0;
  display: list-item;
}

[data-rich-text-editor-target="editor"] ul ul,
[data-rich-text-editor-target="editor"] ol ol {
  padding-left: 2rem;
}

/* Make sure the prose class doesn't interfere */
[data-rich-text-editor-target="editor"].prose ul,
[data-rich-text-editor-target="editor"].prose ol {
  list-style-position: outside;
}

/* Chat message fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}
