/* Custom Scrollbar Styles */
.scrollbar-sm::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  border-radius: 35px;
}

.scrollbar-sm::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.scrollbar-sm::-webkit-scrollbar-thumb {
  border-radius: 35px;
  background: #ddd;
}

.scrollbar-sm::-webkit-scrollbar-thumb:hover {
  background: #5d87ff;
}

/* Base Pagination Styles */
#pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  align-items: center;
  gap: 8px;
  margin: 1rem auto; 
  padding: 0.75rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(93, 135, 255, 0.10);
  width: fit-content;
  max-width: 100%;
}

/* Desktop Styles - Right Aligned */
@media (min-width: 992px) {
  #pagination {
    justify-content: flex-end; 
    margin-left: auto; 
    margin-right: 0;
  }
}

/* Pagination Links */
#pagination a {
  min-width: 32px;
  height: 32px;
  border: 1px solid #5d87ff;
  color: #5d87ff;
  border-radius: 5px;
  display: grid;
  place-items: center;
  transition: all 0.22s ease-in-out;
  font-size: 0.875rem;
  padding: 0 4px;
  text-decoration: none;
}

/* Active and Hover States */
#pagination a.active {
  background-color: #5d87ff;
  color: #fff;
  border-color: #5d87ff;
  box-shadow: 0 2px 16px 0 rgba(93, 135, 255, 0.18);
}

#pagination a:not(.active):hover {
  background: #5d87ff;
  color: white;
  border-color: #5d87ff;
  box-shadow: 0 2px 12px 0 rgba(93, 135, 255, 0.13);
}

/* Ellipsis/Spacer */
#pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 4px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  #pagination {
    gap: 6px;
    padding: 0.5rem;
  }
  
  #pagination a {
    min-width: 28px;
    height: 28px;
    font-size: 0.8125rem;
  }
  
  #pagination span {
    height: 28px;
  }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  #pagination {
    justify-content: center;
    gap: 10px;
  }
}

/* Form Control Reset */
.form-control {
  appearance: auto !important;
}

/* Table Layout */
.table-col-2 {
  table-layout: fixed;
}

.table-col-2 :is(th, td) {
  width: 50% !important;
}