body {
  font-family: Arial, sans-serif;
  background-color: #f7f5f0;
  margin: 0;
  padding: 0;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

header {
  text-align: center;
  margin-bottom: 10px;
}

/* Двоколонкова розкладка */
.main-layout {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
}

/* Ліва колонка: контент */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  max-width: 700px;
}

/* Панель фільтрів */
.filter-panel {
  text-align: center;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 5px;
}

.filter-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s;
}

.filter-btn img {
  width: 100%;
  height: 100%;
}

.filter-btn:hover img {
  transform: scale(1.1);
}

.filter-btn.active {
  outline: 2px solid #b55a1d;
  border-radius: 8px;
}

/* Права колонка: інструкція */
.instructions-panel {
  background-color: #fff8dc;
  border: 1px solid #e0c070;
  border-radius: 10px;
  padding: 15px 20px;
  width: 250px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 20px;
}

.instructions-panel h2 {
  margin-top: 0;
  color: #b55a1d;
}

.instructions-panel p {
  margin-bottom: 10px;
}

.instructions-panel ul {
  padding-left: 20px;
}

/* Сітка інгредієнтів */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start; /* або center */
  width: 100%;
  max-width: 700px; /* можна трохи збільшити */
}

/* Іконки інгредієнтів */
.ingredient {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.ingredient img {
  width: 50px;
  height: 50px;
  pointer-events: none;
}

/* Слоти для приготування */
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.slot {
  width: 60px;
  height: 60px;
  border: 1px dashed #999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot img {
  width: 50px;
  height: 50px;
}

/* Результат */
.result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.result-icon img {
  width: 64px;
  height: 64px;
}

.result-stats {
  display: flex;
  gap: 10px;
}

.result-stats div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.result-stats img {
  width: 24px;
  height: 24px;
}

/* Кнопки */
.buttons-container {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.button-icon {
  width: 48px;
  height: 48px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: 0.2s;
}

.button-icon img {
  width: 100%;
  height: 100%;
}

.button-icon:hover img {
  transform: scale(1.1);
}

/* Кнопка перемикача теми */
.theme-toggle {
  margin-left: 15px;
  padding: 5px 10px;
  border: 1px solid #aaa;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s, color 0.3s;
}

body.dark-theme .theme-toggle {
  background: #333;
  color: #fff;
  border-color: #666;
}

/* Темна тема */
body.dark-theme {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body.dark-theme .instructions-panel {
  background-color: #2c2c2c;
  border-color: #555;
  box-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

body.dark-theme .instructions-panel h2 {
  color: #ffa95e;
}

body.dark-theme .slot {
  border-color: #666;
}
