/* ── DIET PLANNER VIEW STYLES ── */
.suggestion-chips-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem 0;
  scrollbar-width: none;
}

.suggestion-chips-container::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--card-shadow);
  transition: all 0.2s;
}

.chip-btn:hover {
  border-color: var(--accent-teal);
  background-color: var(--accent-teal-bg);
  color: var(--accent-teal);
}

body.dark .chip-btn:hover {
  background-color: rgba(13, 148, 136, 0.15);
}

.diet-chatbox-card {
  display: flex;
  flex-direction: column;
  height: 480px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}

.chat-logs-display {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: fadeIn 0.3s ease-out;
}

.message-bubble.bot {
  align-self: flex-start;
  background-color: var(--bg-color);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-color);
}

.message-bubble.user {
  align-self: flex-end;
  background: var(--accent-orange-grad);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-composer-row {
  display: flex;
  padding: 0.75rem 1rem;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  gap: 0.75rem;
}

#diet-chat-input {
  flex: 1;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
}

#diet-chat-input:focus {
  outline: none;
  border-color: var(--accent-teal);
}

.btn-send-diet {
  background: var(--accent-teal);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-send-diet:hover {
  opacity: 0.9;
}

/* Floating Action Button */
.diet-fab {
  position: fixed;
  bottom: 85px;
  right: 1.5rem;
  background: var(--accent-teal);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
  cursor: pointer;
  z-index: 950;
  transition: all 0.2s ease;
}

.diet-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.4);
}

/* Chat Overlay Modal */
.diet-chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.diet-chat-modal-content {
  background-color: var(--card-bg);
  width: 100%;
  max-width: 600px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid var(--border-color);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  height: 70vh;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.chat-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
