/* ==============================
   DietCraft – Dashboard Style
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  display: flex;
  background: #f5f7fa;
  color: #333;
}

/* Sidebar */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: #2575fc;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  padding: 30px 20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar .logo {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 40px;
}

.sidebar nav a {
  display: block;
  margin: 15px 0;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: background 0.3s;
}

.sidebar nav a:hover {
  background: rgba(255,255,255,0.2);
}

/* Content Layout */
.content {
  margin-left: 260px;
  padding: 30px;
  width: calc(100% - 260px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #dbeafe, #ffffff);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
}

.hero p {
  margin: 15px 0;
  font-size: 1.1rem;
  color: #555;
}

.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #2575fc;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #1a5ed8;
  transform: scale(1.05);
}

/* Form Section */
.form-card {
  background: #ffffff;
  padding: 25px;
  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  max-width: 600px;
}

.form-card h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2575fc;
}

input, select {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
  outline: none;
}

input:focus, select:focus {
  border-color: #2575fc;
  box-shadow: 0 0 6px rgba(37,117,252,0.3);
}

/* Buttons */
button {
  margin-top: 15px;
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  background: #2575fc;
  color: #fff;
  transition: all 0.3s ease;
}

button:hover {
  background: #1a5ed8;
}

/* Results Section */
#results {
  margin-top: 40px;
  text-align: center;
}

.plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px auto;
  width: 90%;
}

.day-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.day-card:hover {
  transform: translateY(-6px);
}

.day-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #2575fc;
}

/* Meal Items */
.meal {
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.meal b {
  min-width: 120px;
  color: #444;
}

.meal button {
  margin-left: auto;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 10px;
  background: #ffd369;
  color: #333;
  transition: all 0.3s ease;
}

.meal button:hover {
  background: #ffb347;
  color: #fff;
}

.meal-img {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Recipe Modal */
#recipeModal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

#recipeModal .modal-content {
  background: #ffffff;
  margin: 5% auto;
  padding: 25px;
  border-radius: 12px;
  max-width: 650px;
  width: 90%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

#recipeModal h2 {
  margin-top: 0;
  color: #2575fc;
}

.close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  color: #444;
}

.close:hover {
  color: #ff4d4d;
}

/* About & Contact Sections */
#about, #contact {
  text-align: center;
  padding: 50px 20px;
  background: #f8f9fa;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

#about h2, #contact h2 {
  color: #2575fc;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #2575fc;
  color: #fff;
  margin-top: 30px;
  border-radius: 10px;
}

