/* PWA Mobile Styles */

/* Ensure HTML formatting tags render properly */
strong, b {
  font-weight: 700;
}

/* Safe area support for notched devices */
.safe-top {
  padding-top: env(safe-area-inset-top);
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

.pb-safe {
  padding-bottom: env(safe-area-inset-bottom);
}

.safe-area-inset {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Touch optimization */
button,
a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
}

/* Smooth scrolling */
html {
  -webkit-overflow-scrolling: touch;
}

/* Prevent zoom on input focus (iOS) */
input[type="text"],
input[type="search"],
input[type="email"],
select,
textarea {
  font-size: 16px;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide scrollbars on horizontal scroll containers */
.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

.overflow-x-auto {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Active state for touch */
.active\:bg-gray-50:active {
  background-color: rgb(249 250 251);
}

.active\:bg-gray-100:active {
  background-color: rgb(243 244 246);
}

.active\:bg-blue-700:active {
  background-color: rgb(29 78 216);
}

/* PWA install prompt */
@media (display-mode: standalone) {
  /* App is running as PWA */
  body {
    user-select: none;
  }

  /* Allow text selection in content areas */
  p, h1, h2, h3, h4, h5, h6 {
    user-select: text;
  }
}
/* User Manual specific styles */

.user-manual-content img {
  max-width: 100%;
  border-radius: 0.375rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.user-manual-content h1, 
.user-manual-content h2, 
.user-manual-content h3, 
.user-manual-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.user-manual-content h1 {
  font-size: 2rem;
}

.user-manual-content h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.user-manual-content h3 {
  font-size: 1.25rem;
}

.user-manual-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.user-manual-content ul, 
.user-manual-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.user-manual-content ul li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
}

.user-manual-content ol li {
  list-style-type: decimal;
  margin-bottom: 0.5rem;
}

.user-manual-content code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: monospace;
}

.user-manual-content pre {
  background-color: #f3f4f6;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.user-manual-content blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1rem;
  font-style: italic;
  margin: 1.5rem 0;
  color: #6b7280;
}

.user-manual-content a {
  color: #2563eb;
  text-decoration: underline;
}

.user-manual-content a:hover {
  color: #1e40af;
}

.user-manual-content table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}

.user-manual-content table th,
.user-manual-content table td {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
}

.user-manual-content table th {
  background-color: #f9fafb;
  font-weight: 600;
}

.user-manual-content table tr:nth-child(even) {
  background-color: #f9fafb;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *
 * application.tailwind.css is the Tailwind CLI entry file, not a stylesheet:
 * bundling its raw source here shipped its css import line for the pwa
 * styles to every browser, which then requested the unfingerprinted
 * /assets/pwa.css on every page load. Tailwind inlines that file into
 * tailwind.css, so it is stubbed out of this bundle.



 */
[x-cloak] { display: none !important; }

/* Custom styles for button_to elements styled as links */
.button-link {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.button-link:hover {
  text-decoration: underline !important;
}
