.chat-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.messages-area {
  flex: 1;
  padding: 16px;
}

.session-group {
  margin-bottom: 24px;
  border-radius: 8px;
  padding: 16px;
}

.session-group.pending {
  opacity: 0.7;
}

.session-group.failed {
  border: 1px solid #ff4d4f;
  background-color: #fff2f0;
}

.user-message,
.assistant-message {
  margin-bottom: 12px;
}

.user-message {
  display: flex;
  justify-content: flex-end;
}
.user-message .message-content {
  border: 1px solid rgba(128, 128, 128, 0.5);
  background-color: rgba(255, 255, 255, 0.5);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.role-label {
  font-weight: bold;
  color: #1890ff;
}

.message-content {
  padding: 12px;
  border-radius: 6px;
  background-color: #f5f5f5;
}

.version-switcher {
  margin: 8px 0;
  text-align: center;
}

.chat-input {
  border-top: 1px solid #d9d9d9;
  padding: 16px;
}

.streaming-message .cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.retry-section {
  padding: 12px;
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  border-radius: 6px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.error-message {
  color: #ff4d4f;
  font-size: 14px;
}

.status-indicator {
  margin-left: 8px;
  font-size: 12px;
}

.status-indicator.pending {
  color: #1890ff;
}

.status-indicator.failed {
  color: #ff4d4f;
}

.tool-calls {
  margin-bottom: 12px;
  padding: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
}

.tool-result {
  margin-bottom: 8px;
}

.tool-label {
  font-size: 12px;
  color: #666;
  font-weight: bold;
}

.tool-content {
  margin-top: 4px;
  font-family: monospace;
  font-size: 12px;
  padding: 4px;
  background-color: #fff;
  border-radius: 2px;
}

.token-info {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  text-align: right;
}

.edit-area {
  margin-top: 8px;
}

.edit-actions {
  margin-top: 8px;
  text-align: right;
}

.edit-actions .ant-btn {
  margin-left: 8px;
}

.input-area {
  position: relative;
}

.input-actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
}

.version-info {
  font-size: 12px;
  color: #666;
  padding: 0 8px;
  user-select: none;
}

.model-info {
  font-size: 12px;
  color: #666;
  background-color: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.streaming-indicator {
  font-size: 12px;
  color: #1890ff;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}
