body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: rgb(251, 251, 248); /* Light cream background */
}

.app {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 92vh;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 800px;
  margin-bottom: 10px;
}

.new-tab-button, .reset-button {
  padding: 10px 20px;
  color: rgb(112, 112, 110);
  background-color: rgb(251, 251, 248);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.new-tab-button {
  right: 0px;
  position: absolute;
  margin-left: 10px;
}

.reset-button {
  left: 0px;
  position: absolute;
  width: 12%;
  margin-left: 1px;
}

.new-tab-button:hover, .reset-button:hover {
  background-color: rgb(235, 235, 235);
}

.chat-container {
  width: 100%;
  max-width: 800px;
  height: 90vh;
  background-color: rgb(251, 251, 248);
  border-radius: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: rgb(251, 251, 248);
  border-radius: 10px 10px 0 0;
}

.user-query {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 10px 0;
  text-align: center;
  color: #333;
}

.ai-response {
  font-size: 1rem;
  margin: 0 0 20px 0;
  color: #555;
  line-height: 1.5;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.subdued-text {
  color: #888;
  font-size: 0.9em;
  text-align: center;
  margin-top: 10px;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.1s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.divider {
  border: 0;
  height: 1px;
  background: #ddd;
  margin: 20px 0;
}

.input-container {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.input-container input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-right: 10px;
  font-size: 1rem;
}

.input-container button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.input-container button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.tab-bar {
  display: flex;
  padding: 10px;
  background-color: #f1f1f1;
  border-bottom: 1px solid #ccc;
  overflow-x: auto;
}

.tab {
  padding: 10px;
  margin-right: 5px;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #ccc;
  border-bottom: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.tab.active {
  background-color: #e0e0e0;
}

.close-tab {
  margin-left: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.add-tab {
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-left: 10px;
}

.sidebar {
  width: 250px;
  height: 100vh;
  left: 0px;
  background-color: #f4f4f4;
  padding: 10px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.sidebar.closed {
  transform: translateX(-100%);
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.new-conversation-button {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.conversation-list {
  display: flex;
  flex-direction: column;
}

.conversation-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  cursor: pointer;
}

.conversation-item.active {
  background-color: #ddd;
}

.delete-conversation-button {
  background: none;
  border: none;
  cursor: pointer;
}