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

body {
  font-family: "Open Sans", "Helvetica Neue", sans-serif;
}

.field_with_errors {
  display: inherit;
}

.field_with_errors input,
.field_with_errors select,
.field_with_errors textarea {
  border-color: red;
  box-shadow: none;
}

input[disabled="disabled"] {
  background-color: #eee;
  cursor: not-allowed;
}
.prose {
  --tw-prose-bullets: black;
}
.prose ol {
  counter-reset: page-counter;
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
}
.prose ol li {
  counter-increment: page-counter;
  display: flex;
  margin-bottom: 0.5rem;
  white-space: pre-wrap;
  align-items: center;
  width: 100%;
  min-height: 2.5rem;
}
.prose ol li::before {
  content: "" counter(page-counter);
  border-radius: 50%;
  background-color: rgba(37, 99, 235);

  width: 2.5rem;
  min-width: 2.5rem;
  max-width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  max-height: 2.5rem;

  margin-right: 1rem;

  display: inline-flex;
  justify-content: center;
  align-items: center;

  color: white !important;
  font-weight: bold;
  font-size: 1.1rem;
}

/* OVERRIDES */
.prose > ol > li > *:last-child {
  margin-bottom: 0;
}
.prose > ol > li > *:first-child {
  margin-top: 0;
}

.turbo-progress-bar {
  background-color: rgb(34 211 238);
}

.prose a:not(.button-primary) {
  font-weight: bold;
  color: rgba(37, 99, 235);
}

.dark .prose a:not(.button-primary) {
  color: #60a5fa !important;
}

.dark input[disabled="disabled"] {
  background-color: #1e293b !important;
  color: #64748b !important;
  border-color: #334155 !important;
}
