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

/* Make button_to delete buttons look like links */
form.inline {
  display: inline;
}

form.inline button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

/* Style logout button in dropdown */
.group form button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ContentEditable WYSIWYG Editor Styles */
[contenteditable] {
  outline: none;
}

[contenteditable]:focus {
  outline: none;
}

[contenteditable] a {
  color: #2563eb;
  text-decoration: underline;
}

[contenteditable] a:hover {
  color: #1d4ed8;
}

/* Format class for displaying WYSIWYG content */
.format {
  line-height: 1.6;
}

.format p {
  margin-bottom: 0.75rem;
}

.format a {
  color: #2563eb;
  text-decoration: underline;
}

.format a:hover {
  color: #1d4ed8;
}

.format a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.8em;
}

.format h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.format h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.format h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.format ul,
.format ol {
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.format ul {
  list-style-type: disc;
}

.format ol {
  list-style-type: decimal;
}

.format li {
  margin-bottom: 0.25rem;
}

.format blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #6b7280;
}

.format code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.875rem;
}

.format pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.format pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.format hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 2rem 0;
}

.format strong {
  font-weight: bold;
}

.format em {
  font-style: italic;
}

.format s {
  text-decoration: line-through;
}