body {
  margin: 0;
  padding: 0;
  font-family: 'Calibri', sans-serif;
  background: #f9fafb;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}
#page-title {
  background: #fff;
  color: #1a73e8;
  padding: 40px 20px 20px;
  font-size: 1.8em;
  font-family: 'Roboto Condensed', sans-serif;
  text-align: center;
  border-bottom: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  height: 100px;
  box-sizing: border-box;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#page-title img {
  height: 60px;
  margin-right: 15px;
  vertical-align: middle;
}
#chat-output {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  background: #fff;
  box-sizing: border-box;
  min-height: 200px;
}
.input-container {
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid #dadce0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  z-index: 10;
}
.input-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}
#user-input {
  flex: 1;
  padding: 12px;
  border: 1px solid #dadce0;
  border-radius: 20px;
  margin-right: 12px;
  font-size: 1em;
  outline: none;
  font-family: 'Calibri', sans-serif;
  color: #000000;
  transition: border-color 0.3s;
  box-sizing: border-box;
}
#send-button {
  padding: 12px;
  width: 50px;
  height: 50px;
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.2em;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.disclaimer {
  color: #666;
  font-size: 0.6em;
  text-align: center;
  padding: 8px 0;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  display: block; /* Ensure visibility */
}
.update-section {
  margin-top: 20px;
  padding: 15px;
  background: #f9fafb;
  border-radius: 8px;
  display: none; /* Hidden by default, shown for admins */
  box-sizing: border-box;
}
.message-pair {
  margin: 35px 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.ai-message {
  background: #f1f3f5;
  color: #000000;
  padding: 20px;
  border-radius: 15px 15px 15px 0;
  max-width: 80%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  font-family: 'Calibri', sans-serif;
  font-size: 1em;
  line-height: 1.8;
  word-break: break-word;
  display: flex;
  align-items: flex-start;
}
.ai-message img {
  height: 30px;
  margin-right: 10px;
  vertical-align: top;
}
.user-message {
  background: #e3f2fd;
  color: #000000;
  padding: 20px;
  border-radius: 15px 15px 0 15px;
  max-width: 80%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  font-family: 'Calibri', sans-serif;
  font-size: 1em;
  line-height: 1.8;
  word-break: break-word;
}
strong {
  font-weight: bold;
}
a {
  color: #1a73e8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  #page-title {
    font-size: 1.4em;
    padding: 20px 15px 10px;
    height: 80px;
  }
  #chat-output {
    padding: 15px;
  }
  .ai-message, .user-message {
    max-width: 85%;
    font-size: 0.95em;
    padding: 15px;
  }
  .input-container {
    padding: 10px 15px;
    height: auto;
  }
  #user-input {
    padding: 10px;
    font-size: 0.9em;
  }
  #send-button {
    padding: 10px;
    width: 40px;
    height: 40px;
    font-size: 1em;
  }
}
@media (min-width: 601px) {
  /* No override needed; default column layout works for desktop */
}
.loading {
  display: inline-block;
  width: 50px;
  height: 20px;
  text-align: center;
}
.loading div {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a73e8;
  animation: loading 1s infinite ease-in-out;
}
.loading div:nth-child(2) {
  animation-delay: 0.2s;
}
.loading div:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes loading {
  0%, 80%, 100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}