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

/* Search input clear button styling using Bootstrap utilities */
.search-clear-btn {
  width: 1rem;
  height: 1rem;
  font-size: 0.75rem;
  opacity: 0.6;
  transition: opacity 0.15s ease-in-out;
}

.search-clear-btn:hover {
  opacity: 1;
}

.search-clear-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Trix / ActionText — used on the Event description field. File attachments
 * are intentionally disabled (see app/javascript/application.js for the
 * trix-file-accept guard and Event#description_rejects_attachments for the
 * server-side validation). Hiding the file-tools button group is the visible
 * half of that policy. */
trix-toolbar .trix-button-group--file-tools {
  display: none;
}

.aplify-rich-text trix-editor {
  min-height: 12rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 0.5rem 0.75rem;
  background: #fff;
}

.aplify-rich-text trix-editor:focus {
  outline: 0;
  border-color: var(--bs-primary-border-subtle, #86b7fe);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb, 13, 110, 253), 0.25);
}
