/* SmartPagination.css - Enterprise Pagination Component Styles (High Contrast & Modern Design) */
.smart-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 2px solid #e2e8f0;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  font-family: inherit;
  font-size: 13px;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.smart-pagination-bar.empty-bar {
  justify-content: center;
  padding: 18px;
  color: #64748b;
  font-weight: 500;
}

.smart-pagination-left,
.smart-pagination-center,
.smart-pagination-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.smart-per-page-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 0;
  cursor: pointer;
}

.smart-per-page-select {
  width: auto;
  min-width: 70px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.smart-per-page-select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.smart-record-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.smart-record-info strong {
  color: #0f172a;
  font-weight: 700;
}

.smart-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.smart-page-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.smart-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.smart-page-btn svg {
  pointer-events: none;
  transition: transform 0.15s ease;
}

.smart-page-btn:hover:not([disabled]) {
  background: #4f46e5;
  border-color: #4338ca;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.25);
}

.smart-page-btn.pill.active {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  border-color: #4338ca !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.35) !important;
  transform: scale(1.02);
}

.smart-page-btn[disabled] {
  background: #e2e8f0 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #94a3b8 !important;
  opacity: 0.7;
  cursor: not-allowed !important;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

.smart-page-btn[disabled] svg {
  opacity: 0.6;
}

.smart-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: #64748b;
  font-weight: 700;
  user-select: none;
}

.smart-quick-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1.5px solid #cbd5e1;
}

.smart-jump-input {
  width: 56px;
  height: 32px;
  text-align: center;
  padding: 2px 6px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.smart-jump-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Shimmer Loading state */
.table-loading-shimmer {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
  filter: grayscale(20%);
}

.pagination-busy {
  pointer-events: none;
  opacity: 0.7;
}

/* Mobile Tactile Load More Button */
.smart-mobile-load-more {
  padding: 14px 16px;
}

.smart-mobile-load-more .btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px solid var(--primary, #4f46e5);
  background: var(--primary-soft, rgba(79, 70, 229, 0.05));
  color: var(--primary, #4f46e5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.smart-mobile-load-more .btn-load-more:hover:not([disabled]) {
  background: var(--primary, #4f46e5);
  color: #ffffff;
}

.smart-mobile-load-more .btn-load-more[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.smart-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: smart-spin 0.75s linear infinite;
}

@keyframes smart-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 769px) {
  .smart-mobile-load-more-wrapper,
  .smart-mobile-load-more {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .has-mobile-cards .smart-pagination-bar {
    display: none !important;
  }
  .smart-pagination-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
    padding: 14px 16px;
  }
  .smart-pagination-left,
  .smart-pagination-center,
  .smart-pagination-right {
    justify-content: center;
  }
  .smart-quick-jump {
    display: none;
  }
}
