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


body {
  font-family: "Noto Sans Thai", ui-sans-serif, system-ui, sans-serif !important;
}

/* Landing Page & Blog Backgrounds */
.grid-bg {
  background-size: 60px 60px;
  background-image: linear-gradient(to right, rgba(128, 128, 128, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.05) 1px, transparent 1px);
}

.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Hide number input spinners */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Premium Pagy Pagination */
.pagy-nav {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  padding: 0.5rem;
  background-color: rgba(249, 250, 251, 0.5);
  /* slash of gray-50 */
  border-radius: 1rem;
}

.pagy-nav .page {
  display: inline-flex;
}

.pagy-nav .page a,
.pagy-nav .page.active,
.pagy-nav .page.disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

/* Link State */
.pagy-nav .page a {
  background-color: white;
  border-color: #E5E7EB;
  /* gray-200 */
  color: #4B5563;
  /* gray-600 */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.pagy-nav .page a:hover {
  background-color: #F9FAFB;
  border-color: #D1D5DB;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Active State */
.pagy-nav .page.active {
  background-color: #4F46E5;
  /* Indigo 600 */
  color: white;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

/* Disabled/Gap State */
.pagy-nav .page.disabled {
  background-color: #F3F4F6;
  color: #9CA3AF;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagy-nav .page.gap {
  color: #9CA3AF;
  border: none;
  background: transparent;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .pagy-nav {
    background-color: rgba(31, 41, 55, 0.5);
  }

  .pagy-nav .page a {
    background-color: #111827;
    /* gray-900 */
    border-color: #374151;
    /* gray-700 */
    color: #D1D5DB;
  }

  .pagy-nav .page a:hover {
    background-color: #1F2937;
    border-color: #4B5563;
    color: white;
  }

  .pagy-nav .page.active {
    background-color: #6366F1;
    /* Indigo 500 */
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
  }

  .pagy-nav .page.disabled {
    background-color: #111827;
    border-color: #1F2937;
  }
}