/* ===============================
   Base (Mobile First)
================================ */

.chatbot-plant-count {
    padding-top: 20px;
}

.chatbot-dashboard {
  max-width: 720px;
  margin: auto;
  padding-bottom: 90px; /* space for bottom nav */
}

.chatbot-dashboard button {
  margin-left: 8px;
}

/* ---------- Modal ---------- */

.chatbot-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chatbot-modal {
  background: #fff;
  padding: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
}

.chatbot-modal label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

.chatbot-modal input,
.chatbot-modal select {
  width: 100%;
}

/* ---------- Calendar ---------- */

.chatbot-calendar.hidden {
  display: none;
}

#chatbot-calendar {
  max-width: 900px;
  margin: 20px auto 120px auto;
  padding-bottom: 120px;
}

.plant-calendar {
  max-width: 900px;
  margin: 20px auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  border: 1px solid #ddd;
  min-height: 100px;
  padding: 6px;
  font-size: 13px;
}

.calendar-event {
  margin-top: 4px;
  background: #e6f4ea;
  padding: 2px 4px;
  border-radius: 4px;
}

/* ---------- Profile ---------- */

.chatbot-profile input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.chatbot-profile input[disabled] {
  background: #f5f5f5;
  color: #888;
}

/* ---------- Header ---------- */

.chatbot-welcome {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #2f7d32;
}

/* ---------- Bottom Navigation ---------- */

.chatbot-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #ffffff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
}

.chatbot-nav-item {
  text-align: center;
  font-size: 12px;
  cursor: pointer;
}

.chatbot-nav-item img {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto 4px;
}

.chatbot-nav-item.active span {
  color: #2f7d32;
  font-weight: 600;
}

/* ===============================
   ≥ 720px (Tablet)
================================ */

@media (min-width: 720px) {

  .chatbot-dashboard {
    max-width: 960px;
    padding-bottom: 100px;
  }

  .chatbot-welcome {
    font-size: 1.6rem;
  }

  .chatbot-modal {
    max-width: 640px;
  }

  .chatbot-nav-item {
    font-size: 13px;
  }

  .chatbot-nav-item img {
    width: 26px;
    height: 26px;
  }
}

/* ===============================
   ≥ 1200px (Desktop)
================================ */

@media (min-width: 1200px) {

  .chatbot-dashboard {
    max-width: 1200px;
  }

  .chatbot-modal {
    max-width: 720px;
  }

  #chatbot-calendar,
  .plant-calendar {
    max-width: 1100px;
  }

  .calendar-day {
    min-height: 120px;
    font-size: 14px;
  }

  .chatbot-welcome {
    font-size: 1.8rem;
  }

  .chatbot-nav-item img {
    width: 28px;
    height: 28px;
  }

  .chatbot-nav-item span {
    font-size: 13px;
  }
}
