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

/* Mobile-specific touch improvements */
a, button, input, select, textarea, [role="button"] {
  touch-action: manipulation;
}

/* Better tap targets for mobile */
@media (max-width: 768px) {
  a, button, [role="button"], input[type="button"], input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improved focus styles for accessibility */
  a:focus, button:focus, [role="button"]:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #845EC2;
    outline-offset: 2px;
  }
}

/* Fix for iOS 100vh bug */
@supports (-webkit-touch-callout: none) {
  .h-full, .min-h-screen {
    height: -webkit-fill-available;
  }
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

/* Ensure proper spacing for sticky headers */
.sticky-header-content {
  scroll-margin-top: 80px; /* Adjust based on header height */
}
