.ingredients-page {
  max-width: 800px;
  width: 100vw;
  margin: 20px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #a8d5e2, #b8e2c8);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-title {
  text-align: center;
}

.searchbox-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.no-results {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
  color: #666;
}

.ingredients-grid {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.ingredient-column {
  width: 130px;
  flex: 0 0 auto;
}

.ingredient-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100px;
}

.ingredient-item {
  cursor: pointer;
  background: #f3fbe8;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

.controls-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pagination-button {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid #ccc;
  cursor: pointer;
  background-color: #b67979;
  transition: background-color 0.2s;
}

.pagination-button:hover:not(:disabled) {
  background-color: #b39191;
}

.pagination-button:disabled {
  background-color: #e5e5e5;
  color: #999;
  cursor: not-allowed;
  border-color: #ddd;
}

.ingredient-dropdown {
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #ccc;
  cursor: pointer;
  margin-left: auto;
}

.fade {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.fade-loading {
  opacity: 0.6;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}