.terminal {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 13px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #2d2d2d;
  border-bottom: 1px solid #3e3e3e;
  flex-shrink: 0;
}

.title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #cccccc;
}

.icon {
  color: #4ec9b0;
}

.status {
  font-size: 10px;
  margin-left: 4px;
}

.connected {
  color: #4ec9b0;
}

.disconnected {
  color: #f48771;
}

.actions {
  display: flex;
  gap: 8px;
}

.button {
  padding: 4px 12px;
  background: #3e3e3e;
  border: 1px solid #555;
  color: #cccccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.button:hover {
  background: #505050;
  border-color: #666;
}

.button.active {
  background: #0e639c;
  border-color: #1177bb;
}

.closeButton {
  padding: 2px 8px;
  background: transparent;
  border: none;
  color: #cccccc;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.closeButton:hover {
  color: #f48771;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  line-height: 1.5;
}

.empty {
  color: #858585;
  text-align: center;
  padding: 20px;
}

.logEntry {
  display: flex;
  gap: 8px;
  padding: 2px 0;
  word-break: break-word;
}

.timestamp {
  color: #858585;
  flex-shrink: 0;
}

.level {
  font-weight: 600;
  flex-shrink: 0;
  min-width: 60px;
}

.name {
  color: #4ec9b0;
  flex-shrink: 0;
}

.message {
  color: #d4d4d4;
  flex: 1;
}

.logEntry.error .level {
  color: #f48771;
}

.logEntry.warning .level {
  color: #dcdcaa;
}

.logEntry.info .level {
  color: #4fc1ff;
}

.logEntry.debug .level {
  color: #b5cea8;
}

/* 滚动条样式 */
.content::-webkit-scrollbar {
  width: 10px;
}

.content::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.content::-webkit-scrollbar-thumb {
  background: #424242;
  border-radius: 5px;
}

.content::-webkit-scrollbar-thumb:hover {
  background: #4e4e4e;
}
