/*
 * 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.
 *
 *                     THIS FILE SHOULD ONLY CONTAIN VANILLA CSS
 *
 * Styles that require tailwind belong in `app/assets/tailwind/application.css`
 */

turbo-frame {
  display: block;
}

button, [type="button"], [type="submit"], [type="reset"] {
  cursor: pointer;
}

/* Turbo Drive progress bar */
.turbo-progress-bar {
  height: 3px;
  background-color: #3b82f6; /* blue-500 */
}

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

nav.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.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background-color: white;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

nav.pagy.series-nav > a:hover:not([aria-disabled="true"]) {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

nav.pagy.series-nav > a[aria-current="page"] {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: white;
  cursor: default;
}

nav.pagy.series-nav > a[aria-disabled="true"]:not([aria-current="page"]) {
  color: #9ca3af;
  cursor: default;
  background-color: #f9fafb;
  border-color: #e5e7eb;
}

nav.pagy.series-nav > a[role="separator"] {
  border: none;
  background: none;
  cursor: default;
  color: #6b7280;
}
