body {
  font-family: Inter, sans-serif;
}

.tool-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

#plant-stage {
  width: 100%;
  max-width: 280px;
  height: 220px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.stat-bar-track {
  background: #f3f4f6;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  flex: 1;
}
.stat-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* ── Action buttons ── */
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 1;
  min-width: 0;
}
.action-btn:hover {
  background: #f0fdf4;
  border-color: #6ee7b7;
}
.action-btn:active {
  transform: scale(0.96);
}
.action-btn.used {
  background: #f9fafb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
}
.action-btn .icon {
  font-size: 22px;
  line-height: 1;
}

/* ── Toast message ── */
#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: #fff;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 99;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Plant SVG animations ── */
@keyframes sway {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
.plant-sway {
  animation: sway 3s ease-in-out infinite;
  transform-origin: bottom center;
}
.plant-pop {
  animation: pop 0.4s ease-out;
}

/* ── Level badge ── */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Mood indicator ── */
#mood-text {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  min-height: 20px;
}

/* ── Repot flash ── */
@keyframes repotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.2);
  }
}
.repot-ready {
  animation: repotPulse 1.5s ease-in-out infinite;
}

/* speech bubble */
#speech-bubble {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 12px;
  color: #065f46;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 5;
}
#speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #d1fae5;
  border-bottom: none;
}
#speech-bubble.show {
  opacity: 1;
}
