.view-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
  gap: 1rem;
  align-items: center;
}

/* View Toggle Styles */
.view-toggle {
  display: flex;
  border-radius: 2px;
  padding: 0.15rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* View Container Styles */
.view-container {
  position: relative;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

/* Per-page selector styles */
.per-page-selector {
  position: relative;
  background-color: var(--oc-gray-0);
  border-radius: 6px;
  padding: 0rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  flex-shrink: 0; /* Prevent selector from shrinking too much */
}

.per-page-select {
  padding: 0.3rem 1.5rem 0.3rem 0.5rem;
  border-radius: 6px;
  background-color: transparent;
  border: none;
  font-size: 0.75rem;
  color: var(--text-color);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' 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 0.5rem center;
  background-size: 0.75rem;
  transition: all 0.15s ease;
  line-height: 1;
}

.per-page-select:hover {
  background-color: var(--oc-gray-1);
}

.per-page-select:focus {
  outline: none;
  background-color: var(--oc-gray-0);
  border-radius: 6px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .view-controls {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
  }

  .per-page-select {
    font-size: 0.7rem;
    padding: 0.25rem 1.25rem 0.25rem 0.4rem;
    background-size: 0.65rem;
    background-position: right 0.4rem center;
  }
  
  .per-page-selector {
    min-width: 80px; /* Ensure minimum width on small screens */
  }
}

@media (max-width: 640px) {
  .per-page-select {
    font-size: 0.65rem;
    padding: 0.2rem 1rem 0.2rem 0.35rem;
  }
}
