/* Integrated Delete Controls - appears inside the controls container */
.deleteControlsIntegrated {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Controls Section */
.controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px;
  background: var(--color-bg);
  border: 1px solid var(--color-primary);
  border-radius: 25px;
}

.searchContainer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  flex: 1;
}

.activeFiltersCount {
  font-size: 12px;
  color: var(--color-secondary);
  background: rgba(var(--color-secondary-rgb), 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.refreshButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  font-family: var(--font-family);
  flex-shrink: 0;
}

.refreshButton:hover:not(:disabled) {
  background: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary);
}

.refreshButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.refreshIcon {
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.floatingLabelInput {
  position: relative;
  width: 400px;
}

.label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text);
  opacity: 0.6;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.3s ease;
  background-color: transparent;
  font-family: var(--font-family);
}

.focusedLabel {
  position: absolute;
  left: 12px;
  top: -8px;
  transform: translateY(0);
  color: var(--color-secondary);
  font-size: 12px;
  pointer-events: none;
  transition: all 0.3s ease;
  background-color: var(--color-bg);
  padding: 0 4px;
  font-family: var(--font-family);
  font-weight: 500;
}

.searchInput {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-primary);
  border-radius: 25px;
  font-size: 14px;
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.searchInput:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(var(--color-secondary), 0.1);
}

.searchInput::placeholder {
  color: transparent;
}

.filtersContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.filterGroup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filterGroup .floatingLabelInput {
  width: 160px;
}

.customSelectContainer {
  position: relative;
  display: inline-block;
  min-width: 120px;
}

.filterInput {
  width: 100%;
  height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--color-primary);
  border-radius: 25px;
  font-size: 14px;
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  opacity: 0.6;
  min-width: 120px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.filterInput:focus {
  outline: none;
  border-color: var(--color-secondary);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(var(--color-secondary), 0.1);
}

.filterInput::placeholder {
  color: transparent;
}

.filterSelect {
  height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--color-primary);
  border-radius: 25px;
  font-size: 14px;
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  opacity: 0.6;
  min-width: 120px;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 35px;
}

/* Hide dropdown arrow when filter has a value */
.filterSelect.hasValue {
  background-image: none;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  opacity: 1;
}

.filterSelect:focus {
  outline: none;
  border-color: var(--color-secondary);
  opacity: 1;
}

.clearFilterButton {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 16px;
  padding: 2px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.clearFilterButton:hover {
  background: none;
  color: var(--color-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .deleteControlsIntegrated {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 10px;
  }

  .filtersContainer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filterGroup {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .filterInput,
  .filterSelect {
    width: 100%;
    min-width: auto;
  }

  .floatingLabelInput {
    max-width: none;
    width: 100%;
  }

  .filterGroup .floatingLabelInput {
    width: 100%;
  }
}

/* Pagination Controls */
.paginationControls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  flex-wrap: wrap;
}

.pageSizeSelector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
}

.pageSizeSelector label {
  white-space: nowrap;
  font-family: var(--font-family);
}

.pageSizeSelect {
  height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  min-width: 60px;
}

.pageSizeSelect:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.paginationButton {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: var(--color-secondary);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--font-family);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  flex-shrink: 0;
}

.paginationButton:hover:not(:disabled) {
  background: var(--color-secondary-hover);
}

.paginationButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.paginationInfo {
  font-size: 14px;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Page numbers container */
.pageNumbers {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  justify-content: flex-start;
  max-width: 40vw;
  max-height: 120px;
  overflow-y: auto;
  padding: 4px;
}

/* Individual page number button */
.pageNumber {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--color-border, #ddd);
  background: var(--color-bg, #fff);
  color: var(--color-text);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 12px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pageNumber:hover:not(:disabled) {
  background: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary);
}

.pageNumber:disabled {
  cursor: default;
}

/* Active/current page number */
.pageNumberActive {
  background: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary);
  font-weight: 600;
}

/* Ellipsis indicator */
.pageEllipsis {
  padding: 0 8px;
  color: var(--color-text-secondary, #666);
  font-size: 14px;
}

/* Responsive Design for Pagination */
@media (max-width: 768px) {
  .paginationControls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-left: 0;
    width: 100%;
  }

  .pageSizeSelector {
    order: -1;
    justify-content: center;
  }

  .paginationInfo {
    text-align: center;
    font-size: 13px;
  }

  .pageNumbers {
    max-width: 100%;
    justify-content: center;
  }

  .pageNumber {
    min-width: 24px;
    height: 24px;
    font-size: 11px;
  }
}

