/* styles.css - Green Apple Assistant */
:root{
  --green-1:#0b7a3d;
  --green-2:#34c759;
  --bg:#f7fff7;
  --card:#ffffff;
  --muted:#7b8b7a;
}
*{box-sizing:border-box;font-family:Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial;}
body{margin:0;background:linear-gradient(180deg,#f0fff4,#ffffff);color:#1b3b2c;}
.hidden{display:none;}
.splash{height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--green-1),var(--green-2));color:white;text-align:center}
.apple{width:180px;height:180px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#b6f5b7,#2aa84f);position:relative;display:flex;align-items:center;justify-content:center;box-shadow:0 18px 40px rgba(0,0,0,0.25)}
.apple .leaf{position:absolute;top:-18px;left:48%;width:56px;height:26px;background:linear-gradient(90deg,#2fb34a,#1b6b2f);border-radius:8px;transform:rotate(-30deg)}
.apple .face{font-size:64px}
.splash h1{margin-top:18px;font-size:20px;opacity:0.95}

main{padding:18px}
.card{background:var(--card);border-radius:14px;padding:14px;margin-bottom:12px;box-shadow:0 8px 20px rgba(0,0,0,0.06);border:3px solid rgba(52,199,89,0.08)}
.topbar{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:12px;background:linear-gradient(90deg,#f9fff9,#f0fff4)}
.apple-mini{font-size:34px}
.content{display:flex;gap:12px;margin-top:12px}
.leftCol{width:40%}
.rightCol{width:60%}

.waterCard .cup{width:120px;height:160px;border-radius:12px;border:6px solid #dff6e3;position:relative;overflow:hidden;background:#fff}
.waterCard .fill{position:absolute;left:0;right:0;bottom:0;height:0%;background:linear-gradient(#76e08a,#0bb44a);transition:height 600ms ease}
.waterControls{display:flex;gap:8px;margin-top:8px}

.daysRow{display:flex;gap:8px;overflow:auto;padding:8px}
.dayPill{min-width:56px;height:56px;border-radius:28px;display:flex;align-items:center;justify-content:center;color:white;font-weight:700;box-shadow:0 6px 14px rgba(0,0,0,0.08);cursor:pointer}

.mirrorBox{min-height:60px;border-radius:8px;padding:12px;background:linear-gradient(180deg,#fff,#f7fffb);box-shadow:inset 0 2px 8px rgba(0,0,0,0.02)}
.tinyList{margin-top:8px;font-size:13px;color:var(--muted)}

.schedule .mealList{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.mealRow{display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px;background:linear-gradient(180deg,#f7fff7,#f0fff4);border:1px solid rgba(10,120,40,0.06)}
.mealCircle{width:56px;height:56px;border-radius:28px;background:linear-gradient(180deg,#a6e7b7,#39d06a);display:flex;align-items:center;justify-content:center;color:white;font-weight:700;box-shadow:0 8px 18px rgba(0,0,0,0.08)}
.mealInfo{flex:1;display:flex;flex-direction:column}
.mealActions{display:flex;gap:8px;align-items:center}

.foodResults{max-height:180px;overflow:auto;border-top:1px solid #eef7ee;padding-top:8px}
.foodItem{padding:6px;border-radius:8px;cursor:pointer}
.foodItem:hover{background:#f0fff6}

.bubbleNav{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;display:flex;gap:12px;align-items:center}
.bubble{width:68px;height:68px;border-radius:34px;background:linear-gradient(180deg,#dfffe6,#c3ffd1);display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(0,0,0,0.12);font-weight:700;cursor:pointer}
.central{width:86px;height:86px;border-radius:43px;background:linear-gradient(180deg,#2fd06a,#0b8a3c);color:white;transform:translateY(-8px);box-shadow:0 18px 34px rgba(0,0,0,0.2)}

.choiceRow{display:flex;gap:12px;margin:12px 0}
.choice{flex:1;padding:10px;border-radius:12px;background:linear-gradient(180deg,#f7fff7,#ffffff)}
.choice input[type="radio"]{margin-right:8px}
.actions{text-align:right}

.small{padding:8px 10px;border-radius:10px;border:none;background:#eefae9;cursor:pointer}
.green{background:linear-gradient(180deg,var(--green-2),var(--green-1));color:white;padding:10px 16px;border-radius:10px;border:none;cursor:pointer}

.goalBar{height:14px;background:#eef8ee;border-radius:12px;margin:8px 0;overflow:hidden}
.goalBar #goalFill{height:100%;width:0%;background:linear-gradient(90deg,#a9f5b9,#1ab25a)}

.modal{position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,0.35);display:flex;align-items:center;justify-content:center}
.modalCard{background:white;padding:16px;border-radius:12px;width:90%;max-width:520px}
.medal{display:inline-block;padding:8px;border-radius:40px;background:linear-gradient(90deg,#ffe29a,#ffb84d);margin:4px 6px;font-weight:700}
.medalShelf{min-height:44px}
.chatList{max-height:220px;overflow:auto;border:1px solid #eef7ee;padding:8px;margin-bottom:8px}
.tiny{font-size:12px;color:#6b7a6b}
