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

/* Simple Form error styling */
.field_with_errors label {
  color: #dc2626; /* red-600 */
}

.field_with_errors input,
.field_with_errors select,
.field_with_errors textarea {
  border-color: #dc2626; /* red-600 */
}

.field_with_errors input:focus,
.field_with_errors select:focus,
.field_with_errors textarea:focus {
  border-color: #dc2626;
  --tw-ring-color: #dc2626;
}

span.error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #dc2626; /* red-600 */
}

.error_notification {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.375rem;
  background-color: #fef2f2; /* red-50 */
  color: #991b1b; /* red-800 */
  font-size: 0.875rem;
  border: 1px solid #fecaca; /* red-200 */
}
