/*
 * 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.
 *
 * NOTE: RapidRailsUI component styles (dialog, theme_toggle) are now in
 * app/assets/tailwind/rapid_rails_ui/ and imported via Tailwind CSS.
 */

/* Fix: Password toggle needs to be clickable above the input field */
button[aria-label="Toggle password visibility"] {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

/* Fix: overflow-hidden on input container can block clicks on the toggle button */
[data-controller="input-validation"] .relative.overflow-hidden {
  overflow: visible !important;
}