/* MCP Server Settings */
.claudian-mcp-settings-desc {
  margin-bottom: 12px;
}

.claudian-mcp-container {
  margin-top: 8px;
}

.claudian-mcp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 12px;
}

.claudian-mcp-label {
  font-size: var(--font-ui-small);
  color: var(--text-muted);
  font-weight: var(--font-medium);
}

.claudian-mcp-add-container {
  position: relative;
}

.claudian-add-mcp-btn {
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  font-size: 12px;
  cursor: pointer;
  border: none;
}

.claudian-add-mcp-btn:hover {
  background: var(--interactive-accent-hover);
}

.claudian-mcp-add-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 180px;
  background-color: var(--modal-background, var(--background-primary));
  border: 1px solid var(--background-modifier-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 100;
  overflow: hidden;
}

.claudian-mcp-add-dropdown.is-visible {
  display: block;
}

.claudian-mcp-add-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-normal);
}

.claudian-mcp-add-option:hover {
  background: var(--background-modifier-hover);
}

.claudian-mcp-add-option-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.claudian-mcp-add-option-icon svg {
  width: 16px;
  height: 16px;
}

.claudian-mcp-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--background-secondary);
  border-radius: 6px;
}

.claudian-mcp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.claudian-mcp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--background-secondary);
  border-radius: 6px;
  transition: background 0.15s ease;
}

.claudian-mcp-item:hover {
  background: var(--background-modifier-hover);
}

.claudian-mcp-item-disabled {
  opacity: 0.6;
}

.claudian-mcp-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.claudian-mcp-status-enabled {
  background: var(--color-green);
}

.claudian-mcp-status-disabled {
  background: var(--text-muted);
}

.claudian-mcp-info {
  flex: 1;
  min-width: 0;
}

.claudian-mcp-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.claudian-mcp-name {
  font-weight: 600;
}

.claudian-mcp-type-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--background-modifier-border);
  border-radius: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.claudian-mcp-context-saving-badge {
  font-size: 11px;
  padding: 2px 6px;
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  border-radius: 4px;
  font-weight: 600;
}

.claudian-mcp-preview {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claudian-mcp-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.claudian-mcp-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.claudian-mcp-action-btn:hover {
  background: var(--background-modifier-hover);
  color: var(--text-normal);
}

.claudian-mcp-action-btn svg {
  width: 14px;
  height: 14px;
}

.claudian-mcp-delete-btn:hover {
  color: var(--text-error);
}
