.panel {
  width: 100%;
  /* border-left: 1px solid var(--border-color, #e0e0e0); */
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #333);
}

.close {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.content {
  padding: 16px;
  overflow: auto;
  flex: 1;
}

.sectionTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sectionTitle::before {
  content: "";
  display: block;
  width: 4px;
  height: 16px;
  background: #2d72d2;
  border-radius: 2px;
}

.section {
  margin-bottom: 16px;
}

.label {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.value {
  font-size: 13px;
  color: #333;
  word-break: break-all;
}

.toolCalls {
  margin-top: 4px;
}

.toolCall {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 8px;
}

.toolCall:last-child {
  margin-bottom: 0;
}

.toolName {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.toolArgs {
  font-family: monospace;
  font-size: 11px;
  color: #666;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  background: rgba(0, 0, 0, 0.03);
  padding: 4px;
  border-radius: 2px;
}

.messages {
  margin-top: 24px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.messageList {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px; /* Space for scrollbar */
}

/* Custom scrollbar for message list */
.messageList::-webkit-scrollbar {
  width: 4px;
}

.messageList::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.messageList::-webkit-scrollbar-track {
  background: transparent;
}

.messageItem {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.messageItem:last-child {
  margin-bottom: 0;
}
