/* ==========================================
   🌿 EatMindfully Calming Stylesheet 
   ========================================== */

/* Reset & Main Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif;
}

body {
  background-color: #f5f7f2;
  /* Peaceful sage/sand beige background */
  color: #2e3d30;
  display: flex;
  justify-content: center;
  padding: 30px 10px;
  line-height: 1.6;
}

.app-container {
  width: 100%;
  max-width: 550px;
  background: #ffffff;
  padding: 25px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(44, 94, 59, 0.05);
}

/* Calming Typography */
header {
  text-align: center;
  margin-bottom: 25px;
}

header h1,
.dashboard-header h2 {
  color: #2c5e3b;
  /* Deep organic green */
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 5px;
}

header p {
  color: #7a8a7c;
  font-size: 0.95rem;
  font-weight: 500;
}

.subtitle {
  font-size: 0.9rem;
  color: #7a8a7c;
  margin-bottom: 20px;
  margin-top: -5px;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: #4CAF50;
  /* Soothing leaf green */
  color: white;
}

.btn-primary:hover {
  background-color: #3d8e41;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #4CAF50;
  color: #4CAF50;
}

.btn-outline:hover {
  background-color: rgba(76, 175, 80, 0.06);
}

/* Authentication Layout */
.auth-card {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 15px;
}

.auth-card form {
  background: #fcfdfc;
  border: 1px solid #eef5eb;
  padding: 20px;
  border-radius: 16px;
}

.auth-card h3 {
  margin-bottom: 12px;
  color: #2c5e3b;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eef5eb;
}

/* 🌿 Breathing Exercise Card (Mindful Pause) */
.mindful-pause-card {
  background: #eef6ee;
  /* Soft sage green */
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  margin-bottom: 30px;
  border-left: 6px solid #8BC34A;
}

.mindful-pause-card h3 {
  color: #2c5e3b;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.breath-instruction {
  font-size: 0.9rem;
  color: #556b2f;
  margin-bottom: 15px;
}

.breathing-circle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* 🌿 The CSS Breathing Animation */
.breathing-circle {
  width: 55px;
  height: 55px;
  background: #8BC34A;
  border-radius: 50%;
  opacity: 0.7;
  animation: breathe 8s infinite ease-in-out;
}

#breath-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2c5e3b;
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
    background-color: #8BC34A;
  }

  50% {
    transform: scale(1.65);
    opacity: 0.95;
    background-color: #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
  }
}

/* Forms */
.meal-form h3 {
  color: #2c5e3b;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2c5e3b;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e6e0;
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  background: #ffffff;
  transition: all 0.3s;
}

input:focus,
textarea:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.1);
}

/* 🔢 Clickable Numeric Button Bars (1-10) */
.btn-bar {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.btn-bar button {
  flex: 1;
  aspect-ratio: 1;
  border: 2px solid #e0e6e0;
  background: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  color: #556b2f;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-bar button:hover {
  border-color: #8BC34A;
  background: #fbfdfa;
}

.btn-bar button.active {
  background-color: #4CAF50;
  color: #ffffff;
  border-color: #4CAF50;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.25);
  transform: scale(1.08);
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #7a8a7c;
  font-weight: 600;
}

/* 😌 Emoji Selection Grid */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.emoji-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 4px;
  background: #ffffff;
  border: 2px solid #e0e6e0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  color: #556b2f;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.emoji-grid button span {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.emoji-grid button:hover {
  border-color: #8BC34A;
  transform: translateY(-2px);
}

.emoji-grid button.active {
  background-color: #eef6ee;
  border-color: #4CAF50;
  color: #2c5e3b;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.12);
  transform: scale(1.03);
}

/* 💧 Dynamic Water Tracker */
.water-tracker-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.water-step-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #cbd5cc;
  background: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  color: #415e45;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  user-select: none;
}

.water-step-btn:hover {
  border-color: #1a73e8;
  color: #1a73e8;
  background: #f4f8ff;
}

.water-count {
  font-size: 2rem;
  font-weight: 700;
  color: #1a73e8;
  /* Calming Water Blue */
}

.water-unit {
  color: #7a8a7c;
  font-weight: 600;
  font-size: 0.95rem;
}

.water-cups-row {
  display: flex;
  gap: 8px;
  margin-top: 5px;
}

.cup-icon {
  font-size: 1.6rem;
  color: #cbd5cc;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.cup-icon.filled {
  color: #1a73e8;
  /* Blue Cup Filled state */
  transform: scale(1.15);
}

/* Submit Block */
.btn-save {
  width: 100%;
  margin-top: 15px;
  font-size: 1.05rem;
  padding: 14px 20px;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.15);
}

/* Recent List layout */
.recent-meals {
  margin-top: 40px;
  border-top: 2px solid #eef6ee;
  padding-top: 25px;
}

.meals-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.meal-item {
  background: #fbfdfa;
  border: 1px solid #eef6ee;
  border-left: 5px solid #4CAF50;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(44, 94, 59, 0.02);
}

.meal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.meal-header h3 {
  color: #2c5e3b;
  font-size: 1.05rem;
}

.hunger-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  background-color: #eef6ee;
  color: #4CAF50;
}

.timestamp {
  font-size: 0.75rem;
  color: #90a092;
  margin-top: 12px;
}