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

/* Prevent sidebar flash: apply slim state before Stimulus loads */
@media (min-width: 768px) {
  html.sidebar-slim [data-sidebar-target="aside"] {
    width: 4rem !important;  /* w-16 */
  }
  html.sidebar-slim [data-sidebar-target="label"],
  html.sidebar-slim [data-sidebar-target="logo"] {
    display: none !important;
  }
}

/* Hide scrollbar for horizontal scroll areas on mobile */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Pagy pagination styling */
.pagy.series-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagy.series-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.5rem;
  color: #6b7280;
  transition: all 150ms ease;
  text-decoration: none;
}

.pagy.series-nav a:hover:not([aria-disabled="true"]):not([aria-current="page"]) {
  background-color: #f3f4f6;
  color: #111827;
}

.pagy.series-nav a[aria-current="page"] {
  background-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3);
}

.pagy.series-nav a[aria-disabled="true"] {
  color: #d1d5db;
  cursor: default;
  pointer-events: none;
}

.pagy.series-nav a[role="separator"] {
  color: #9ca3af;
  letter-spacing: 0.1em;
}