.page-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.date-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.date-navigation h3 {
  margin: 0;
}

.spacer {
  width: 12px;
}

.back-to-today {
  margin-top: 8px;
  display: block;
}

.chat-intro {
  margin-top: 0;
  margin-bottom: 16px;
}

.chat-wrapper {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 20px auto;
}

.chat-container {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  background: #f9f9f9;
}

.chat-window {
  padding: 10px;
  border-radius: 8px;
  height: 300px;
  overflow-y: auto;
  scroll-behavior: smooth;
  font-size: 0.95em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  padding: 10px 12px;
  border-radius: 10px;
  max-width: 80%;
}

.chat-message.assistant {
  align-self: flex-start;
  background: white;
  padding: 10px 12px;
  border-radius: 10px;
  max-width: 80%;
  border: 1px solid #ddd;
}

.message-content {
  white-space: pre-wrap;
}

.thinking {
  display: none;
  margin-top: 10px;
  font-style: italic;
  color: var(--primary);
  text-align: left;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.chat-input {
  display: flex;
  align-items: stretch;
}

.chat-textarea {
  flex: 1;
  font-size: 1em;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px 0 0 8px;
  resize: none;
  outline: none;
}

.chat-send {
  padding: 10px 16px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-left: none;
  background-color: var(--primary);
  color: white;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

.foods-detected {
  margin-top: 20px;
  text-align: center;
}

.foods-form {
  text-align: center;
}

.food-list {
  list-style-type: none;
  padding-left: 0;
}

.food-item {
  margin-bottom: 10px;
}

.add-to-log {
  margin-top: 5px;
}

.entries-heading {
  margin-top: 32px;
}

.entries-container {
  display: flex;
  justify-content: center;
}

.entries-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.inline-form {
  display: inline;
}

.total-calories {
  margin-top: 24px;
}

.history-link {
  margin-top: 8px;
}