html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
  background: #fff;
}

.chat-container {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.chat-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  text-align: center;
  padding: 10px;
}

.logo {
  max-height: 60px;
  object-fit: contain;
}

.tagline {
  font-size: 13px;
  color: #555;
  font-style: italic;
}

.chat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #f5f5f5;
  padding: 16px;
}

.user, .bot {
  max-width: 85%;
  padding: 12px 16px;
  margin: 8px 12px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.user {
  align-self: flex-end;
  background: #0cb4e3;
  color: white;
  border-bottom-right-radius: 4px;
}

.bot {
  align-self: flex-start;
  background: #e5e5ea;
  color: black;
  border-bottom-left-radius: 4px;
}

.typing-indicator {
  display: none;
  display: flex;
  gap: 6px;
  margin: 10px 12px;
  align-items: center;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #888;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 80%, 100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

.input-bar {
  display: flex;
  border-top: 1px solid #ccc;
  background: #fff;
  padding: 8px;
}

#user-input {
  flex: 1;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 20px;
}

button {
  margin-left: 10px;
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  border-radius: 20px;
  background: #0cb4e3;
  color: white;
  cursor: pointer;
}

button:active {
  background: #09a2cd;
}

/* Styling for image upload section */
.upload-label {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #444;
}

#image-upload {
  display: inline-block;
  margin-top: 6px;
  padding: 6px;
  font-size: 14px;
  border: 1px solid #bbb;
  border-radius: 5px;
  background-color: #f9f9f9;
  cursor: pointer;
}

#image-upload:focus {
  outline: none;
  border-color: #0cb4e3;
}
