.chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.settingsBar {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.settingsInfo {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #666;
}

.settingsRow {
  display: flex;
  align-items: center;
}

.settingsInfo span {
  display: block;
}

.settingsButton {
  background: none;
  border: 1px solid #007bff;
  color: #007bff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.settingsButton:hover {
  background-color: #007bff;
  color: white;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.message {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  max-width: 80%;
}

.userMessage {
  background-color: #007bff;
  color: white;
  margin-left: auto;
  text-align: right;
  max-width: 35%;
}

.assistantMessage {
  background-color: #f1f1f1;
  color: #333;
}

.inputForm {
  position: sticky;
  bottom: 0;
  background-color: white;
  padding: 1rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 0.5rem;
}

.messageInput {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: none;
  min-height: 80px;
  max-height: 200px;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
}

.messageInput:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.inputForm button {
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 150px;
}

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

.error {
  color: #dc3545;
  padding: 1rem;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  margin: 1rem;
}

.loading {
  color: #666;
  font-style: italic;
  padding: 0.5rem 1rem;
}

.messageContent {
  word-break: break-word;
}

.timestamp {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.75rem;
}

.toolCall {
  background-color: #f8f9fa;
  padding: 1.25rem;
  border-radius: 4px;
  margin: 0.75rem 0;
}

.toolName {
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.toolInput {
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.toolInput pre {
  margin: 0;
  padding: 0.75rem;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow-x: auto;
  max-height: 300px;
  overflow-y: auto;
}

.toolResult {
  background-color: #b2f2bb;
  padding: 1.25rem;
  border-radius: 4px;
  margin: 0.75rem 0;
}

.toolResultLabel {
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.toolResult pre {
  margin: 0;
  padding: 0.75rem;
  background-color: #d3f9d8;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow-x: auto;
  max-height: 300px;
  overflow-y: auto;
}

.toolInteraction {
  margin: 0.75rem 0;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

.spinnerCircle {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dashoffset: 60;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -60;
  }
} 