/* SmartChef — modern, clean, responsive design */

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, #e0e7ff 0%, #f4f4f4 100%);
  min-height: 100vh;
}

header {
  background: #2563eb;
  color: #fff;
  padding: 32px 0 24px 0;
  text-align: center;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 1px;
}

header p {
  margin-top: 8px;
  font-size: 1.1rem;
}

main {
  margin: 40px auto 0 auto;
  max-width: 600px;
  width: 90%;
}

section {
  background: #fff;
  padding: 32px 28px;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  margin-bottom: 24px;
  transition: box-shadow 0.2s;
}

section:hover {
  box-shadow: 0 6px 32px rgba(37,99,235,0.10);
}

h2 {
  color: #2563eb;
  margin-top: 0;
  font-size: 1.5rem;
}

p {
  color: #333;
  line-height: 1.7;
  font-size: 1.1rem;
}

/* === Upload Form === */
#upload-section {
  text-align: center;
}

form {
  margin-top: 16px;
}

input[type="file"] {
  margin: 12px 0;
  padding: 10px;
  border: 2px dashed #2563eb;
  border-radius: 10px;
  background: #f0f4ff;
  cursor: pointer;
  transition: background 0.2s;
}

input[type="file"]:hover {
  background: #e8efff;
}

button {
  background-color: #2563eb;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background-color: #1e40af;
  transform: scale(1.02);
}

/* === Image Preview === */
#preview-container {
  margin-top: 16px;
}

#preview {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin-top: 8px;
}

/* === Loading Section === */
#loading {
  text-align: center;
  margin-top: 16px;
  font-size: 1.1rem;
  color: #555;
}

/* === Recipes Section === */
#results-section {
  margin-top: 24px;
}

.recipe-card {
  background: #f9fafb;
  padding: 16px;
  border-radius: 10px;
  margin: 12px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: left;
}

.recipe-card h3 {
  color: #2563eb;
  margin: 0 0 6px 0;
}

.recipe-card p {
  margin: 0;
  color: #333;
  font-size: 1rem;
}

/* === Responsive Design === */
@media (max-width: 700px) {
  main {
    max-width: 98%;
    margin-top: 20px;
  }
  section {
    padding: 18px 8px;
  }
  header {
    padding: 22px 0 14px 0;
  }
  header h1 {
    font-size: 1.8rem;
  }
}

/* === Camera & Snapshot === */
#camera {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  margin: 12px auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

#snapshot {
  display: none;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  margin-top: 12px;
}

#photo {
  display: none;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  margin-top: 12px;
}

