/* BreadBot — DaisyUI overrides and custom utilities */

/* Override DaisyUI primary to bread amber */
[data-theme="lemonade"] {
  --p: 36 100% 50%;
  --pf: 36 100% 44%;
  --pc: 0 0% 10%;
}

html, body {
  height: 100%;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  padding-top: env(safe-area-inset-top);
}

/* Chat area fills available space */
.chat-area {
  flex: 1 1 0;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}
.chat-area::-webkit-scrollbar { display: none; }

/* Input bar safe area */
.input-bar {
  padding-bottom: env(safe-area-inset-bottom, 8px);
}

/* Action button (mic/send) */
.action-btn {
  transition: transform 0.1s ease;
}
.action-btn:active {
  transform: scale(0.9);
}
.action-btn.recording {
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Recipe chips — tappable suggestion pills */
.recipe-chip {
  display: inline-block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}
.recipe-chip:active {
  transform: scale(0.95);
}

/* Countdown urgency */
.countdown-urgent {
  animation: pulse 1s infinite;
}

/* Typing indicator dots */
.typing-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 2px;
  animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* Star rating */
.star-btn {
  font-size: 1.5rem;
  padding: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
}

/* Drawer animation */
.drawer-side {
  transition: transform 0.25s ease;
}

/* Ensure schedule card rows align */
.schedule-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toast positioning */
.toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}
