body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: url("./image/sunny-kitchen.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #333;
  min-height: 100vh;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.container {
  background: rgba(
    210,
    245,
    220,
    0.95
  ); /* soft mint green with light transparency */
  max-width: 600px;
  width: 100%;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

h1 {
  color: #6a2e8f;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  background-color: #6a2e8f;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #542472;
}

#result {
  margin-top: 30px;
  text-align: left;
}

#output {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  min-height: 100px;
}

footer {
  text-align: center;
  font-size: 13px;
  margin-top: 30px;
}

.hidden {
  display: none;
}

#save-recipe {
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #6a1b9a;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

#save-recipe:hover {
  background-color: #4a1070;
}

.spinner {
  border: 4px solid #eee;
  border-top: 4px solid #6a1b9a;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

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

#loading {
  text-align: center;
  margin-top: 20px;
  color: #6a2e8f;
  font-weight: bold;
}

.knife-emoji {
  display: inline-block;
  animation: chop 0.6s infinite alternate ease-in-out;
  vertical-align: middle;
  margin-left: 5px;
}

@keyframes chop {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-30deg);
  }
  100% {
    transform: rotate(30deg);
  }
}
