.pagination-component {
  margin-top: 40px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}
.pagination-component.is-hidden {
  display: none;
}

.pagination-component button,
.pagination-component span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: inherit;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}

.pagination-component button {
  background-color: transparent;
  color: #334155;
  border: 1px solid transparent;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .pagination-component button:hover:not(:disabled):not(.active) {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
  }
}

.pagination-component button.active {
  background-color: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
  font-weight: 600;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .pagination-component button.active:hover {
    background-color: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
  }
}

.pagination-component button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.pagination-component button:disabled {
  color: #94a3b8;
  background-color: transparent;
  cursor: not-allowed;
  opacity: 0.7;
}

.pagination-component span.pagination-ellipsis {
  color: #64748b;
  padding: 0 0.25rem;
}

/* Responsive styles */
@media (max-width: 767px) {
  .pagination-component {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .pagination-component button,
  .pagination-component span {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.8125rem;
  }
}
