/* css/pagination.css */

/* Pagination Navigation Container */
.pagination-nav {
  @apply bg-gray-900 rounded-lg p-4 border border-gray-700;
}

/* Pagination Buttons */
.pagination-btn {
  @apply bg-gray-700 hover:bg-blue-600 text-white px-3 py-2 rounded transition-colors duration-200 border border-gray-600;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:disabled {
  @apply bg-gray-800 text-gray-500 cursor-not-allowed border-gray-700;
}

.pagination-btn:hover:not(:disabled) {
  @apply bg-blue-600 border-blue-500;
}

/* Small pagination button for "Go to page" */
.pagination-btn-small {
  @apply bg-gray-700 hover:bg-blue-600 text-white px-2 py-1 rounded transition-colors duration-200 border border-gray-600;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.pagination-btn-small:hover {
  @apply bg-blue-600 border-blue-500;
}

/* Page Number Buttons */
.page-number-btn {
  @apply bg-gray-700 hover:bg-blue-600 text-white px-3 py-2 rounded transition-colors duration-200 border border-gray-600;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.page-number-btn.active {
  @apply bg-blue-600 border-blue-500 font-semibold;
}

.page-number-btn:hover:not(.active) {
  @apply bg-gray-600;
}

/* Ellipsis in pagination */
.page-ellipsis {
  @apply text-gray-400 px-2 py-2;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Results info styling */
#resultsInfo {
  @apply text-gray-300 text-sm font-medium;
}

#pageInfo {
  @apply text-gray-300 text-sm;
}

/* Items per page selector */
#itemsPerPage {
  @apply bg-gray-700 text-white px-3 py-2 rounded border border-gray-600 focus:border-blue-500 focus:outline-none;
  min-width: 120px;
}

/* Go to page input */
#goToPageInput {
  @apply bg-gray-700 text-white px-2 py-1 rounded border border-gray-600 focus:border-blue-500 focus:outline-none text-center;
  width: 60px;
}

#goToPageInput::-webkit-outer-spin-button,
#goToPageInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#goToPageInput[type=number] {
  -moz-appearance: textfield;
}

/* Loading and no results states */
#loadingIndicator {
  @apply text-center py-8;
}

#noResultsMessage {
  @apply text-center py-8;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .pagination-nav {
    @apply p-3;
  }
  
  .pagination-btn,
  .page-number-btn {
    @apply px-2 py-2;
    min-width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
  
  .pagination-btn-small {
    min-width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  #goToPageInput {
    width: 50px;
  }
  
  /* Hide some elements on very small screens */
  .pagination-nav .text-sm {
    @apply text-xs;
  }
}

/* Animation for page transitions */
.page-transition {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-transition.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Highlight current page range */
.results-highlight {
  @apply text-blue-400 font-semibold;
}