body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f1f1f1;
}

header {
  background-color: #ffffff;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.centered {
  margin: 0;
  font-size: 1.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#chatbox {
  max-width: 600px;
  margin: 30px auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#messages {
  max-height: 400px;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 75%;
  padding: 12px 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  border-radius: 20px;
  word-wrap: break-word;
  clear: both;
}

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

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

#input-area {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

#userInput {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
}

#upload-area {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

#fileInput {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.download-wrapper {
  margin-top: 10px;
}

.download-link {
  display: inline-block;
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
}

.download-link:hover {
  text-decoration: underline;
}
