.chatViewContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--color-surface-primary);
}

.chatHistory {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.emptyChat {
  text-align: center;
  color: var(--color-text-placeholder);
  margin-top: 40px;
  font-style: italic;
}

.loadingBubble {
  display: flex;
  justify-content: flex-start;
  margin-right: auto;
  margin-bottom: 8px;
  padding: 8px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  background-color: var(--color-surface-secondary);
  border: 1px solid var(--color-border-primary);
  align-items: center;
  min-height: 1em;
}
.loadingBubble span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-text-placeholder);
  border-radius: 50%;
  margin: 0 2px;
  animation: bounce 1.4s infinite ease-in-out both;
}
.loadingBubble span:nth-child(1) {
  animation-delay: -0.32s;
}
.loadingBubble span:nth-child(2) {
  animation-delay: -0.16s;
}
.loadingBubble span:nth-child(3) {
  animation-delay: 0s;
}
@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(0.8);
    opacity: 1;
  }
}

.errorMessage {
  background-color: var(--color-error-bg);
  color: var(--color-error-text);
  border: 1px solid var(--color-error-border);
  padding: 10px 16px;
  border-radius: 4px;
  margin: 10px 0;
  font-size: 0.875rem;
  white-space: pre-wrap;
}

.jsonDetails {
  margin-top: 4px;
  margin-bottom: 8px;
  border: 1px solid var(--color-border-secondary);
  border-radius: 4px;
  background-color: var(--color-surface-secondary);
  max-width: 80%;
  margin-left: 0;
  margin-right: auto;
}
.jsonSummary {
  padding: 6px 12px;
  cursor: pointer;
  background-color: transparent;
  border-bottom: 1px solid var(--color-border-secondary);
  outline: none;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  list-style: none;
}
.jsonSummary::-webkit-details-marker {
  display: none;
}
.jsonSummary:hover {
  background-color: var(--color-surface-tertiary);
}
.jsonDetails pre {
  padding: 12px 16px;
  margin: 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.8125rem;
  color: var(--color-text-primary);
  white-space: pre-wrap;
  word-wrap: break-word;
  background-color: transparent;
  border-radius: 0 0 4px 4px;
  max-height: 300px;
  overflow: auto;
}

.inputAreaContainer {
  flex-shrink: 0;
  background-color: var(--color-surface-primary);
  border-top: 1px solid var(--color-border-primary);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fileUploaderContainer {
  max-width: 250px;
}